mirror of
https://github.com/MrXujiang/h5-Dooring.git
synced 2025-12-15 20:52:49 +00:00
27 lines
790 B
JavaScript
Executable File
27 lines
790 B
JavaScript
Executable File
module.exports = {
|
|
parser: '@typescript-eslint/parser',
|
|
parserOptions: {
|
|
project: 'tsconfig.json',
|
|
sourceType: 'module',
|
|
},
|
|
extends: [
|
|
require.resolve('@umijs/fabric/dist/eslint'),
|
|
'plugin:prettier/recommended',
|
|
],
|
|
ignorePatterns: ['.eslintrc.js'],
|
|
rules: {
|
|
'@typescript-eslint/no-unused-vars':'warn',
|
|
'@typescript-eslint/interface-name-prefix': 'off',
|
|
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
'@typescript-eslint/no-explicit-any': 'warn',
|
|
'@typescript-eslint/no-use-before-define':'off',
|
|
'@typescript-eslint/no-shadow':'off'
|
|
},
|
|
globals: {
|
|
ANT_DESIGN_PRO_ONLY_DO_NOT_USE_IN_YOUR_PRODUCTION: true,
|
|
page: true,
|
|
REACT_APP_ENV: true,
|
|
},
|
|
};
|