Skip to content

Commit

Permalink
chore: fix site (#304)
Browse files Browse the repository at this point in the history
  • Loading branch information
ota-meshi committed Mar 23, 2024
1 parent 0495670 commit f65a640
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 8 deletions.
8 changes: 4 additions & 4 deletions docs/.vuepress/components/playground-block.vue
Original file line number Diff line number Diff line change
Expand Up @@ -218,13 +218,13 @@ export default {
};
function equalsRules(a, b) {
const akeys = Object.keys(a).filter((k) => a[k] !== "off");
const bkeys = Object.keys(b).filter((k) => b[k] !== "off");
if (akeys.length !== bkeys.length) {
const aKeys = Object.keys(a).filter((k) => a[k] !== "off");
const bKeys = Object.keys(b).filter((k) => b[k] !== "off");
if (aKeys.length !== bKeys.length) {
return false;
}
for (const k of akeys) {
for (const k of aKeys) {
if (a[k] !== b[k]) {
return false;
}
Expand Down
8 changes: 6 additions & 2 deletions docs/.vuepress/components/stylelint.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
module.exports = {
extends: ["stylelint-config-standard", "stylelint-config-recommended-vue"],
extends: [
"stylelint-config-standard",
"stylelint-config-recommended-vue",
"@stylistic/stylelint-config",
],
rules: {
"no-descending-specificity": null,
indentation: null,
"@stylistic/indentation": null,
},
};
4 changes: 4 additions & 0 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ const schema = require("../../lib/utils/schema");
schema.loadJson("https://www.schemastore.org/api/json/catalog.json", {});
schema.loadSchema("https://json.schemastore.org/eslintrc.json", {});
schema.loadSchema("https://json.schemastore.org/prettierrc.json", {});
schema.loadSchema(
"https://json.schemastore.org/partial-eslint-plugins.json",
{},
);

function ruleToLink({
meta: {
Expand Down
6 changes: 5 additions & 1 deletion docs/.vuepress/styles/stylelint.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
module.exports = {
extends: ["stylelint-config-standard", "stylelint-stylus/standard"],
extends: [
"stylelint-config-standard",
"stylelint-stylus/standard",
"@stylistic/stylelint-config",
],
rules: {
"no-descending-specificity": null,
"selector-class-pattern": null,
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.24.2",
"@ota-meshi/eslint-plugin": "^0.15.0",
"@stylistic/stylelint-config": "^1.0.1",
"@types/debug": "^4.1.5",
"@types/eslint": "^8.56.2",
"@types/eslint-scope": "^3.7.0",
Expand Down
1 change: 0 additions & 1 deletion src/utils/validator-factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import type {
ValidateFunction,
RegExpEngine,
} from "./ajv";
import { URL } from "url";
import type { RuleContext } from "../types";
import Ajv from "./ajv";
import { draft7 as migrateToDraft7 } from "json-schema-migrate";
Expand Down

0 comments on commit f65a640

Please sign in to comment.