-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
28 lines (28 loc) · 949 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
26
27
28
module.exports = {
root: true,
env: {browser: true, es2020: true},
extends: ['eslint:recommended', 'plugin:ft-flow/recommended', 'prettier'],
ignorePatterns: ['dist', '.eslintrc.cjs'],
parser: 'hermes-eslint',
plugins: ['react-refresh', 'ft-flow'],
rules: {
'react-refresh/only-export-components': [
'warn',
{allowConstantExport: true},
],
// Not needed, since all=true set in .flowconfig
'ft-flow/no-types-missing-file-annotation': 'off',
// babel and es6 allow block-scoped functions
'no-inner-declarations': 'off',
// These rules are not required with hermes-eslint
'ft-flow/define-flow-type': 'off',
'ft-flow/use-flow-type': 'off',
// Flow handles all of these natively, so we don't want to use them
'no-undef': 'off',
'react/jsx-no-undef': 'off',
'constructor-super': 'off',
'no-dupe-args': 'off',
'no-obj-calls': 'off',
'no-unreachable': 'off',
},
};