generated from shafiul2shelp/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
51 lines (51 loc) · 1010 Bytes
/
.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
module.exports = {
env: {
browser: true,
commonjs: true,
es2020: true,
node: true
},
parser: '@babel/eslint-parser',
extends: [
'eslint:recommended',
'standard',
'prettier'
],
parserOptions: {
ecmaVersion: 11
},
rules: {
'import/no-extraneous-dependencies': ['error'],
'node/global-require': ['error'],
'import/no-dynamic-require': ['error']
},
overrides: [
{
files: [
'**/tests/**/*.js'
],
env: {
jest: true
}
},
{
files: [
'**/*.tsx', '**/*.ts'
],
plugins: [
'@typescript-eslint',
'jsx-a11y'
],
extends: ['plugin:jsx-a11y/recommended'],
parser: '@typescript-eslint/parser',
rules: {
'camelcase': 'off',
'no-unused-vars': 'off',
'no-undef': 'off',
'no-use-before-define': 'off',
'@typescript-eslint/no-unused-vars': ['error'],
'jsx-a11y/no-onchange': 'off',
}
},
]
}