-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patheslintrc.js
44 lines (44 loc) · 1 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
module.exports = {
env: {
browser: true,
node: true,
},
extends: [
'eslint:recommended',
'plugin:react/recommended',
'airbnb',
'plugin:prettier/recommended',
],
parserOptions: {
ecmaFeatures: {
jsx: true,
},
},
globals: {
browser: 'readonly',
},
plugins: ['react', 'prettier'],
rules: {
'prettier/prettier': 'error',
'react/react-in-jsx-scope': 'off',
'react/prefer-stateless-function': 'off',
'react/jsx-filename-extension': [
'error',
{ extensions: ['.js', '.jsx', '.ts', '.tsx'] },
],
'react/jsx-one-expression-per-line': 'off',
'no-nested-ternary': 'off',
'react/prop-types': 'off',
'import/no-extraneous-dependencies': 'off',
'arrow-body-style': ['error', 'always'],
'react/function-component-definition': [
'off',
{
namedComponents: 'arrow-function',
unnamedComponents: 'arrow-function',
},
],
semi: ['error', 'always'],
quotes: ['error', 'double'],
},
};