You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
633 B
29 lines
633 B
// @ts-check
|
|
const antfu = require('@antfu/eslint-config').default
|
|
|
|
module.exports = antfu(
|
|
{
|
|
ignores: [
|
|
// eslint ignore globs here
|
|
'node_modules',
|
|
'.vscode',
|
|
'dist',
|
|
'/public',
|
|
'.husky',
|
|
],
|
|
},
|
|
{
|
|
rules: {
|
|
// 允许使用 debugger
|
|
'no-debugger': 'off',
|
|
'unused-imports/no-unused-vars': 'off',
|
|
'unused-imports/no-unused-imports': 'off',
|
|
'jsdoc/require-returns-description': 'off',
|
|
'no-restricted-syntax': [
|
|
// eslint-disable-next-line node/prefer-global/process
|
|
process.env.MODE === 'production' ? 2 : 0,
|
|
],
|
|
},
|
|
},
|
|
)
|