Workflows-test/eslint.config.cjs

22 lines
449 B
JavaScript
Raw Permalink Normal View History

2026-03-31 22:31:16 +05:00
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: "^_" }],
},
},
]