forked from rematch/rematch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
61 lines (61 loc) · 1.36 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
module.exports = {
env: {
browser: true,
es6: true,
},
extends: [
'airbnb-base',
'eslint:recommended',
'plugin:import/errors',
'plugin:import/warnings',
'plugin:import/typescript',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
},
plugins: ['@typescript-eslint', 'prettier'],
rules: {
'no-restricted-syntax': 0,
'lines-between-class-members': [
'error',
'always',
{ exceptAfterSingleLine: true },
],
'no-param-reassign': 0,
'no-use-before-define': 0,
'@typescript-eslint/ban-types': 1,
'@typescript-eslint/ban-ts-comment': 0,
'@typescript-eslint/ban-ts-ignore': 0,
'no-shadow': 1,
'import/prefer-default-export': 0,
'import/no-unresolved': [
0,
{ ignore: ['^@theme', '^@docusaurus', '^@generated'] },
],
'import/extensions': [
'error',
'ignorePackages',
{
js: 'never',
jsx: 'never',
ts: 'never',
tsx: 'never',
},
],
'no-underscore-dangle': [
'error',
{ allow: ['__REDUX_DEVTOOLS_EXTENSION_COMPOSE__'] },
],
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/no-use-before-define': ['error', { functions: false }],
},
}