-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
40 lines (38 loc) · 1.02 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
module.exports = {
root: true,
env: { browser: true },
extends: [
'airbnb-typescript',
'airbnb/hooks',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'plugin:jest/recommended',
'plugin:prettier/recommended',
'prettier/@typescript-eslint',
'prettier/react',
],
settings: {
'import/resolver': {
node: {
paths: ['src'],
extensions: ['.js', '.jsx', '.ts', '.tsx', '.d.ts'],
},
},
},
plugins: ['simple-import-sort'],
parserOptions: {
project: ['./tsconfig.json'],
},
rules: {
// 'prettier/prettier': ['error'],
// 'react/jsx-one-expression-per-line': 0,
// 'react/jsx-filename-extension': [1, { extensions: ['.tsx', '.jsx'] }],
'import/prefer-default-export': 0,
// Auto-sort imports
'sort-imports': 'off',
'import/order': 'off',
'simple-import-sort/sort': 'error',
// Using a type system makes it safe enough to spread props
'react/jsx-props-no-spreading': 'off',
},
};