h5-Dooring/packages/ui/.eslintrc.js
2021-09-30 16:58:13 +08:00

27 lines
790 B
JavaScript

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,
},
};