IRC_Client/eslint.config.js

38 lines
901 B
JavaScript
Raw Normal View History

2024-09-28 21:45:45 +02:00
import globals from "globals";
import js from "@eslint/js";
2024-09-29 11:45:42 +02:00
import stylisticJs from "@stylistic/eslint-plugin-js";
2024-09-28 21:45:45 +02:00
export default [
{
2024-09-28 21:49:13 +02:00
ignores: ["dist/"],
2024-09-28 21:57:35 +02:00
},
js.configs.recommended,
{
2024-09-28 21:45:45 +02:00
languageOptions: {
globals: {
...globals.browser,
"process": "readonly",
},
},
2024-09-29 11:45:42 +02:00
plugins: { "@stylistic/js": stylisticJs },
2024-09-28 21:45:45 +02:00
rules: {
"no-case-declarations": "off",
"no-unused-vars": ["error", {
args: "none",
caughtErrorsIgnorePattern: "^_",
destructuredArrayIgnorePattern: "^_",
}],
2024-09-28 22:07:39 +02:00
"no-var": "error",
2024-10-14 00:56:18 +02:00
"eqeqeq": "error",
"no-invalid-this": "error",
"prefer-arrow-callback": "error",
2024-11-16 12:17:23 +01:00
"no-implicit-coercion": "warn",
2024-09-29 11:45:42 +02:00
"@stylistic/js/indent": ["warn", "tab"],
"@stylistic/js/quotes": ["warn", "double"],
2024-09-29 11:48:45 +02:00
"@stylistic/js/semi": "warn",
"@stylistic/js/comma-dangle": ["warn", "always-multiline"],
"@stylistic/js/arrow-parens": "warn",
2024-09-28 21:45:45 +02:00
},
},
];