-
Notifications
You must be signed in to change notification settings - Fork 5
/
eslint.config.js
40 lines (40 loc) · 969 Bytes
/
eslint.config.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
/* eslint-disable import/no-anonymous-default-export */
export default [{
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
extends: [
'airbnb-typescript',
'prettier',
'plugin:prettier/recommended',
'plugin:@typescript-eslint/recommended',
],
parserOptions: {
project: './tsconfig.json',
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 11,
sourceType: 'module',
},
rules: {
'react/jsx-props-no-spreading': 'off',
'no-shadow': 'off',
'react-redux/connect-prefer-named-arguments': 'off',
'react-redux/prefer-separate-component-file': 'off',
'prettier/prettier': [
'error',
{
endOfLine: 'auto',
},
],
'import/no-unresolved': 'off',
'react/prop-types': 'off',
'import/no-extraneous-dependencies': 'error',
'import/extensions': 'off',
'react/jsx-filename-extension': 'error',
},
env: {
browser: true,
es6: true,
},
}];