-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy path.eslintrc.js
42 lines (42 loc) · 1.01 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
module.exports = {
env: {
browser: true,
node: true,
es2020: true,
},
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
},
root: true,
plugins: ['@typescript-eslint'],
extends: [
'eslint:recommended', 'plugin:@typescript-eslint/recommended'
],
rules: {
// rules here override any rules defined by plugins in the "extends" array
// those rules are generally considered best practices so consider carefully and
// discuss with (and record) why a certain rule has been disabled or altered
'import/extensions': 'off',
'import/no-cycle': 'off',
'no-param-reassign': ['error', { props: false }],
},
settings: {
react: {
version: 'detect',
},
'import/resolver': {
'babel-module': {
extensions: ['.js', '.jsx', '.ts', '.tsx'],
},
node: {
extensions: ['.js', '.jsx', '.ts', '.tsx'],
paths: ['src'],
},
},
},
}