-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
54 lines (53 loc) · 1.58 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
const tsConfig = require('./tsconfig.json');
const tsPaths = Object.keys(tsConfig.compilerOptions.paths);
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
extends: [
'airbnb-typescript',
'prettier',
'plugin:import/typescript',
],
plugins: ['react', '@typescript-eslint', 'prettier'],
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 2018,
sourceType: 'module',
project: ['./tsconfig.json'],
},
rules: {
'import/no-unresolved': [
'error',
{
ignore: tsPaths,
},
],
'@typescript-eslint/lines-between-class-members': 'off',
'no-param-reassign': 'off',
'prefer-destructuring': 'off',
'object-curly-newline': 'off',
'arrow-body-style': 'off',
'implicit-arrow-linebreak': 'off',
'function-paren-newline': 'off',
'import/no-extraneous-dependencies': 'off',
'jsx-a11y/click-events-have-key-events': 'off',
'jsx-a11y/no-static-element-interactions': 'off',
'react/prop-types': 'off',
'react/jsx-props-no-spreading': 'off',
'react/require-default-props': 'off',
'no-empty-pattern': 'off',
'no-constant-condition': ['error', { checkLoops: false }],
'no-useless-computed-key': 'off',
'no-plusplus': 'off',
'react/jsx-one-expression-per-line': 'off',
'prettier/prettier': 'error',
'import/prefer-default-export': 'off',
'react/button-has-type': 'off',
'import/no-named-as-default': 'off',
'jsx-a11y/label-has-associated-control': 'off',
'jsx-a11y/anchor-is-valid': 'off',
'no-underscore-dangle': 'off',
},
};