Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dependency eslint to v9 #5155

Merged
merged 5 commits into from
Sep 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
316 changes: 79 additions & 237 deletions .ops/aws-setup/package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .ops/aws-setup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"@eslint/eslintrc": "3.1.0",
"@eslint/js": "9.9.1",
"@types/node": "20.16.5",
"eslint": "8.57.0",
"eslint": "9.9.1",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-n": "17.10.2",
"eslint-plugin-prettier": "5.2.1",
Expand Down
31 changes: 17 additions & 14 deletions common/eslint-local-rules/__tests__/matchingTranslationKeys.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,29 @@ import path from 'path'
import fs from 'fs'
import utils from 'eslint-plugin-vue/lib/utils/index.js'
import { describe, it } from 'vitest'
import localRules from 'eslint-plugin-local-rules'
import globals from 'globals'
import eslintParser from 'vue-eslint-parser'

RuleTester.describe = describe
RuleTester.it = it

const ruleTester = new RuleTester({
parser: require.resolve('vue-eslint-parser'),
root: true,
env: {
node: true,
plugins: {
'local-rules': localRules,
},
extends: [
'plugin:vue/recommended',
'eslint:recommended',
'plugin:prettier/recommended',
'@vue/eslint-config-prettier',
],
parserOptions: {
parser: '@babel/eslint-parser',

languageOptions: {
parser: eslintParser,
globals: {
...globals.node,
...globals.jest,
},

parserOptions: {
parser: '@babel/eslint-parser',
},
},
plugins: ['eslint-plugin-local-rules'],
})
const ruleInstance = rule(path, utils, fs)

Expand Down Expand Up @@ -122,7 +125,7 @@ ruleTester.run('local-rules/matching-translation-keys', ruleInstance, {
},
{
name: 'allows correct key with arguments',
code: '$tc(\'components.hello.world\', 0, { test: "foo" })',
code: '$tc("components.hello.world", 0, { test: "foo" })',
options: options,
filename: '/src/components/hello.js',
},
Expand Down
Loading
Loading