mirror of
https://github.com/unovue/shadcn-vue.git
synced 2026-09-14 19:59:38 +08:00
60 lines
1.3 KiB
JavaScript
60 lines
1.3 KiB
JavaScript
import antfu from '@antfu/eslint-config'
|
|
|
|
export default antfu(
|
|
{
|
|
vue: true,
|
|
typescript: true,
|
|
ignores: [
|
|
'**/__registry__/index.ts',
|
|
'**/__registry__/index.ts',
|
|
'**/registry/__index__.ts',
|
|
'**/registry/**/__index__.ts',
|
|
'**/*.md',
|
|
'deprecated/**/*',
|
|
],
|
|
},
|
|
{
|
|
files: ['**/*.vue'],
|
|
rules: {
|
|
'vue/one-component-per-file': 0,
|
|
'vue/no-reserved-component-names': 0,
|
|
'vue/no-useless-v-bind': 0,
|
|
},
|
|
},
|
|
{
|
|
files: ['**/registry/**/*.ts', '**/registry/**/*.vue'],
|
|
rules: {
|
|
'style/quotes': ['error', 'double'],
|
|
},
|
|
},
|
|
{
|
|
files: ['**/__registry__/**/*.ts'],
|
|
rules: {
|
|
'ts/ban-ts-comment': 0,
|
|
},
|
|
},
|
|
{
|
|
files: ['**/registry/default/examples/*.vue', '**/registry/new-york/examples/*.vue', '**/registry/new-york-v4/examples/*.vue'],
|
|
rules: {
|
|
'no-alert': 0,
|
|
'no-console': 0,
|
|
},
|
|
},
|
|
{
|
|
// Without `files`, they are general rules for all files
|
|
rules: {
|
|
'pnpm/json-enforce-catalog': 0,
|
|
'symbol-description': 0,
|
|
'no-console': 1,
|
|
'no-tabs': 0,
|
|
'import/first': 0,
|
|
'node/prefer-global/process': 0,
|
|
'style/no-tabs': 0,
|
|
'unused-imports/no-unused-vars': 0,
|
|
'unicorn/no-new-array': 0,
|
|
'import-x/consistent-type-specifier-style': 0,
|
|
'yaml/sort-keys': 0,
|
|
},
|
|
},
|
|
)
|