forked from windycom/windy-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
41 lines (41 loc) · 1.15 KB
/
.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
33
34
35
36
37
38
39
40
41
module.exports = {
env: {
es6: true,
node: true,
browser: true,
},
parserOptions: {
ecmaVersion: 2022,
sourceType: 'module',
},
globals: {
L: true,
W: true,
console: true,
},
extends: 'eslint:recommended',
rules: {
indent: 'off',
'no-fallthrough': 'off',
'no-cond-assign': 'off',
'no-console': 'off',
'no-irregular-whitespace': 'off',
'no-prototype-builtins': 'off',
'no-mixed-spaces-and-tabs': 'error',
'no-const-assign': 'error',
'no-undef-init': 'error',
'no-undef': 'error',
curly: 'error',
'no-var': 'error',
'prefer-const': 'error',
'no-tabs': 'error',
'no-use-before-define': ['error', { functions: false }], // function declarations are hoisted, so it's safe
'one-var': ['error', { const: 'never' }],
'no-empty': 'error',
'no-redeclare': 'error',
'prefer-rest-params': 'off',
'prefer-spread': 'off',
'no-import-assign': 'warn',
},
plugins: ['html'],
};