代码拉取完成,页面将自动刷新
const { getESLintConfig } = require('moga-lint');
module.exports = getESLintConfig('react-ts', {
rules: {
'no-async-promise-executor': 'off',
'@iceworks/best-practices/recommend-polyfill': 'off',
'@iceworks/best-practices/no-js-in-ts-project': 'off',
'@typescript-eslint/no-invalid-void-type': 'off',
'max-len': 'off',
'@typescript-eslint/no-shadow': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/unified-signatures': 'off',
'@typescript-eslint/no-empty-interface': 'off',
'@typescript-eslint/member-ordering': 'off',
'no-nested-ternary': 'off',
// 是否允许require()导入
'@typescript-eslint/no-require-imports': 'off',
// ===
eqeqeq: 'off',
'no-console': 'off',
// 禁止在对函数参数赋值
'no-param-reassign': 'off',
'no-await-in-loop': 'off',
'max-lines': 'off',
},
});
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。