-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.js
32 lines (32 loc) · 912 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
module.exports = {
extends: ['.eslintrc-base.json', 'plugin:react/recommended'],
overrides: [
{
files: ['src/**/*.ts', 'src/**/*.tsx'],
parser: '@typescript-eslint/parser',
extends: ['plugin:@typescript-eslint/recommended'],
rules: {
'react/jsx-filename-extension': [1, { extensions: ['.tsx', 'jsx'] }],
'react/function-component-definition': 'off',
'react/jsx-uses-react': 'off',
'react/react-in-jsx-scope': 'off',
'react/jsx-curly-brace-presence': 'error',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'react/prop-types': 'off',
},
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
},
},
],
settings: {
react: {
version: 'detect',
},
},
// extends: ['prettier'],
rules: {
'prettier/prettier': ['off', { singleQuote: true }],
},
};