22 lines
No EOL
449 B
JavaScript
22 lines
No EOL
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: "^_" }],
|
|
},
|
|
},
|
|
] |