-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
37 lines (37 loc) · 883 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
35
36
37
module.exports = {
extends: ['@m-fe/eslint-config/base'],
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
project: './tsconfig.json',
tsconfigRootDir: __dirname,
},
rules: {
'@typescript-eslint/class-name-casing': 0,
'@typescript-eslint/no-explicit-any': 'off',
'jsx-quotes': 'off',
'no-unused-vars': [
'error',
{
varsIgnorePattern: 'Taro',
},
],
'@typescript-eslint/no-unused-vars': [
'error',
{
varsIgnorePattern: 'Taro',
},
],
'@typescript-eslint/explicit-function-return-type': 0,
'@typescript-eslint/no-empty-function': 0,
'@typescript-eslint/no-empty-interface': 0,
'@typescript-eslint/interface-name-prefix': 0,
},
parserOptions: {
ecmaFeatures: {
jsx: true,
},
useJSXTextNode: true,
project: './tsconfig.json',
},
};