-
Notifications
You must be signed in to change notification settings - Fork 5
/
.eslintrc.js
47 lines (41 loc) · 1.28 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
36
37
38
39
40
41
42
43
44
45
46
47
module.exports = {
extends: [
'@scottnonnenberg/eslint-config-thehelp',
'@scottnonnenberg/eslint-config-thehelp/react',
'@scottnonnenberg/eslint-config-thehelp/typescript',
'@scottnonnenberg/eslint-config-thehelp/prettier',
'@scottnonnenberg/eslint-config-thehelp/prettierReact',
'@scottnonnenberg/eslint-config-thehelp/prettierTypescript',
],
parserOptions: {
project: ['./tsconfig.json'],
},
settings: {
'import/resolver': {
node: {
paths: [__dirname],
},
typescript: {
project: ['./tsconfig.json'],
},
},
react: {
version: '16.13.1',
},
},
rules: {
// This is an odd project, in that the vast majority of dependencies are not 'production'
'import/no-extraneous-dependencies': 'off',
// We're not handling user data in this project
'security/detect-object-injection': 'off',
// The `graphql` tag function type definition returns void, but we assign it to
// variables and pass it to hooks
'@typescript-eslint/no-confusing-void-expression': 'off',
// These two need to be changed together
'import/no-internal-modules': 'off',
'@scottnonnenberg/thehelp/absolute-or-current-dir': [
'error',
{ exceptions: ['setupModulePath'] },
],
},
};