-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
49 lines (48 loc) · 1000 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
const path = require('path');
module.exports = {
globals: {
PRODUCTION: 'readonly',
},
extends: [
'airbnb-base',
'plugin:functional/external-recommended',
'plugin:functional/recommended',
'plugin:react/recommended',
],
plugins: [
'functional',
'react',
],
env: {
browser: true,
webextensions: true,
node: true,
},
parserOptions: {
ecmaFeatures: {
jsx: true,
},
},
rules: {
'import/extensions': 0,
'react/prop-types': 0,
'no-console': 0,
'functional/no-conditional-statement': 0,
'functional/no-expression-statement': 0,
'functional/immutable-data': 0,
'functional/functional-parameters': 0,
'functional/no-try-statement': 0,
'functional/no-throw-statement': 0,
},
parser: '@babel/eslint-parser',
settings: {
react: {
version: 'detect',
},
'import/resolver': {
webpack: {
config: path.resolve(__dirname, 'webpack.common.js'),
},
},
},
};