This repository was archived by the owner on Jul 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
56 lines (56 loc) · 1.47 KB
/
.eslintrc.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
53
54
55
56
module.exports = {
root: true,
parserOptions: {
ecmaVersion: 2019,
sourceType: 'module',
ecmaFeatures: {
jsx: true
}
},
env: { browser: true, commonjs: true, node: true, es6: true },
plugins: ['prettier', 'eslint-comments'],
extends: [
'eslint:recommended',
'plugin:eslint-comments/recommended',
'plugin:prettier/recommended'
],
settings: {},
rules: {
'eslint-comments/no-unused-disable': 'error',
'no-var': 'error',
'no-else-return': 'error',
'no-return-await': 'error',
'no-throw-literal': 'error',
'no-sparse-arrays': 'error',
'no-param-reassign': 'error',
'no-ex-assign': 'error',
'no-underscore-dangle': 'off',
'no-useless-constructor': 'error',
'no-with': 'error',
'no-plusplus': ['error', { allowForLoopAfterthoughts: true }],
'no-nested-ternary': 'error',
'no-shadow': 'warn',
'no-shadow-restricted-names': 'error',
'no-this-before-super': 'error',
'prefer-arrow-callback': 'warn',
'newline-before-return': 'error',
'curly': 'error',
'eqeqeq': 'error',
'guard-for-in': 'error',
'default-case': 'error',
'radix': 'error',
'dot-notation': 'error',
'consistent-this': ['error', 'self'],
'yoda': 'error',
'new-cap': ['error', { capIsNewExceptions: ['Callsite'] }],
'spaced-comment': [
'warn',
'always',
{
markers: ['=', '#region'],
exceptions: ['#endregion']
}
],
'camelcase': 'error'
}
};