-
Notifications
You must be signed in to change notification settings - Fork 9
/
.eslintrc.js
38 lines (33 loc) · 895 Bytes
/
.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
const {getESLintConfig, deepMerge} = require('ocular-dev-tools');
const defaultConfig = getESLintConfig({react: '16.8.2'});
module.exports = deepMerge(defaultConfig, {
parserOptions: {
project: ['./tsconfig.json'],
ecmaVersion: 2020
},
env: {
es2020: true
// browser: true,
// node: true
},
rules: {
camelcase: 0,
indent: 0,
'import/no-unresolved': 0,
'import/no-extraneous-dependencies': 0
},
overrides: [
{
files: ['**/*.ts', '**/*.tsx', '**/*.d.ts'],
rules: {
indent: 0,
'@typescript-eslint/ban-ts-comment': 0,
'@typescript-eslint/explicit-module-boundary-types': 0,
'@typescript-eslint/no-unsafe-assignment': 0,
'@typescript-eslint/no-unsafe-member-access': 0,
'@typescript-eslint/no-unsafe-return': 0,
'@typescript-eslint/no-unsafe-call': 0
}
}
]
});