22 lines
449 B
JavaScript
22 lines
449 B
JavaScript
|
|
const js = require("@eslint/js")
|
||
|
|
|
||
|
|
module.exports = [
|
||
|
|
js.configs.recommended,
|
||
|
|
{
|
||
|
|
files: ["**/*.js"],
|
||
|
|
languageOptions: {
|
||
|
|
ecmaVersion: 2022,
|
||
|
|
sourceType: "commonjs",
|
||
|
|
globals: {
|
||
|
|
console: "readonly",
|
||
|
|
require: "readonly",
|
||
|
|
},
|
||
|
|
},
|
||
|
|
rules: {
|
||
|
|
"no-var": "error",
|
||
|
|
"prefer-const": "error",
|
||
|
|
"no-console": "warn",
|
||
|
|
"no-unused-vars": ["warn", { argsIgnorePattern: "^_" }],
|
||
|
|
},
|
||
|
|
},
|
||
|
|
]
|