forked from snoh666/react-typescript-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
36 lines (36 loc) · 805 Bytes
/
.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
module.exports = {
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
extends: [
'airbnb-typescript',
'prettier/@typescript-eslint',
'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',
},
env: {
browser: true,
es6: true,
},
};