2024-09-28 15:45:45 -04:00
|
|
|
import globals from "globals";
|
|
|
|
import js from "@eslint/js";
|
2024-09-29 05:45:42 -04:00
|
|
|
import stylisticJs from "@stylistic/eslint-plugin-js";
|
2024-09-28 15:45:45 -04:00
|
|
|
|
|
|
|
export default [
|
|
|
|
{
|
2024-09-28 15:49:13 -04:00
|
|
|
ignores: ["dist/"],
|
2024-09-28 15:57:35 -04:00
|
|
|
},
|
|
|
|
js.configs.recommended,
|
|
|
|
{
|
2024-09-28 15:45:45 -04:00
|
|
|
languageOptions: {
|
|
|
|
globals: {
|
|
|
|
...globals.browser,
|
|
|
|
"process": "readonly",
|
|
|
|
},
|
|
|
|
},
|
2024-09-29 05:45:42 -04:00
|
|
|
plugins: { "@stylistic/js": stylisticJs },
|
2024-09-28 15:45:45 -04:00
|
|
|
rules: {
|
|
|
|
"no-case-declarations": "off",
|
|
|
|
"no-unused-vars": ["error", {
|
|
|
|
args: "none",
|
|
|
|
caughtErrorsIgnorePattern: "^_",
|
|
|
|
destructuredArrayIgnorePattern: "^_",
|
|
|
|
}],
|
2024-09-28 16:07:39 -04:00
|
|
|
"no-var": "error",
|
2024-09-29 05:45:42 -04:00
|
|
|
"@stylistic/js/indent": ["warn", "tab"],
|
|
|
|
"@stylistic/js/quotes": ["warn", "double"],
|
2024-09-29 05:48:45 -04:00
|
|
|
"@stylistic/js/semi": "warn",
|
2024-09-29 05:50:57 -04:00
|
|
|
"@stylistic/js/comma-dangle": ["warn", "always-multiline"],
|
2024-09-29 05:54:21 -04:00
|
|
|
"@stylistic/js/arrow-parens": "warn",
|
2024-09-28 15:45:45 -04:00
|
|
|
},
|
|
|
|
},
|
|
|
|
];
|