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.
25 lines
702 B
25 lines
702 B
// import eslint_js from '@eslint/js'
|
|
// import eslint_ts from 'typescript-eslint';
|
|
// import eslint_vue from 'eslint-plugin-vue';
|
|
// import vue_parser from 'vue-eslint-parser';
|
|
|
|
import lintConfig from '@antfu/eslint-config'
|
|
import simpleImportSort from 'eslint-plugin-simple-import-sort'
|
|
|
|
export default lintConfig({
|
|
vue: true,
|
|
markdown: true,
|
|
ignores: [],
|
|
plugins: {
|
|
'simple-import-sort': simpleImportSort, // 作为对象注册插件
|
|
},
|
|
rules: {
|
|
'simple-import-sort/imports': 'error',
|
|
'no-console': 0,
|
|
'perfectionist/sort-imports': 'off',
|
|
'antfu/top-level-function': 0,
|
|
'ts/no-use-before-define': 0,
|
|
'no-alert': 0,
|
|
},
|
|
globals: { process: 'readonly' },
|
|
})
|