-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
25 lines (25 loc) · 877 Bytes
/
.eslintrc.cjs
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
module.exports = {
parser: '@babel/eslint-parser',
parserOptions: {
requireConfigFile: false,
},
extends: ['airbnb-base', 'plugin:flowtype/recommended'],
plugins: ['flowtype', 'jest'],
rules: {
'import/no-webpack-loader-syntax': 0,
'import/extensions': ['error', 'ignorePackages'],
'import/no-duplicates': ['error', { considerQueryString: true }],
'import/no-extraneous-dependencies': ['error', { packageDir: '.' }],
'no-confusing-arrow': ['error', { allowParens: true }],
'arrow-parens': ['error', 'as-needed'],
'no-restricted-exports': 0,
'import/prefer-default-export': 0,
'object-curly-newline': ['error', { consistent: true }],
'no-bitwise': ['error', { int32Hint: true }],
'no-mixed-operators': 0,
'no-underscore-dangle': ['error', { allowAfterThis: true }],
},
env: {
'jest/globals': true,
},
};