Skip to content

Commit

Permalink
chore(deps): bump eslint to v9 (#3075)
Browse files Browse the repository at this point in the history
  • Loading branch information
eiinu committed May 13, 2024
1 parent ab54e7e commit 87f044d
Show file tree
Hide file tree
Showing 9 changed files with 212 additions and 124 deletions.
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
"@vue/test-utils": "^2.4.6",
"autoprefixer": "^10.4.19",
"codesandbox": "^2.2.3",
"eslint": "^8.57.0",
"eslint": "^9.2.0",
"eslint-config-flat-gitignore": "^0.1.5",
"fs-extra": "^11.2.0",
"happy-dom": "^14.10.1",
Expand Down Expand Up @@ -127,5 +127,8 @@
"repository": {
"type": "git",
"url": "https://github.com/jdf2e/nutui.git"
},
"resolutions": {
"@typescript-eslint/utils": "^8.0.0-alpha.10"
}
}
7 changes: 6 additions & 1 deletion packages/nutui-eslint-config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ export default [
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/no-var-requires': 'off',
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': 'error',
'@typescript-eslint/no-unused-vars': ['error', {
caughtErrors: 'none'
}],
'@typescript-eslint/ban-ts-comment': 'off',
// eslint-plugin-vue
'vue/v-on-event-hyphenation': [
Expand All @@ -37,6 +39,9 @@ export default [
'vue/first-attribute-linebreak': 'off',
'vue/multi-word-component-names': 'off',
'vue/no-v-text-v-html-on-component': 'off',
'vue/block-order': ['error', {
order: [['script', 'template'], 'style']
}],
// TODO: will be removed
'vue/html-self-closing': 'off',
'vue/html-closing-bracket-newline': 'off',
Expand Down
12 changes: 6 additions & 6 deletions packages/nutui-eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,17 @@
},
"dependencies": {
"@stylistic/eslint-plugin": "^2.1.0",
"@typescript-eslint/eslint-plugin": "^7.8.0",
"@typescript-eslint/parser": "^7.8.0",
"@typescript-eslint/eslint-plugin": "^8.0.0-alpha.10",
"@typescript-eslint/parser": "^8.0.0-alpha.10",
"eslint-plugin-vue": "^9.26.0",
"typescript-eslint": "^7.8.0",
"typescript-eslint": "^8.0.0-alpha.10",
"vue-eslint-parser": "^9.4.2",
"@eslint/js": "^8.57.0"
"@eslint/js": "^9.2.0"
},
"devDependencies": {
"eslint": "^8.57.0"
"eslint": "^9.2.0"
},
"peerDependencies": {
"eslint": "^7.32.0 || ^8.44.0"
"eslint": "^8.44.0 || ^9.0.0"
}
}
1 change: 0 additions & 1 deletion packages/nutui-touch-emulator/src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable */
/**
* Emulate touch event
* Source:https://github.com/hammerjs/touchemulator
Expand Down
1 change: 0 additions & 1 deletion packages/nutui-vite-plugins/src/markdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ ${code}
}
}

// eslint-disable-next-line @typescript-eslint/no-unused-vars
export default function markdown(options: MarkdownOptions) {
return [
TransformMarkdownDemo(options),
Expand Down
Loading

0 comments on commit 87f044d

Please sign in to comment.