Skip to content

Commit 87f044d

Browse files
authored
chore(deps): bump eslint to v9 (#3075)
1 parent ab54e7e commit 87f044d

File tree

9 files changed

+212
-124
lines changed

9 files changed

+212
-124
lines changed

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
"@vue/test-utils": "^2.4.6",
9797
"autoprefixer": "^10.4.19",
9898
"codesandbox": "^2.2.3",
99-
"eslint": "^8.57.0",
99+
"eslint": "^9.2.0",
100100
"eslint-config-flat-gitignore": "^0.1.5",
101101
"fs-extra": "^11.2.0",
102102
"happy-dom": "^14.10.1",
@@ -127,5 +127,8 @@
127127
"repository": {
128128
"type": "git",
129129
"url": "https://github.com/jdf2e/nutui.git"
130+
},
131+
"resolutions": {
132+
"@typescript-eslint/utils": "^8.0.0-alpha.10"
130133
}
131134
}

packages/nutui-eslint-config/index.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ export default [
2222
'@typescript-eslint/ban-types': 'off',
2323
'@typescript-eslint/no-var-requires': 'off',
2424
'no-unused-vars': 'off',
25-
'@typescript-eslint/no-unused-vars': 'error',
25+
'@typescript-eslint/no-unused-vars': ['error', {
26+
caughtErrors: 'none'
27+
}],
2628
'@typescript-eslint/ban-ts-comment': 'off',
2729
// eslint-plugin-vue
2830
'vue/v-on-event-hyphenation': [
@@ -37,6 +39,9 @@ export default [
3739
'vue/first-attribute-linebreak': 'off',
3840
'vue/multi-word-component-names': 'off',
3941
'vue/no-v-text-v-html-on-component': 'off',
42+
'vue/block-order': ['error', {
43+
order: [['script', 'template'], 'style']
44+
}],
4045
// TODO: will be removed
4146
'vue/html-self-closing': 'off',
4247
'vue/html-closing-bracket-newline': 'off',

packages/nutui-eslint-config/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,17 @@
2626
},
2727
"dependencies": {
2828
"@stylistic/eslint-plugin": "^2.1.0",
29-
"@typescript-eslint/eslint-plugin": "^7.8.0",
30-
"@typescript-eslint/parser": "^7.8.0",
29+
"@typescript-eslint/eslint-plugin": "^8.0.0-alpha.10",
30+
"@typescript-eslint/parser": "^8.0.0-alpha.10",
3131
"eslint-plugin-vue": "^9.26.0",
32-
"typescript-eslint": "^7.8.0",
32+
"typescript-eslint": "^8.0.0-alpha.10",
3333
"vue-eslint-parser": "^9.4.2",
34-
"@eslint/js": "^8.57.0"
34+
"@eslint/js": "^9.2.0"
3535
},
3636
"devDependencies": {
37-
"eslint": "^8.57.0"
37+
"eslint": "^9.2.0"
3838
},
3939
"peerDependencies": {
40-
"eslint": "^7.32.0 || ^8.44.0"
40+
"eslint": "^8.44.0 || ^9.0.0"
4141
}
4242
}

packages/nutui-touch-emulator/src/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable */
21
/**
32
* Emulate touch event
43
* Source:https://github.com/hammerjs/touchemulator

packages/nutui-vite-plugins/src/markdown.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ ${code}
5454
}
5555
}
5656

57-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
5857
export default function markdown(options: MarkdownOptions) {
5958
return [
6059
TransformMarkdownDemo(options),

0 commit comments

Comments
 (0)