-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
49 lines (47 loc) · 1.4 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
/** @type { import('eslint').Linter.Config } */
const config = {
root: true,
env: {
browser: true,
es2021: true,
node: true,
},
extends: 'airbnb-typescript-prettier',
parserOptions: {
ecmaVersion: 2021,
},
rules: {
// Project rules
'import/no-extraneous-dependencies': 'off',
'import/prefer-default-export': 'off',
'no-restricted-syntax': ['error', 'ForInStatement', 'LabeledStatement', 'WithStatement'],
'class-methods-use-this': 'off',
'import/extensions': 'off',
'import/no-absolute-path': 'off',
'import/no-unresolved': 'off',
// React JSX rules that we don't care about while using vue.
'react/function-component-definition': 'off',
'react/react-in-jsx-scope': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'react/no-unstable-nested-components': 'off',
'react-hooks/rules-of-hooks': 'off',
'react/jsx-props-no-spreading': 'off',
'jsx-a11y/no-noninteractive-element-interactions': 'off',
'jsx-a11y/click-events-have-key-events': 'off',
'jsx-a11y/label-has-associated-control': 'off',
'react/no-unknown-property': 'off',
'react/no-string-refs': 'off',
'react/no-this-in-sfc': 'off',
'react/style-prop-object': 'off',
'react/no-unescaped-entities': 'off',
},
overrides: [
{
files: '*.d.ts',
rules: {
'no-var': 'off',
},
},
],
};
module.exports = config;