mirror of https://github.com/longtai-cn/hippo4j
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
752 B
30 lines
752 B
2 years ago
|
module.exports = {
|
||
|
env: {
|
||
|
browser: true,
|
||
|
es2021: true,
|
||
|
node: true,
|
||
|
},
|
||
|
root: true,
|
||
|
extends: ['eslint:recommended', 'react-app', 'plugin:prettier/recommended', 'plugin:@typescript-eslint/recommended'],
|
||
|
overrides: [],
|
||
|
parser: '@typescript-eslint/parser',
|
||
|
parserOptions: {
|
||
|
ecmaVersion: 'latest',
|
||
|
sourceType: 'module',
|
||
|
ecmaFeatures: {
|
||
|
jsx: true,
|
||
|
},
|
||
|
},
|
||
|
plugins: ['react', '@typescript-eslint'],
|
||
|
rules: {
|
||
|
eqeqeq: 2,
|
||
|
'no-alert': 2,
|
||
|
'no-undef': 2,
|
||
|
'no-use-before-define': 2,
|
||
|
'react-hooks/exhaustive-deps': 2,
|
||
|
'@typescript-eslint/no-explicit-any': 0,
|
||
|
'@typescript-eslint/no-non-null-assertion': 0,
|
||
|
'@typescript-eslint/no-var-requires': 0,
|
||
|
},
|
||
|
};
|