-
Notifications
You must be signed in to change notification settings - Fork 80
/
.eslintrc.cjs
40 lines (39 loc) · 865 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
33
34
35
36
37
38
39
40
const OFF = 0,
WARN = 1,
ERROR = 2;
module.exports = {
env: {
browser: false,
es6: true,
},
extends: ['prettier', 'plugin:jsx-a11y/recommended'],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
parserOptions: {
ecmaFeatures: {
modules: true,
},
ecmaVersion: 2018,
sourceType: 'module',
},
plugins: [
'prettier',
'import',
'jsx-a11y',
],
rules: {
'prettier/prettier': ERROR,
// ESLint rules
'no-useless-computed-key': ERROR,
'no-underscore-dangle': OFF,
'arrow-parens': [ERROR, 'as-needed'],
'no-nested-ternary': OFF,
'import/prefer-default-export': OFF,
'eol-last': [ERROR, 'always'],
'import/extensions': [ERROR, { json: 'always' }],
'import/no-unresolved': ERROR,
'no-console': ['warn', { allow: ['error', 'info'] }],
},
};