mirror of
https://git.sr.ht/~emersion/gamja
synced 2024-11-14 03:04:59 -05:00
33 lines
776 B
JavaScript
33 lines
776 B
JavaScript
import globals from "globals";
|
|
import js from "@eslint/js";
|
|
import stylisticJs from "@stylistic/eslint-plugin-js";
|
|
|
|
export default [
|
|
{
|
|
ignores: ["dist/"],
|
|
},
|
|
js.configs.recommended,
|
|
{
|
|
languageOptions: {
|
|
globals: {
|
|
...globals.browser,
|
|
"process": "readonly",
|
|
},
|
|
},
|
|
plugins: { "@stylistic/js": stylisticJs },
|
|
rules: {
|
|
"no-case-declarations": "off",
|
|
"no-unused-vars": ["error", {
|
|
args: "none",
|
|
caughtErrorsIgnorePattern: "^_",
|
|
destructuredArrayIgnorePattern: "^_",
|
|
}],
|
|
"no-var": "error",
|
|
"@stylistic/js/indent": ["warn", "tab"],
|
|
"@stylistic/js/quotes": ["warn", "double"],
|
|
"@stylistic/js/semi": "warn",
|
|
"@stylistic/js/comma-dangle": ["warn", "always-multiline"],
|
|
"@stylistic/js/arrow-parens": "warn",
|
|
},
|
|
},
|
|
];
|