-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.eslintrc.js
More file actions
34 lines (30 loc) · 791 Bytes
/
.eslintrc.js
File metadata and controls
34 lines (30 loc) · 791 Bytes
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
module.exports = {
parser: '@babel/eslint-parser',
extends: [
'airbnb',
'prettier',
],
parserOptions: {
requireConfigFile: false,
babelOptions: {
presets: ["@babel/preset-react"],
},
},
rules: {
semi: 0,
'react/jsx-filename-extension': 0,
'react/state-in-constructor': 0,
'react/jsx-curly-newline': 0,
'react/jsx-fragments': 0,
'react/static-property-placement': 0,
// Want to be able to spread props in HOCs
'react/jsx-props-no-spreading': 0,
// Default ES function props are not considered so we disable the rule
'react/require-default-props': 0,
// Logs are useful
'no-console': 0,
// Not interested in writing types for all props
'react/prop-types': 'off'
},
env: { browser: true },
}