update
This commit is contained in:
37
eslint.config.js
Normal file
37
eslint.config.js
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
const antfu = require('@antfu/eslint-config').default
|
||||||
|
|
||||||
|
module.exports = antfu(
|
||||||
|
{
|
||||||
|
stylistic: {
|
||||||
|
indent: 2,
|
||||||
|
quotes: 'single',
|
||||||
|
},
|
||||||
|
typescript: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
rules: {
|
||||||
|
'no-console': 'off',
|
||||||
|
'unused-imports/no-unused-vars': 'off',
|
||||||
|
'unused-imports/no-unused-imports': 2,
|
||||||
|
'ts/consistent-type-imports': 'off',
|
||||||
|
'node/prefer-global/process': 'off',
|
||||||
|
'node/prefer-global/buffer': 'off',
|
||||||
|
'antfu/if-newline': 'off',
|
||||||
|
'import/order': [
|
||||||
|
2,
|
||||||
|
{
|
||||||
|
pathGroups: [
|
||||||
|
{
|
||||||
|
pattern: '~/**',
|
||||||
|
group: 'external',
|
||||||
|
position: 'after',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
alphabetize: { order: 'asc', caseInsensitive: false },
|
||||||
|
'newlines-between': 'always-and-inside-groups',
|
||||||
|
warnOnUnassignedImports: true,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
)
|
||||||
Reference in New Issue
Block a user