-
Notifications
You must be signed in to change notification settings - Fork 372
/
eslint.config.js
52 lines (50 loc) · 1.24 KB
/
eslint.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import js from "@eslint/js";
import eslintConfigPrettier from "eslint-config-prettier";
import gts from "./node_modules/gts/build/src/index.js";
export default [
js.configs.recommended,
eslintConfigPrettier,
{
rules: gts.rules,
},
{
languageOptions: {
ecmaVersion: 2022,
sourceType: "module",
globals: {
"ga": true,
"Metric": true
},
},
rules: {
"no-warning-comments": "off",
"no-unused-vars": ["error", {
"vars": "all",
"args": "after-used",
"argsIgnorePattern": "^var_args$"
}],
"require-jsdoc": 0,
"valid-jsdoc": "off",
"no-var": 1,
"prettier/prettier": "off",
// TODO: Re-enable these rules from gts.
"eqeqeq": "off",
"no-const-assign": "off",
"no-dupe-class-members": "off",
"no-dupe-keys": "off",
"no-empty-pattern": "off",
"no-prototype-builtins": "off",
"no-self-assign": "off",
"no-undef": "off",
"no-unreachable": "off",
"no-useless-escape": "off",
"node/no-extraneous-import": "off",
"node/no-missing-import": "off",
"node/no-unpublished-import": "off",
},
ignores: [
"**/node_modules/**",
"static/dist/",
]
}
];