Skip to content

Commit c434d65

Browse files
chore(deps): update dependency eslint-plugin-prettier to v5 (#293)
* chore(deps): update dependency eslint-plugin-prettier to v5 * format --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Yosuke Ota <otameshiyo23@gmail.com>
1 parent b1c94a7 commit c434d65

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+1222
-643
lines changed

docs/.vuepress/categories.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ module.exports = categoryIds.map((categoryId) => ({
5050
categoryId,
5151
title: categoryTitles[categoryId],
5252
rules: (categoryRules[categoryId] || []).filter(
53-
(rule) => !rule.meta.deprecated
53+
(rule) => !rule.meta.deprecated,
5454
),
5555
}));
5656
// .filter(category => category.rules.length >= 1)

docs/.vuepress/components/components/EslintPluginEditor.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,14 +147,14 @@ export default {
147147
editor.$watch("codeEditor", () => {
148148
if (editor.codeEditor) {
149149
editor.codeEditor.onDidChangeModelDecorations(() =>
150-
this.onDidChangeModelDecorations(editor.codeEditor)
150+
this.onDidChangeModelDecorations(editor.codeEditor),
151151
);
152152
}
153153
});
154154
editor.$watch("fixedCodeEditor", () => {
155155
if (editor.fixedCodeEditor) {
156156
editor.fixedCodeEditor.onDidChangeModelDecorations(() =>
157-
this.onDidChangeModelDecorations(editor.fixedCodeEditor)
157+
this.onDidChangeModelDecorations(editor.fixedCodeEditor),
158158
);
159159
}
160160
});

docs/.vuepress/components/components/RulesSettings.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@
1414
<input
1515
:checked="
1616
categories.every((category) =>
17-
category.rules.every((rule) => isErrorState(rule.ruleId))
17+
category.rules.every((rule) => isErrorState(rule.ruleId)),
1818
)
1919
"
2020
type="checkbox"
2121
:indeterminate.prop="
2222
categories.some((category) =>
23-
category.rules.some((rule) => isErrorState(rule.ruleId))
23+
category.rules.some((rule) => isErrorState(rule.ruleId)),
2424
) &&
2525
categories.some((category) =>
26-
category.rules.some((rule) => !isErrorState(rule.ruleId))
26+
category.rules.some((rule) => !isErrorState(rule.ruleId)),
2727
)
2828
"
2929
@input="onAllClick($event)"
@@ -139,7 +139,7 @@ export default {
139139
close: true,
140140
},
141141
];
142-
})
142+
}),
143143
),
144144
filterValue: "",
145145
};
@@ -159,7 +159,7 @@ export default {
159159
let filteredRules = rules;
160160
if (this.filterValue) {
161161
filteredRules = filteredRules.filter((r) =>
162-
r.ruleId.includes(this.filterValue)
162+
r.ruleId.includes(this.filterValue),
163163
);
164164
}
165165
return filteredRules;

docs/.vuepress/components/rules/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ for (const k of Object.keys(coreRules)) {
9393
}
9494

9595
allRules.sort((a, b) =>
96-
a.ruleId > b.ruleId ? 1 : a.ruleId < b.ruleId ? -1 : 0
96+
a.ruleId > b.ruleId ? 1 : a.ruleId < b.ruleId ? -1 : 0,
9797
);
9898

9999
export const categories = [];
@@ -122,7 +122,7 @@ categories.sort((a, b) =>
122122
? 1
123123
: a.title < b.title
124124
? -1
125-
: 0
125+
: 0,
126126
);
127127

128128
export const DEFAULT_RULES_CONFIG = allRules.reduce((c, r) => {

docs/.vuepress/components/state/serialize.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export function serializeState(state) {
3535
`The compress rate of serialized string: ${(
3636
(100 * base64.length) /
3737
jsonString.length
38-
).toFixed(1)}% (${jsonString.length}B → ${base64.length}B)`
38+
).toFixed(1)}% (${jsonString.length}B → ${base64.length}B)`,
3939
);
4040

4141
return base64;

docs/.vuepress/config.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ module.exports = {
1818
alias: {
1919
esquery: path.resolve(
2020
__dirname,
21-
"../../node_modules/esquery/dist/esquery.min.js"
21+
"../../node_modules/esquery/dist/esquery.min.js",
2222
),
2323
"@eslint/eslintrc/universal": path.resolve(
2424
__dirname,
25-
"../../node_modules/@eslint/eslintrc/dist/eslintrc-universal.cjs"
25+
"../../node_modules/@eslint/eslintrc/dist/eslintrc-universal.cjs",
2626
),
2727
eslint$: require.resolve("./shim/eslint"),
2828
// eslint-disable-next-line node/no-extraneous-require -- demo
@@ -32,7 +32,7 @@ module.exports = {
3232
module: require.resolve("./shim/module"),
3333
postcss$: path.resolve(
3434
__dirname,
35-
"../../node_modules/postcss/lib/postcss.mjs"
35+
"../../node_modules/postcss/lib/postcss.mjs",
3636
),
3737
},
3838
},
@@ -80,7 +80,7 @@ module.exports = {
8080
meta: {
8181
docs: { ruleId, ruleName },
8282
},
83-
}) => [`/rules/${ruleName}`, ruleId]
83+
}) => [`/rules/${ruleName}`, ruleId],
8484
),
8585
}))
8686
.filter((menu) => Boolean(menu.children.length)),

lib/index.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,13 @@ const configs = {
88
all: require("./configs/all"),
99
};
1010

11-
const rules = ruleList.reduce((obj, r) => {
12-
obj[r.meta.docs?.ruleName || ""] = r;
13-
return obj;
14-
}, {} as { [key: string]: Rule });
11+
const rules = ruleList.reduce(
12+
(obj, r) => {
13+
obj[r.meta.docs?.ruleName || ""] = r;
14+
return obj;
15+
},
16+
{} as { [key: string]: Rule },
17+
);
1518

1619
export = {
1720
configs,

lib/options.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export interface ParsedQueryOptions {
1414
* Parse options
1515
*/
1616
export function parseQueryOptions(
17-
options: QueryOptions | undefined
17+
options: QueryOptions | undefined,
1818
): ParsedQueryOptions {
1919
const { ignoreBEMModifier, captureClassesFromDoc } = options || {};
2020

lib/rules/enforce-style-type.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export = {
7878
*/
7979
function removeAttr(
8080
fixer: RuleFixer,
81-
node: AST.VAttribute | AST.VDirective
81+
node: AST.VAttribute | AST.VDirective,
8282
) {
8383
const { attributes } = node.parent;
8484
const prevToken = tokenStore.getTokenBefore(node);
@@ -99,7 +99,7 @@ export = {
9999
*/
100100
function reportForbiddenStyle(node: AST.VElement, attribute: StyleTypes) {
101101
const forbiddenAttr = node.startTag.attributes.find(
102-
(attr) => attr.key.name === attribute
102+
(attr) => attr.key.name === attribute,
103103
);
104104
const forbiddenAttrName = forbiddenAttr!.key.name as string;
105105

@@ -172,8 +172,8 @@ export = {
172172
const forbiddenAttrs = node.startTag.attributes.filter(
173173
(attr) =>
174174
styleTypesAttrs.includes(
175-
attr.key.name as (typeof styleTypesAttrs)[number]
176-
) && !allows.includes(attr.key.name as StyleTypes)
175+
attr.key.name as (typeof styleTypesAttrs)[number],
176+
) && !allows.includes(attr.key.name as StyleTypes),
177177
);
178178

179179
reporter.report({
@@ -200,7 +200,7 @@ export = {
200200
},
201201
fix(fixer: RuleFixer) {
202202
return lodash.flatMap(forbiddenAttrs, (attr) =>
203-
removeAttr(fixer, attr)
203+
removeAttr(fixer, attr),
204204
);
205205
},
206206
},

lib/rules/no-deprecated-v-enter-v-leave-class.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export = {
6363
function report(
6464
node: VCSSSelectorNode | AST.VIdentifier | AST.VDirectiveKey,
6565
messageId: "deprecatedClass" | "deprecatedProps",
66-
kind: Kind
66+
kind: Kind,
6767
) {
6868
reporter.report({
6969
node,
@@ -206,7 +206,7 @@ export = {
206206
for (const transition of getElements(
207207
context,
208208
(element) =>
209-
isTransitionElement(element) || isTransitionGroupElement(element)
209+
isTransitionElement(element) || isTransitionGroupElement(element),
210210
)) {
211211
const { hasEnterClass, hasLeaveClass } =
212212
verifyTransitionElementNode(transition);

0 commit comments

Comments
 (0)