This repository has been archived by the owner on Feb 19, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.eslintrc.js
111 lines (102 loc) · 2.89 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
module.exports = {
root: true,
env: {
es6: true
},
extends: [
'standard',
'@react-native-community',
'plugin:@typescript-eslint/recommended',
'plugin:jest/recommended',
'plugin:react/recommended',
'prettier/react',
'prettier-standard/prettier-file'
],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly'
},
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true
},
ecmaVersion: 2018,
sourceType: 'module'
},
plugins: ['react', 'react-hooks', '@typescript-eslint', 'jest', 'import'],
settings: {
'import/external-module-folders': ['node_modules', 'audius-client'],
'import/resolver': {
// NOTE: sk - These aliases are required for the import/order rule.
alias: {
map: [['app', './src']],
extensions: ['.ts', '.tsx', '.js', '.jsx', '.json']
}
}
},
rules: {
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/member-delimiter-style': 'off',
'@typescript-eslint/no-empty-interface': 'off',
'@typescript-eslint/camelcase': 'off',
'@typescript-eslint/ban-ts-ignore': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-use-before-define': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/no-unused-vars': ['error', { args: 'none' }], // We should turn this one on soon
'@typescript-eslint/no-this-alias': 'off',
'no-redeclare': 'off',
'@typescript-eslint/no-redeclare': ['error'],
'no-use-before-define': 'off',
'no-bitwise': 'off',
camelcase: 'off',
'no-unused-vars': 'off',
'func-call-spacing': 'off',
semi: ['error', 'never'],
'no-undef': 'off',
'no-empty': 'off',
'no-shadow': 'off',
'arrow-parens': 'off',
'padded-blocks': 'off',
'jest/expect-expect': 'off',
'react/jsx-uses-react': 'off',
'react/react-in-jsx-scope': 'off',
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'warn',
'react/display-name': 'off',
'react/prop-types': 'off',
'react-native/no-inline-styles': 'off',
'prettier/prettier': 'error',
'space-before-function-paren': 'off',
'generator-star-spacing': 'off',
'import/order': [
'error',
{
alphabetize: {
order: 'asc'
},
groups: [
'builtin',
'external',
'internal',
'parent',
'sibling',
'index'
],
'newlines-between': 'always',
pathGroups: [
{
pattern: 'react',
group: 'builtin',
position: 'before'
}
],
pathGroupsExcludedImportTypes: ['builtin']
}
]
}
}