-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
34 lines (34 loc) · 1004 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
module.exports = {
env: { browser: 1 },
extends: '@bsonntag',
overrides: [
{
env: {
browser: true,
es6: true,
node: true,
},
extends: ['plugin:@typescript-eslint/recommended'],
files: ['**/*.ts', '**/*.tsx'],
parser: '@typescript-eslint/parser',
parserOptions: {
sourceType: 'module',
},
plugins: ['@typescript-eslint'],
rules: {
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': 'error',
'@typescript-eslint/no-use-before-define': 'error',
'no-use-before-define': 'off',
},
},
],
rules: {
'jsx-a11y/anchor-has-content': 'off', // Link props are checked by TypeScript
'jsx-a11y/anchor-is-valid': 'off', // Link props are checked by TypeScript
'react/jsx-uses-react': 'off',
'react/no-unescaped-entities': 'off',
'react/react-in-jsx-scope': 'off',
},
};