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

Update dependencies #2403

Merged
merged 27 commits into from
Feb 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
519cac3
Bump postcss-selector-parser from 6.0.13 to 6.0.15
FloEdelmann Feb 12, 2024
008fbf6
Bump semver from 7.5.4 to 7.6.0
FloEdelmann Feb 12, 2024
954d631
Bump @stylistic/eslint-plugin from 1.4.1 to 1.6.1
FloEdelmann Feb 12, 2024
cc463e2
Bump @types/eslint from 8.44.1 to 8.56.2
FloEdelmann Feb 12, 2024
a11a51c
Bump @types/natural-compare from 1.4.1 to 1.4.3
FloEdelmann Feb 12, 2024
158e863
Bump @types/node from 14.18.54 to 14.18.63
FloEdelmann Feb 12, 2024
c275be1
Bump @types/semver from 7.5.0 to 7.5.7
FloEdelmann Feb 12, 2024
464d822
Bump @types/xml-name-validator from 4.0.1 to 4.0.3
FloEdelmann Feb 12, 2024
adeef30
Bump @typescript-eslint from 6.2.0 to 7.0.1
FloEdelmann Feb 12, 2024
19d39a0
Bump assert from 2.0.0 to 2.1.0
FloEdelmann Feb 12, 2024
c6122c3
Bump esbuild from 0.18.17 to 0.20.0
FloEdelmann Feb 12, 2024
862addd
Bump eslint from 8.45.0 to 8.56.0
FloEdelmann Feb 12, 2024
35da22e
Bump eslint-config-prettier from 8.9.0 to 9.1.0
FloEdelmann Feb 12, 2024
29337ab
Bump eslint-plugin-eslint-plugin from 5.1.1 to 5.3.0
FloEdelmann Feb 12, 2024
82ea268
Bump eslint-plugin-import from 2.27.5 to 2.29.1
FloEdelmann Feb 12, 2024
6f85157
Bump eslint-plugin-jsonc from 2.9.0 to 2.13.0
FloEdelmann Feb 12, 2024
15e1fdb
Bump eslint-plugin-node-dependencies from 0.5.0 to 0.11.2
FloEdelmann Feb 12, 2024
487e556
Bump eslint-plugin-prettier from 5.0.0 to 5.1.3
FloEdelmann Feb 12, 2024
46d7e27
Bump eslint-plugin-unicorn from 48.0.1 to 51.0.1
FloEdelmann Feb 12, 2024
afc60a3
Bump markdownlint-cli from 0.35.0 to 0.39.0
FloEdelmann Feb 13, 2024
0431915
Bump mocha from 10.2.0 to 10.3.0
FloEdelmann Feb 13, 2024
37ef58f
Bump prettier from 3.0.0. to 3.2.5
FloEdelmann Feb 13, 2024
297467a
Bump typescript from 5.3.2 to 5.3.3
FloEdelmann Feb 13, 2024
de17a7d
Bump vitepress from 1.0.0-rc.31 to 1.0.0-rc.42
FloEdelmann Feb 13, 2024
9ef43bd
Migrate to ESLint flat config where possible
FloEdelmann Feb 13, 2024
c66eacd
fix: eslint-compat
ota-meshi Feb 22, 2024
afaaa47
fix
ota-meshi Feb 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 7 additions & 9 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

const globals = require('globals')
const { FlatCompat } = require('@eslint/eslintrc')
const eslintPluginEslintPlugin = require('eslint-plugin-eslint-plugin/configs/all')
const eslintPluginPrettierRecommended = require('eslint-plugin-prettier/recommended')
const eslintPluginUnicorn = require('eslint-plugin-unicorn')

const eslintrc = new FlatCompat({
baseDirectory: __dirname
Expand All @@ -25,14 +28,13 @@ module.exports = [
'docs/.vitepress/cache'
]
},
...eslintrc.plugins('eslint-plugin', 'prettier', 'unicorn'),
eslintPluginEslintPlugin,
eslintPluginUnicorn.configs['flat/recommended'],
...eslintrc.extends(
'plugin:eslint-plugin/all',
'prettier',
'plugin:node-dependencies/recommended',
'plugin:jsonc/recommended-with-jsonc',
'plugin:unicorn/recommended'
'plugin:jsonc/recommended-with-jsonc'
),
eslintPluginPrettierRecommended,
{
plugins: {
internal: {
Expand Down Expand Up @@ -203,10 +205,6 @@ module.exports = [
ecmaVersion: 'latest',
sourceType: 'module',
parser: require('vue-eslint-parser')
// parserOptions: {
// ecmaVersion: 'latest',
// sourceType: 'module'
// }
}
},
{
Expand Down
50 changes: 25 additions & 25 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,41 +57,41 @@
"@eslint-community/eslint-utils": "^4.4.0",
"natural-compare": "^1.4.0",
"nth-check": "^2.1.1",
"postcss-selector-parser": "^6.0.13",
"semver": "^7.5.4",
"postcss-selector-parser": "^6.0.15",
"semver": "^7.6.0",
"vue-eslint-parser": "^9.4.2",
"xml-name-validator": "^4.0.0"
},
"devDependencies": {
"@ota-meshi/site-kit-eslint-editor-vue": "^0.1.2",
"@stylistic/eslint-plugin": "^1.4.1",
"@types/eslint": "^8.44.1",
"@stylistic/eslint-plugin": "^1.6.1",
"@types/eslint": "^8.56.2",
"@types/eslint-visitor-keys": "^3.3.0",
"@types/natural-compare": "^1.4.1",
"@types/node": "^14.18.54",
"@types/semver": "^7.5.0",
"@types/xml-name-validator": "^4.0.1",
"@typescript-eslint/parser": "^6.2.0",
"@typescript-eslint/types": "^6.2.0",
"assert": "^2.0.0",
"@types/natural-compare": "^1.4.3",
"@types/node": "^14.18.63",
"@types/semver": "^7.5.7",
"@types/xml-name-validator": "^4.0.3",
"@typescript-eslint/parser": "^7.0.1",
"@typescript-eslint/types": "^7.0.1",
"assert": "^2.1.0",
"env-cmd": "^10.1.0",
"esbuild": "^0.18.17",
"eslint": "^8.45.0",
"eslint-config-prettier": "^8.9.0",
"eslint-plugin-eslint-plugin": "~5.1.1",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jsonc": "^2.9.0",
"eslint-plugin-node-dependencies": ">=0.5.0 <1.0.0",
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-unicorn": "^48.0.1",
"esbuild": "^0.20.0",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-eslint-plugin": "~5.3.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsonc": "^2.13.0",
"eslint-plugin-node-dependencies": "^0.11.2",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-unicorn": "^51.0.1",
"eslint-plugin-vue": "file:.",
"espree": "^9.6.1",
"events": "^3.3.0",
"markdownlint-cli": "^0.35.0",
"mocha": "^10.2.0",
"markdownlint-cli": "^0.39.0",
"mocha": "^10.3.0",
"nyc": "^15.1.0",
"prettier": "^3.0.0",
"typescript": "^5.3.2",
"vitepress": "^1.0.0-rc.31"
"prettier": "^3.2.5",
"typescript": "^5.3.3",
"vitepress": "^1.0.0-rc.42"
}
}
7 changes: 5 additions & 2 deletions tests/eslint-compat.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,11 @@ function getESLintClassForV8(BaseESLintClass = eslint.ESLint) {
// eslint-disable-next-line unicorn/consistent-function-scoping
function adjustOptions(options) {
const newOptions = {
...options,
useEslintrc: false
...options
}
if (newOptions.overrideConfigFile === true) {
newOptions.useEslintrc = false
delete newOptions.overrideConfigFile
}
if (newOptions.overrideConfig) {
newOptions.overrideConfig = { ...newOptions.overrideConfig }
Expand Down
1 change: 1 addition & 0 deletions tests/lib/configs/configs.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ describe('configs', () => {
for (const name of Object.keys(plugin.configs)) {
const configName = `plugin:vue/${name}`
const eslint = new ESLint({
overrideConfigFile: true,
overrideConfig: {
extends: [configName]
},
Expand Down
1 change: 1 addition & 0 deletions tests/lib/rules/block-order.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const { ESLint } = require('../../eslint-compat')

// Initialize linter.
const eslint = new ESLint({
overrideConfigFile: true,
overrideConfig: {
files: ['**/*.vue'],
languageOptions: {
Expand Down
2 changes: 2 additions & 0 deletions tests/lib/rules/comment-directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const { ESLint } = require('../../eslint-compat')

// Initialize linter.
const eslint = new ESLint({
overrideConfigFile: true,
overrideConfig: {
files: ['*'],
languageOptions: {
Expand Down Expand Up @@ -352,6 +353,7 @@ describe('comment-directive', () => {

describe('reportUnusedDisableDirectives', () => {
const eslint = new ESLint({
overrideConfigFile: true,
overrideConfig: {
files: ['**/*.vue'],
languageOptions: {
Expand Down
1 change: 1 addition & 0 deletions tests/lib/rules/component-tags-order.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const { ESLint } = require('../../eslint-compat')

// Initialize linter.
const eslint = new ESLint({
overrideConfigFile: true,
overrideConfig: {
files: ['**/*.vue'],
languageOptions: {
Expand Down