-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
46 lines (43 loc) · 1.35 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
module.exports = {
env: {
browser: true,
es6: true,
'jest/globals': true
},
extends: [
'eslint-config-standard',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
'plugin:jest/recommended'
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true
},
ecmaVersion: 2020,
sourceType: 'module'
},
plugins: ['@typescript-eslint', 'react', 'react-hooks', 'jest'],
rules: {
//
// Disable rules provided by other configs
//
'no-unused-vars': 0, // Provided by TypeScript
'no-undef': 0, // Provided by TypeScript
'no-void': 0,
'no-use-before-define': 0, // Provided by TypeScript
//
// Disable opinionated rules from @typescript-eslint
//
'@typescript-eslint/member-delimiter-style': 0, // Provided by Prettier
'@typescript-eslint/interface-name-prefix': 0,
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/explicit-function-return-type': 0,
'@typescript-eslint/no-use-before-define': 0,
'@typescript-eslint/no-non-null-assertion': 0,
'@typescript-eslint/no-unused-vars': 0, // Use TS compiler option instead
'@typescript-eslint/ban-ts-comment': 0, // Types can be wrong!
'@typescript-eslint/explicit-module-boundary-types': 0, // This is too verbose and not practical sometimes
}
}