chore: bump to eslint-config v2.8.0
(#2651)
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
This commit is contained in:
parent
62f70250d5
commit
9da77637b2
48 changed files with 896 additions and 511 deletions
37
eslint.config.js
Normal file
37
eslint.config.js
Normal file
|
@ -0,0 +1,37 @@
|
|||
// @ts-check
|
||||
import antfu from '@antfu/eslint-config'
|
||||
|
||||
export default await antfu(
|
||||
{
|
||||
unocss: false,
|
||||
vue: {
|
||||
overrides: {
|
||||
'vue/no-restricted-syntax': ['error', {
|
||||
selector: 'VElement[name=\'a\']',
|
||||
message: 'Use NuxtLink instead.',
|
||||
}],
|
||||
},
|
||||
},
|
||||
ignores: [
|
||||
'public/**',
|
||||
'public-dev/**',
|
||||
'public-staging/**',
|
||||
'https-dev-config/**',
|
||||
'elk-translation-status.json',
|
||||
'docs/translation-status.json',
|
||||
],
|
||||
},
|
||||
{
|
||||
rules: {
|
||||
// TODO: migrate all process reference to `import.meta.env` and remove this rule
|
||||
'node/prefer-global/process': 'off',
|
||||
},
|
||||
},
|
||||
// Sort local files
|
||||
{
|
||||
files: ['locales/**.json'],
|
||||
rules: {
|
||||
'jsonc/sort-keys': 'error',
|
||||
},
|
||||
},
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue