Skip to content

Commit

Permalink
Merge pull request #5155 from ecamp/renovate/major-eslint-monorepo
Browse files Browse the repository at this point in the history
chore(deps): update dependency eslint to v9
  • Loading branch information
BacLuc authored Sep 12, 2024
2 parents b1312a8 + 2489ccb commit edc1491
Show file tree
Hide file tree
Showing 17 changed files with 392 additions and 1,065 deletions.
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

0 comments on commit edc1491

Please sign in to comment.