Skip to content

Commit

Permalink
chore: fix site
Browse files Browse the repository at this point in the history
  • Loading branch information
ota-meshi committed Dec 12, 2023
1 parent c22b21c commit 3859204
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
"css.validate": false,
"typescript.tsdk": "node_modules/typescript/lib",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true,
"source.fixAll.stylelint": true
"source.fixAll.eslint": "explicit",
"source.fixAll.stylelint": "explicit"
},
"editor.codeActionsOnSaveTimeout": 7500,
"stylelint.validate": [
Expand Down
4 changes: 4 additions & 0 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ module.exports = {
__dirname,
"../../node_modules/@eslint/eslintrc/dist/eslintrc-universal.cjs",
),
"eslint/use-at-your-own-risk": path.resolve(
"./shim/eslint/use-at-your-own-risk.js",
),
eslint$: require.resolve("./shim/eslint"),
"eslint-visitor-keys": require.resolve("./shim/eslint-visitor-keys"),
// eslint-disable-next-line n/no-extraneous-require -- demo
stylus: require.resolve("stylus/lib/stylus"),
glob: require.resolve("./shim/glob"),
Expand Down
8 changes: 8 additions & 0 deletions docs/.vuepress/shim/eslint-visitor-keys.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/* eslint n/no-unsupported-features/es-syntax:0 -- ignore */
import {
getKeys,
KEYS,
unionWith,
} from "../../../node_modules/eslint-visitor-keys/lib/index.js";
export { getKeys, KEYS, unionWith };
export default { getKeys, KEYS, unionWith };
3 changes: 3 additions & 0 deletions docs/.vuepress/shim/eslint/use-at-your-own-risk.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/* eslint n/no-unsupported-features/es-syntax:0 -- ignore */
export const builtinRules = new Map();
export default { builtinRules };
1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
"vuepress": "^1.8.2"
},
"dependencies": {
"@eslint-community/eslint-utils": "^4.4.0",
"eslint-utils": "^3.0.0",
"lodash": "^4.17.21",
"postcss": "^8.4.31",
Expand Down

0 comments on commit 3859204

Please sign in to comment.