-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.eslintrc.cjs
36 lines (36 loc) · 1.31 KB
/
.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
29
30
31
32
33
34
35
36
module.exports = {
root: true,
env: {
es6: true,
node: true
},
extends: ['plugin:react/recommended', 'plugin:react-hooks/recommended', 'standard-with-typescript', 'standard-react', 'standard-jsx'],
plugins: ['react', 'react-hooks', '@typescript-eslint'],
parser: '@typescript-eslint/parser',
parserOptions: {
project: './tsconfig.json'
},
rules: {
/* 'graphql/template-strings': ['error', {
env: 'apollo',
schemaString: require('fs').readFileSync(
require('path').resolve(__dirname, 'dashboard/schema.graphql'),
{ encoding: 'utf8' }
)
}], */
// Make TypeScript ESLint less strict.
'@typescript-eslint/no-confusing-void-expression': 'off',
'@typescript-eslint/strict-boolean-expressions': 'off',
'@typescript-eslint/restrict-plus-operands': 'off',
'@typescript-eslint/triple-slash-reference': 'off',
'@typescript-eslint/no-dynamic-delete': 'off',
// Disable some interfering rules. TODO: Re-enable these!
'@typescript-eslint/restrict-template-expressions': 'off',
'@typescript-eslint/prefer-nullish-coalescing': 'off',
'@typescript-eslint/no-unsafe-argument': 'off',
'@typescript-eslint/no-base-to-string': 'off',
'@typescript-eslint/no-misused-promises': 'off',
// Allow no-multi-str.
'no-multi-str': 'off'
}
}