Skip to content

Commit

Permalink
Allow ESLint v9 as peer dependency (#2444)
Browse files Browse the repository at this point in the history
  • Loading branch information
FloEdelmann committed Apr 8, 2024
1 parent eadf0eb commit 9e063d5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 37 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/CI.yml
Expand Up @@ -28,12 +28,8 @@ jobs:
matrix:
node: [18, 20]
os: [ubuntu-latest]
eslint: [8]
eslint: [8, 9]
include:
# On next ESLint version
- eslint: ^9.0.0-0
node: 20
os: ubuntu-latest
# On old Node version
- eslint: 8
node: 17
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -52,7 +52,7 @@
"node": "^14.17.0 || >=16.0.0"
},
"peerDependencies": {
"eslint": "^6.2.0 || ^7.0.0 || ^8.0.0"
"eslint": "^6.2.0 || ^7.0.0 || ^8.0.0 || ^9.0.0"
},
"dependencies": {
"@eslint-community/eslint-utils": "^4.4.0",
Expand Down
31 changes: 0 additions & 31 deletions tests/lib/rules/custom-event-name-casing.js
Expand Up @@ -575,37 +575,6 @@ tester.run('custom-event-name-casing', rule, {
]
},
// kebab-case
{
filename: 'test.vue',
code: `
<template>
<input
@click="$emit('fooBar')">
</template>
<script>
export default {
setup(props, context) {
return {
onInput(value) {
context.emit('barBaz')
}
}
},
methods: {
onClick() {
this.$emit('bazQux')
}
}
}
</script>
`,
options: ['kebab-case'],
errors: [
"Custom event name 'fooBar' must be kebab-case.",
"Custom event name 'barBaz' must be kebab-case.",
"Custom event name 'bazQux' must be kebab-case."
]
},
{
filename: 'test.vue',
code: `
Expand Down

0 comments on commit 9e063d5

Please sign in to comment.