-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
77 lines (77 loc) · 2.26 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
},
plugins: [
'jsx-a11y',
'import',
'prettier',
'@typescript-eslint',
'quick-prettier',
],
extends: [
'blitz',
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
'plugin:import/warnings',
'plugin:import/typescript',
'plugin:jsx-a11y/recommended',
'plugin:react-hooks/recommended',
],
rules: {
'@typescript-eslint/explicit-member-accessibility': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-parameter-properties': 'off',
'@typescript-eslint/ban-ts-ignore': 'off',
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/no-use-before-define': 'off',
'@typescript-eslint/no-empty-interface': 'off',
'@typescript-eslint/no-inferrable-types': 'warn',
'@typescript-eslint/no-empty-function': 'warn',
'@typescript-eslint/camelcase': 'off',
'quick-prettier/prettier': 1,
'import/no-unresolved': 0,
'import/order': 'warn',
'@typescript-eslint/interface-name-prefix': 0,
'import/no-named-as-default-member': 0,
'no-prototype-builtins': 0,
'import/no-named-as-default': 0,
'import/no-duplicates': 0,
'no-case-declarations': 0,
'jsx-a11y/no-autofocus': 0,
'@typescript-eslint/no-explicit-any': 0,
'react/react-in-jsx-scope': 'off', // React is always in scope with Blitz
'jsx-a11y/anchor-is-valid': 'off', //Doesn't play well with Blitz/Next <Link> usage
'jsx-a11y/tabindex-no-positive': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'no-trailing-spaces': 'error',
'react/no-unescaped-entities': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
},
overrides: [
{
files: ['*.tsx'],
rules: {
'@typescript-eslint/no-unused-vars': 'off',
},
},
{
files: ['*.js'],
rules: {
'@typescript-eslint/no-var-requires': 'off',
},
},
],
settings: {
'import/extensions': ['.ts', '.tsx'],
},
ignorePatterns: ['.next/**/*', '.blitz/**/*', 'scripts/*'],
env: {
jest: true,
},
};