mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-17 18:22:33 +00:00
Update dependency eslint to v9 (#783)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Mimi <1119186082@qq.com>
This commit is contained in:
parent
5f522a1432
commit
4d69273d90
@ -1,4 +0,0 @@
|
|||||||
{
|
|
||||||
"extends": "@next-theme",
|
|
||||||
"root": true
|
|
||||||
}
|
|
||||||
3
eslint.config.js
Normal file
3
eslint.config.js
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
const config = require("@next-theme/eslint-config");
|
||||||
|
|
||||||
|
module.exports = config;
|
||||||
@ -32,10 +32,10 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://theme-next.js.org",
|
"homepage": "https://theme-next.js.org",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@next-theme/eslint-config": "0.0.3",
|
"@next-theme/eslint-config": "0.0.4",
|
||||||
"c8": "9.1.0",
|
"c8": "9.1.0",
|
||||||
"chai": "4.4.1",
|
"chai": "4.4.1",
|
||||||
"eslint": "8.55.0",
|
"eslint": "9.1.1",
|
||||||
"hexo": "7.1.1",
|
"hexo": "7.1.1",
|
||||||
"hexo-renderer-marked": "6.3.0",
|
"hexo-renderer-marked": "6.3.0",
|
||||||
"js-yaml": "4.1.0",
|
"js-yaml": "4.1.0",
|
||||||
|
|||||||
@ -5,7 +5,7 @@ const path = require('path');
|
|||||||
let css;
|
let css;
|
||||||
try {
|
try {
|
||||||
css = require('@adobe/css-tools');
|
css = require('@adobe/css-tools');
|
||||||
} catch (error) {
|
} catch {
|
||||||
css = require('css');
|
css = require('css');
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -13,7 +13,7 @@ function resolve(name, file = '') {
|
|||||||
let dir;
|
let dir;
|
||||||
try {
|
try {
|
||||||
dir = path.dirname(require.resolve(`${name}/package.json`));
|
dir = path.dirname(require.resolve(`${name}/package.json`));
|
||||||
} catch (error) {
|
} catch {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
return `${dir}/${file}`;
|
return `${dir}/${file}`;
|
||||||
|
|||||||
@ -9,7 +9,7 @@ const { getVendors } = require('./utils');
|
|||||||
let internal;
|
let internal;
|
||||||
try {
|
try {
|
||||||
internal = require('@next-theme/plugins');
|
internal = require('@next-theme/plugins');
|
||||||
} catch (error) {
|
} catch {
|
||||||
}
|
}
|
||||||
const vendorsFile = fs.readFileSync(path.join(__dirname, '../../../_vendors.yml'));
|
const vendorsFile = fs.readFileSync(path.join(__dirname, '../../../_vendors.yml'));
|
||||||
const dependencies = yaml.load(vendorsFile);
|
const dependencies = yaml.load(vendorsFile);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user