-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.js
34 lines (33 loc) · 965 Bytes
/
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
import globals from "globals";
import pluginJs from "@eslint/js";
export default [
{
ignores: ["**/src/material_database_decoder.js"], //autogenerated file
},
{
languageOptions: {
globals: {
...globals.browser,
...globals.node,
...globals.jasmine,
}
},
rules: {
'eol-last': 'warn',
eqeqeq: 'warn',
"indent": ["warn", 2, { SwitchCase: 1 }],
'keyword-spacing': ['warn'],
'no-async-promise-executor': 'off',
'no-console': 'off',
'object-curly-spacing': ['warn', 'always'],
"no-unused-vars": ["warn", {
"argsIgnorePattern": "^_", //ignore variables named '_'
"ignoreRestSiblings": true //ignore unused vars in object destructuring
}],
quotes: ['warn', 'single', { "avoidEscape": true, "allowTemplateLiterals": true }],
semi: ['warn', 'always'],
'space-before-blocks': 'warn',
}
},
pluginJs.configs.recommended,
];