feat: custom plugin

This commit is contained in:
Anthony Fu
2022-04-02 23:18:36 +08:00
parent f1644757c8
commit ded3cf2da2
14 changed files with 1172 additions and 39 deletions

View File

@@ -32,6 +32,7 @@ module.exports = {
plugins: [
'html',
'unicorn',
'antfu',
],
settings: {
'import/resolver': {
@@ -288,5 +289,8 @@ module.exports = {
// yml
'yml/quotes': ['error', { prefer: 'single', avoidEscape: false }],
'yml/no-empty-document': 'off',
// antfu
'antfu/no-leading-newline': 'error',
},
}

View File

@@ -16,6 +16,7 @@
"eslint": ">=7.4.0"
},
"dependencies": {
"eslint-plugin-antfu": "workspace:*",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-html": "^6.2.0",
"eslint-plugin-import": "^2.25.4",