You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
549 B
JavaScript

5 months ago
const fabric = require('@umijs/fabric');
module.exports = {
...fabric.eslint,
// in antd-design-pro
globals: {
ANT_DESIGN_PRO_ONLY_DO_NOT_USE_IN_YOUR_PRODUCTION: true,
REACT_APP_ENV: true,
page: true,
},
editor: {
codeActionsOnSave: true,
},
rules: {
// your rules
...fabric.eslint.rules,
'react/jsx-first-prop-new-line': 'error',
semi: ['error', 'never'],
indent: ['error', 2, { SwitchCase: 1 }],
'no-plusplus': 'off',
'react/sort-comp': 'off',
'no-unused-expressions': 'off',
},
};