-
Notifications
You must be signed in to change notification settings - Fork 5
/
.eslintrc.js
47 lines (47 loc) · 1.34 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 = {
env: {
browser: true,
es6: true,
jest: true,
mocha: true,
node: true
},
globals: {
artifacts: false,
assert: false,
contract: false,
web3: false
},
ignorePatterns: ['.eslintrc.js', 'build'],
extends: ['standard-with-typescript', 'react-app', 'plugin:react/recommended'],
plugins: ['react', 'react-hooks'],
parser: '@typescript-eslint/parser',
parserOptions: {
// The 'tsconfig.packages.json' is needed to add not-compiled files to the project
project: ['./tsconfig.json']
},
rules: {
'react/react-in-jsx-scope': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
// '@typescript-eslint/no-misused-promises': ['error', { checksVoidReturn: true }],
'@typescript-eslint/consistent-type-assertions': ['error', { assertionStyle: 'as', objectLiteralTypeAssertions: 'allow' }],
'@typescript-eslint/space-before-function-paren': 0,
'@typescript-eslint/no-floating-promises': 0,
'@typescript-eslint/strict-boolean-expressions': 0,
quotes: 'off',
'@typescript-eslint/quotes': 0
},
settings: {
react: {
pragma: 'React',
version: 'detect'
},
'import/extensions': ['.ts', '.tsx'],
'import/resolver': {
node: {
extensions: ['.ts', '.tsx'],
moduleDirectory: ['node_modules', 'src']
}
}
}
}