Skip to content

Commit dc1169f

Browse files
committed
chore: fix site builder
1 parent 06e8ea4 commit dc1169f

File tree

6 files changed

+135
-187
lines changed

6 files changed

+135
-187
lines changed

docs/.vitepress/config.mts

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ import { viteCommonjs } from "./vite-plugin.mjs";
77

88
import "./build-system/build.mts";
99

10-
type RuleModule = {meta:{docs:{ruleId:string,ruleName:string},deprecated?:boolean}};
10+
type RuleModule = {
11+
meta: { docs: { ruleId: string; ruleName: string }; deprecated?: boolean };
12+
};
1113

1214
const dirname = path.dirname(fileURLToPath(import.meta.url));
1315

@@ -41,10 +43,13 @@ export default async (): Promise<UserConfig<DefaultTheme.Config>> => {
4143
"./build-system/shim/vue-eslint-parser.mjs",
4244
),
4345
module: path.join(dirname, "./shim/module.mjs"),
44-
'safer-buffer': path.join(dirname, "./shim/module.mjs"),
45-
'sax': path.join(dirname, "./shim/sax.mjs"),
46+
"safer-buffer": path.join(dirname, "./shim/module.mjs"),
47+
sax: path.join(dirname, "./shim/sax.mjs"),
4648
events: path.join(dirname, "./build-system/shim/events.mjs"),
47-
stylus: path.join(dirname, "../../node_modules/stylus/lib/browserify.js"),
49+
stylus: path.join(
50+
dirname,
51+
"../../node_modules/stylus/lib/browserify.js",
52+
),
4853
},
4954
},
5055
define: {
@@ -89,10 +94,7 @@ export default async (): Promise<UserConfig<DefaultTheme.Config>> => {
8994
text: "Vue Scoped CSS Rules",
9095
collapsed: false,
9196
items: rules
92-
.filter(
93-
(rule) =>
94-
!rule.meta.deprecated,
95-
)
97+
.filter((rule) => !rule.meta.deprecated)
9698
.map(ruleToSidebarItem),
9799
},
98100

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@ See [Available Rules](./rules/index.md).
3737

3838
## License
3939

40-
See the [LICENSE](LICENSE) file for license rights and limitations (MIT).
40+
See the [LICENSE](https://github.com/future-architect/eslint-plugin-vue-scoped-css/blob/master/LICENSE) file for license rights and limitations (MIT).
4141

4242
[Scoped CSS in Vue.js]: https://vue-loader.vuejs.org/guide/scoped-css.html

docs/user-guide/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ This plugin provides some predefined configs:
7676

7777
<!--USAGE_GUIDE_END-->
7878

79-
See [the rule list](../rules/README.md) to get the `rules` that this plugin provides.
79+
See [the rule list](../rules/index.md) to get the `rules` that this plugin provides.
8080

8181
### Running ESLint from command line
8282

0 commit comments

Comments
 (0)