Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0fb68b3

Browse files
FloEdelmannota-meshi
andauthored
Update dependencies (#2403)
Co-authored-by: ota-meshi <otameshiyo23@gmail.com>
1 parent 1e12806 commit 0fb68b3

File tree

7 files changed

+42
-36
lines changed

7 files changed

+42
-36
lines changed

‎eslint.config.js

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
const globals = require('globals')
44
const { FlatCompat } = require('@eslint/eslintrc')
5+
const eslintPluginEslintPlugin = require('eslint-plugin-eslint-plugin/configs/all')
6+
const eslintPluginPrettierRecommended = require('eslint-plugin-prettier/recommended')
7+
const eslintPluginUnicorn = require('eslint-plugin-unicorn')
58

69
const eslintrc = new FlatCompat({
710
baseDirectory: __dirname
@@ -25,14 +28,13 @@ module.exports = [
2528
'docs/.vitepress/cache'
2629
]
2730
},
28-
...eslintrc.plugins('eslint-plugin', 'prettier', 'unicorn'),
31+
eslintPluginEslintPlugin,
32+
eslintPluginUnicorn.configs['flat/recommended'],
2933
...eslintrc.extends(
30-
'plugin:eslint-plugin/all',
31-
'prettier',
3234
'plugin:node-dependencies/recommended',
33-
'plugin:jsonc/recommended-with-jsonc',
34-
'plugin:unicorn/recommended'
35+
'plugin:jsonc/recommended-with-jsonc'
3536
),
37+
eslintPluginPrettierRecommended,
3638
{
3739
plugins: {
3840
internal: {
@@ -203,10 +205,6 @@ module.exports = [
203205
ecmaVersion: 'latest',
204206
sourceType: 'module',
205207
parser: require('vue-eslint-parser')
206-
// parserOptions: {
207-
// ecmaVersion: 'latest',
208-
// sourceType: 'module'
209-
// }
210208
}
211209
},
212210
{

‎package.json

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -57,41 +57,41 @@
5757
"@eslint-community/eslint-utils": "^4.4.0",
5858
"natural-compare": "^1.4.0",
5959
"nth-check": "^2.1.1",
60-
"postcss-selector-parser": "^6.0.13",
61-
"semver": "^7.5.4",
60+
"postcss-selector-parser": "^6.0.15",
61+
"semver": "^7.6.0",
6262
"vue-eslint-parser": "^9.4.2",
6363
"xml-name-validator": "^4.0.0"
6464
},
6565
"devDependencies": {
6666
"@ota-meshi/site-kit-eslint-editor-vue": "^0.1.2",
67-
"@stylistic/eslint-plugin": "^1.4.1",
68-
"@types/eslint": "^8.44.1",
67+
"@stylistic/eslint-plugin": "^1.6.1",
68+
"@types/eslint": "^8.56.2",
6969
"@types/eslint-visitor-keys": "^3.3.0",
70-
"@types/natural-compare": "^1.4.1",
71-
"@types/node": "^14.18.54",
72-
"@types/semver": "^7.5.0",
73-
"@types/xml-name-validator": "^4.0.1",
74-
"@typescript-eslint/parser": "^6.2.0",
75-
"@typescript-eslint/types": "^6.2.0",
76-
"assert": "^2.0.0",
70+
"@types/natural-compare": "^1.4.3",
71+
"@types/node": "^14.18.63",
72+
"@types/semver": "^7.5.7",
73+
"@types/xml-name-validator": "^4.0.3",
74+
"@typescript-eslint/parser": "^7.0.1",
75+
"@typescript-eslint/types": "^7.0.1",
76+
"assert": "^2.1.0",
7777
"env-cmd": "^10.1.0",
78-
"esbuild": "^0.18.17",
79-
"eslint": "^8.45.0",
80-
"eslint-config-prettier": "^8.9.0",
81-
"eslint-plugin-eslint-plugin": "~5.1.1",
82-
"eslint-plugin-import": "^2.27.5",
83-
"eslint-plugin-jsonc": "^2.9.0",
84-
"eslint-plugin-node-dependencies": ">=0.5.0 <1.0.0",
85-
"eslint-plugin-prettier": "^5.0.0",
86-
"eslint-plugin-unicorn": "^48.0.1",
78+
"esbuild": "^0.20.0",
79+
"eslint": "^8.56.0",
80+
"eslint-config-prettier": "^9.1.0",
81+
"eslint-plugin-eslint-plugin": "~5.3.0",
82+
"eslint-plugin-import": "^2.29.1",
83+
"eslint-plugin-jsonc": "^2.13.0",
84+
"eslint-plugin-node-dependencies": "^0.11.2",
85+
"eslint-plugin-prettier": "^5.1.3",
86+
"eslint-plugin-unicorn": "^51.0.1",
8787
"eslint-plugin-vue": "file:.",
8888
"espree": "^9.6.1",
8989
"events": "^3.3.0",
90-
"markdownlint-cli": "^0.35.0",
91-
"mocha": "^10.2.0",
90+
"markdownlint-cli": "^0.39.0",
91+
"mocha": "^10.3.0",
9292
"nyc": "^15.1.0",
93-
"prettier": "^3.0.0",
94-
"typescript": "^5.3.2",
95-
"vitepress": "^1.0.0-rc.31"
93+
"prettier": "^3.2.5",
94+
"typescript": "^5.3.3",
95+
"vitepress": "^1.0.0-rc.42"
9696
}
9797
}

‎tests/eslint-compat.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,11 @@ function getESLintClassForV8(BaseESLintClass = eslint.ESLint) {
3131
// eslint-disable-next-line unicorn/consistent-function-scoping
3232
function adjustOptions(options) {
3333
const newOptions = {
34-
...options,
35-
useEslintrc: false
34+
...options
35+
}
36+
if (newOptions.overrideConfigFile === true) {
37+
newOptions.useEslintrc = false
38+
delete newOptions.overrideConfigFile
3639
}
3740
if (newOptions.overrideConfig) {
3841
newOptions.overrideConfig = { ...newOptions.overrideConfig }

‎tests/lib/configs/configs.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ describe('configs', () => {
77
for (const name of Object.keys(plugin.configs)) {
88
const configName = `plugin:vue/${name}`
99
const eslint = new ESLint({
10+
overrideConfigFile: true,
1011
overrideConfig: {
1112
extends: [configName]
1213
},

‎tests/lib/rules/block-order.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const { ESLint } = require('../../eslint-compat')
1010

1111
// Initialize linter.
1212
const eslint = new ESLint({
13+
overrideConfigFile: true,
1314
overrideConfig: {
1415
files: ['**/*.vue'],
1516
languageOptions: {

‎tests/lib/rules/comment-directive.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const { ESLint } = require('../../eslint-compat')
1010

1111
// Initialize linter.
1212
const eslint = new ESLint({
13+
overrideConfigFile: true,
1314
overrideConfig: {
1415
files: ['*'],
1516
languageOptions: {
@@ -352,6 +353,7 @@ describe('comment-directive', () => {
352353

353354
describe('reportUnusedDisableDirectives', () => {
354355
const eslint = new ESLint({
356+
overrideConfigFile: true,
355357
overrideConfig: {
356358
files: ['**/*.vue'],
357359
languageOptions: {

‎tests/lib/rules/component-tags-order.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const { ESLint } = require('../../eslint-compat')
1010

1111
// Initialize linter.
1212
const eslint = new ESLint({
13+
overrideConfigFile: true,
1314
overrideConfig: {
1415
files: ['**/*.vue'],
1516
languageOptions: {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /