-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
67 lines (67 loc) · 1.43 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
57
58
59
60
61
62
63
64
65
66
67
module.exports = {
env: {
browser: true,
es2021: true,
node: true,
},
globals: {
Zesty: true,
dataLayer: true,
},
extends: [
'plugin:react/recommended',
'google',
'prettier',
'plugin:cypress/recommended',
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 13,
sourceType: 'module',
},
plugins: ['react', '@typescript-eslint', 'import', 'unused-imports'],
rules: {
'require-jsdoc': 0,
'valid-jsdoc': 0,
'no-undef': 'error',
'no-unused-vars': 'error',
'unused-imports/no-unused-imports': 'error',
'unused-imports/no-unused-vars': [
'error',
{
vars: 'all',
varsIgnorePattern: '^_',
args: 'after-used',
argsIgnorePattern: '^_',
},
],
'no-var': 0,
'no-array-constructor': 0,
'spaced-comment': 0,
'react/display-name': 0,
'import/extensions': 0,
'one-var': 0,
'react/jsx-no-target-blank': 0,
'new-cap': 0,
'react/prop-types': 0,
'react/jsx-key': 0,
'prefer-const': 0,
camelcase: 0,
'no-use-before-define': 'off',
'react/react-in-jsx-scope': 'off',
'react/jsx-filename-extension': [1, { extensions: ['.js', '.jsx', 'tsx'] }],
},
settings: {
react: {
version: 'detect',
},
'import/resolver': {
node: {
extensions: ['.js', '.jsx', '.tsx', 'ts'],
},
},
},
};