Skip to content

Commit 0ed91f0

Browse files
committed
fix: upgrade happy-dom to fix '__dirname is not defined'
1 parent c7ab5e6 commit 0ed91f0

File tree

3 files changed

+321
-439
lines changed

3 files changed

+321
-439
lines changed

_eslint.config.js

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
import antfu from '@antfu/eslint-config'
2+
3+
export default antfu(
4+
// Configures for antfu's config
5+
{
6+
stylistic: true, // enable stylistic formatting rules
7+
typescript: true,
8+
vue: true,
9+
jsonc: true,
10+
yml: false,
11+
},
12+
// From the second arguments they are ESLint Flat Configs
13+
// you can have multiple configs
14+
{
15+
rules: {
16+
'@typescript-eslint/brace-style': ['error', '1tbs', { allowSingleLine: true }],
17+
'brace-style': ['error', '1tbs', { allowSingleLine: true }],
18+
'curly': ['error', 'multi-line'],
19+
'no-console': 'off',
20+
'vue/attribute-hyphenation': 'off',
21+
'vue/component-tags-order': ['error', { order: [['script', 'template'], 'style'] }],
22+
'vue/custom-event-name-casing': 'off',
23+
'vue/max-attributes-per-line': ['error', { singleline: 1, multiline: 1 }],
24+
'vue/no-deprecated-v-bind-sync': 'off',
25+
'vue/no-deprecated-v-on-native-modifier': 'off',
26+
'vue/no-deprecated-destroyed-lifecycle': 'off',
27+
'vue/no-deprecated-dollar-listeners-api': 'off',
28+
'vue/no-deprecated-dollar-scopedslots-api': 'off',
29+
'vue/singleline-html-element-content-newline': 'off',
30+
},
31+
},
32+
)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"vue-demi": "latest"
6363
},
6464
"devDependencies": {
65-
"@antfu/eslint-config": "latest",
65+
"@antfu/eslint-config": "^0.43.1",
6666
"@commitlint/cli": "latest",
6767
"@commitlint/config-conventional": "latest",
6868
"@types/cross-spawn": "latest",

0 commit comments

Comments
 (0)