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-dev): bump eslint from 8.57.1 to 9.17.0 #306

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft
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
3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

4 changes: 0 additions & 4 deletions .eslintrc

This file was deleted.

3 changes: 3 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
const config = require('eslint-config-hexo/eslint');

module.exports = config;
2 changes: 1 addition & 1 deletion lib/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ const renderer = {

try {
out += encodeURL(href);
} catch (e) {
} catch {
out += href;
}

Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Markdown renderer plugin for Hexo",
"main": "index",
"scripts": {
"eslint": "eslint .",
"eslint": "eslint --flag unstable_config_lookup_from_file lib/ test/ index.js",
"test": "mocha test/index.js",
"test-cov": "c8 --reporter=lcovonly npm run test"
},
Expand Down Expand Up @@ -39,8 +39,8 @@
"devDependencies": {
"c8": "^10.1.2",
"chai": "^4.3.7",
"eslint": "^8.57.0",
"eslint-config-hexo": "^5.0.0",
"eslint": "^9.17.0",
"eslint-config-hexo": "github:yoshinorin/eslint-config-hexo#chore/migrate-to-flatconfig",
"hexo": "^7.1.1",
"mocha": "^10.4.0"
},
Expand Down
3 changes: 0 additions & 3 deletions test/.eslintrc

This file was deleted.

5 changes: 5 additions & 0 deletions test/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
'use strict';

const config = require('eslint-config-hexo/test');

module.exports = config;
Loading