-
Notifications
You must be signed in to change notification settings - Fork 61
/
.eslintrc.cjs
32 lines (32 loc) · 949 Bytes
/
.eslintrc.cjs
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
module.exports = {
env: {
browser: true,
es2021: true,
jquery: true,
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
],
parserOptions: {
ecmaVersion: 13,
sourceType: 'module',
},
plugins: [
'@typescript-eslint',
],
root: true,
rules: {
eqeqeq: ['error', 'always', {'null': 'ignore'}],
indent: ['error', 4, {MemberExpression: 'off', SwitchCase: 1}],
'linebreak-style': ['error', 'unix'],
'no-empty': ['off'],
'no-trailing-spaces': ['error'],
'no-var': ['error'],
'prefer-const': ['error', {'destructuring': 'all'}],
quotes: ['error', 'single', {allowTemplateLiterals: true, avoidEscape: true}],
semi: ['error', 'never'],
'@typescript-eslint/no-explicit-any': ['off'],
'@typescript-eslint/no-non-null-assertion': ['off'],
},
}