-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
39 lines (39 loc) · 1.05 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
module.exports = {
parser: '@babel/eslint-parser',
plugins: ['react', 'prettier', 'jest'],
env: {
browser: true,
},
globals: {
APPID: true,
APPNAME: true,
CREDENTIALS: true,
},
extends: [
'airbnb',
'prettier',
'plugin:prettier/recommended',
'plugin:jest/recommended',
],
rules: {
indent: 0,
camelcase: 0,
'no-underscore-dangle': 0,
'prettier/prettier': 'error',
'class-methods-use-this': 0,
'react/function-component-definition': 0,
'react/no-unknown-property': ['error', { ignore: ['css'] }],
'react/jsx-indent': 0,
'react/jsx-indent-props': 0,
'react/jsx-filename-extension': 0,
'react/require-default-props': 0,
'react/forbid-prop-types': 0,
'react/jsx-props-no-spreading': 0,
// TODO: Enable later
'react/prop-types': 0,
'react/jsx-fragments': 0,
'prettier/prettier': 0,
'react/no-danger': 0,
'no-console': 0,
},
};