-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
69 lines (64 loc) · 1.92 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
module.exports = {
root: true,
env: {
browser: true,
node: true,
es6: true,
jest: true,
},
parserOptions: { ecmaVersion: 8 },
extends: ['eslint:recommended'],
overrides: [
{
files: ['src/**/*.ts?(x)'],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
env: {
browser: true,
node: true,
es6: true,
jest: true,
},
extends: [
'airbnb',
'plugin:import/errors',
'plugin:import/warnings',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
],
rules: {
'prettier/prettier': ['error', {}, { usePrettierrc: true }],
eqeqeq: ['error', 'always'],
'no-use-before-define': 'off',
'no-unused-expressions': 'off',
'no-underscore-dangle': 'off',
'no-console': 'off',
'no-restricted-globals': 'off',
'no-alert': 'off',
'no-new': 'off',
'class-methods-use-this': 'off',
'func-names': 'off',
'operator-assignment': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'react/jsx-filename-extension': [2, { extensions: ['.js', '.jsx', '.ts', '.tsx'] }],
'react/jsx-props-no-spreading': 'off',
'react/react-in-jsx-scope': 'off',
'react/require-default-props': 'off',
'react/self-closing-comp': 'off',
'react/prop-types': 'off',
'react/function-component-definition': 'off',
'jsx-a11y/label-has-associated-control': 'off',
'jsx-a11y/label-has-for': 'off',
'import/extensions': ['error', 'never'],
'import/no-unresolved': 'off',
'import/prefer-default-export': 'off',
'import/no-extraneous-dependencies': [
'error',
{
devDependencies: ['**/*.{test,spec}.{ts,tsx,js,jsx}', '**/*.stories.tsx'],
},
],
},
},
],
};