-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
37 lines (37 loc) · 1019 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
module.exports = {
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 10,
sourceType: 'module',
ecmaFeatures: {
impliedStrict: true,
// jsx: true,
},
},
extends: [
'eslint:recommended',
'airbnb-base',
'plugin:flowtype/recommended',
'plugin:react/recommended',
'plugin:prettier/recommended',
],
rules: {
'no-restricted-syntax': 'off',
'import/prefer-default-export': 'off',
// cant handle export * as
'import/named': 'off',
'no-multi-assign': 'off',
'no-use-before-define': 'off',
'no-console': 'off',
'no-underscore-dangle': 'off',
'comma-dangle': ['error', 'always-multiline'],
'consistent-return': 'off',
'react/jsx-filename-extension': ['error', { extensions: ['.js', '.jsx'] }],
'react/jsx-one-expression-per-line': 'off',
'import/no-extraneous-dependencies': [
'error',
{ devDependencies: ['dev/**'] },
],
},
plugins: ['flowtype', 'promise', 'prettier', 'react', 'jsx-a11y'],
};