-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
35 lines (35 loc) · 1.13 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
module.exports = {
extends: ['alloy', 'alloy/react', 'alloy/typescript'],
env: {
jest: true,
},
plugins: ['react-hooks', 'monorepo-cop'],
rules: {
'@typescript-eslint/no-invalid-this': 'off',
'no-useless-constructor': 'off',
'@typescript-eslint/triple-slash-reference': 'off',
'no-unused-expressions': 'off',
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'warn',
'no-undefined': 'off', // alloy config misusing
'prefer-const': [
'error',
{
destructuring: 'any',
ignoreReadBeforeAssign: false,
},
],
// Allow TS triple slash - https://github.com/typescript-eslint/typescript-eslint/issues/600#issuecomment-499979248
'spaced-comment': ['error', 'always', { markers: ['/'] }],
'@typescript-eslint/explicit-member-accessibility': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/no-parameter-properties': 'off',
'monorepo-cop/no-relative-import-outside-package': 'error',
'monorepo-cop/no-disable-monorepo-no-relative-rule': 'error',
},
settings: {
react: {
version: 'detect',
},
},
}