forked from OctoLinker/OctoLinker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
52 lines (52 loc) · 1.14 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
45
46
47
48
49
50
51
52
module.exports = {
extends: ['airbnb', 'prettier'],
plugins: ['prettier', 'react'],
env: {
jest: true,
browser: true,
},
settings: {
react: {
pragma: 'h',
},
},
parser: '@babel/eslint-parser',
parserOptions: {
ecmaFeatures: {
modules: true,
jsx: true,
},
},
rules: {
'prettier/prettier': [
'error',
{
singleQuote: true,
trailingComma: 'all',
},
],
'react/jsx-filename-extension': [1, { extensions: ['.js', '.jsx'] }],
'react/prop-types': 0,
'func-names': 0,
'id-length': [1, { exceptions: ['$'] }],
'new-cap': [2, { capIsNewExceptions: ['Deferred'] }],
'max-len': 0,
'no-prototype-builtins': 0,
'import/extensions': 0,
'import/prefer-default-export': 0,
'import/no-extraneous-dependencies': 0,
'no-underscore-dangle': 0,
'no-unused-vars': 0,
'no-useless-escape': 0,
'class-methods-use-this': 0,
'no-param-reassign': 0,
'no-restricted-syntax': 0,
'consistent-return': 0,
'array-callback-return': 0,
'jsx-a11y/label-has-for': 0,
},
globals: {
fixture: true,
chrome: true,
},
};