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.
35 lines
876 B
35 lines
876 B
const antfu = require('@antfu/eslint-config').default
|
|
|
|
module.exports = antfu(
|
|
{
|
|
ignores: [
|
|
// eslint ignore globs here
|
|
'node_modules',
|
|
'.vscode',
|
|
'dist',
|
|
'/public',
|
|
'.husky',
|
|
'eslint.config.js',
|
|
],
|
|
},
|
|
{
|
|
rules: {
|
|
'no-debugger': 'off',
|
|
'unused-imports/no-unused-vars': 'off',
|
|
'unused-imports/no-unused-imports': 'off',
|
|
'jsdoc/require-returns-description': 'off',
|
|
"jsdoc/check-param-names": "off",
|
|
'jsdoc/require-param-name': 'off',
|
|
'eqeqeq': 'off',
|
|
'vue/custom-event-name-casing': 'off',
|
|
'vue/eqeqeq': 'off',
|
|
'no-console': ['warn', { allow: ['warn', 'error'] }],
|
|
'no-restricted-syntax': [
|
|
process.env.MODE === 'production' ? 2 : 0,
|
|
],
|
|
'array-callback-return': ['error', { allowImplicit: true }],
|
|
curly: ['off']
|
|
},
|
|
},
|
|
)
|