fix: 移动目录
This commit is contained in:
52
.eslintrc.js
Normal file
52
.eslintrc.js
Normal file
@@ -0,0 +1,52 @@
|
||||
module.exports = {
|
||||
extends: [
|
||||
'react-app',
|
||||
'react-app/jest',
|
||||
'eslint:recommended',
|
||||
'plugin:react/recommended',
|
||||
'plugin:@typescript-eslint/recommended',
|
||||
'prettier',
|
||||
'prettier/prettier',
|
||||
'plugin:prettier/recommended',
|
||||
'plugin:react-hooks/recommended',
|
||||
'plugin:json/recommended',
|
||||
],
|
||||
parser: '@typescript-eslint/parser',
|
||||
plugins: ['react', '@typescript-eslint', 'simple-import-sort'],
|
||||
rules: {
|
||||
'prettier/prettier': ['error', { singleQuote: true }],
|
||||
'@typescript-eslint/no-unused-vars': [
|
||||
'off',
|
||||
{ argsIgnorePattern: ['^_', 'tocoServices'] },
|
||||
],
|
||||
'simple-import-sort/exports': 'error',
|
||||
'react-hooks/exhaustive-deps': 'error',
|
||||
'react/react-in-jsx-scope': 'off',
|
||||
'react/prop-types': 'off',
|
||||
'@typescript-eslint/no-non-null-assertion': 'off',
|
||||
},
|
||||
overrides: [
|
||||
{
|
||||
files: ['**/*.js'],
|
||||
rules: {
|
||||
'react/no-children-prop': 'off',
|
||||
},
|
||||
},
|
||||
{
|
||||
files: ['**/*.json'],
|
||||
rules: {
|
||||
'prettier/prettier': ['error', { singleQuote: false }],
|
||||
},
|
||||
},
|
||||
{
|
||||
files: ['**/*.config.js', '**/setupProxy.js', 'script/**/*.js'],
|
||||
rules: {
|
||||
'@typescript-eslint/no-var-requires': 'off',
|
||||
},
|
||||
},
|
||||
],
|
||||
globals: {
|
||||
tocoRefs: true,
|
||||
tocoModals: true,
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user