forked from purplecode-team/WEVOTE_Client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
66 lines (66 loc) · 1.62 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
module.exports = {
env: {
browser: true,
es2021: true,
jest: true,
},
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:@typescript-eslint/recommended',
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 12,
sourceType: 'module',
},
plugins: ['react', '@typescript-eslint', 'prettier'],
rules: {
'react/jsx-filename-extension': 0,
'react/jsx-one-expression-per-line': 0,
'react/jsx-indent': 0,
'react/jsx-wrap-multilines': 0,
'linebreak-style': 0,
'import/no-unresolved': 0,
'import/no-extraneous-dependencies': 0,
'import/prefer-default-export': 0,
'implicit-arrow-linebreak': 0,
'operator-linebreak': 0,
'comma-dangle': 0,
'object-curly-newline': 0,
'array-callback-return': 0,
'arrow-body-style': 0,
'function-call-argument-newline': 0,
'function-paren-newline': 0,
'import/no-duplicates': 0,
'no-param-reassign': 0,
'no-return-assign': 0,
'no-unused-vars': 1,
'prettier/prettier': [2, { endOfLine: 'auto' }],
'react/jsx-props-no-spreading': 0,
'@typescript-eslint/no-var-requires': 0,
'import/extensions': [
0,
'ignorePackages',
{
js: 'never',
jsx: 'never',
ts: 'never',
tsx: 'never',
},
],
'sort-imports': [
'error',
{
ignoreCase: true,
ignoreDeclarationSort: false,
ignoreMemberSort: false,
memberSyntaxSortOrder: ['all', 'multiple', 'single', 'none'],
allowSeparatedGroups: false,
},
],
},
};