naive-ui/eslint.config.mjs

40 lines
754 B
JavaScript
Raw Permalink Normal View History

2024-07-12 00:48:52 +08:00
import antfu from '@antfu/eslint-config'
export default antfu(
{
regexp: false,
ignores: [
'node_modules',
'lib',
'test/unit/coverage',
'src/_deprecated/icons',
'dist',
2024-07-12 01:03:34 +08:00
'es'
]
2024-07-12 00:48:52 +08:00
},
{
files: ['**/*.demo.vue'],
rules: {
'no-console': 'off',
2024-07-12 01:03:34 +08:00
'vue/one-component-per-file': 'off'
}
2024-07-12 00:48:52 +08:00
},
{
files: ['**/*.tsx'],
rules: {
2024-07-12 01:03:34 +08:00
'unused-imports/no-unused-imports': 'off'
}
2024-07-12 00:48:52 +08:00
},
{
files: ['**/*'],
rules: {
'style/multiline-ternary': 'off',
'style/max-statements-per-line': 'off',
2024-07-12 01:12:04 +08:00
'style/comma-dangle': 'off',
'style/quote-props': 'off',
'jsdoc/require-returns-description': 'off',
'jsdoc/check-param-names': 'off'
2024-07-12 01:03:34 +08:00
}
}
2024-07-12 00:48:52 +08:00
)