Skip to content

Commit

Permalink
fix: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
RebeccaStevens committed Mar 31, 2024
1 parent 011f596 commit 334dd77
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 45 deletions.
4 changes: 2 additions & 2 deletions knip.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@
"eslint-plugin-eslint-comments",
"eslint-plugin-format",
"eslint-plugin-functional",
"eslint-plugin-import",
"eslint-plugin-import-x",
"eslint-plugin-jsdoc",
"eslint-plugin-jsonc",
"eslint-plugin-markdown",
"eslint-plugin-n",
"eslint-plugin-no-only-tests",
"eslint-plugin-optimize-regex",
"eslint-plugin-perfectionist",
"eslint-plugin-prettier",
"eslint-plugin-promise",
"eslint-plugin-regexp",
"eslint-plugin-sonarjs",
"eslint-plugin-toml",
"eslint-plugin-unicorn",
Expand Down
5 changes: 0 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@
"eslint-plugin-n": "16.6.2",
"eslint-plugin-no-only-tests": "3.1.0",
"eslint-plugin-optimize-regex": "1.2.1",
"eslint-plugin-perfectionist": "2.7.0",
"eslint-plugin-prettier": "5.1.3",
"eslint-plugin-promise": "6.1.1",
"eslint-plugin-regexp": "2.4.0",
Expand Down Expand Up @@ -151,7 +150,6 @@
"eslint-plugin-n": "*",
"eslint-plugin-no-only-tests": "*",
"eslint-plugin-optimize-regex": "*",
"eslint-plugin-perfectionist": "*",
"eslint-plugin-prettier": "*",
"eslint-plugin-promise": "*",
"eslint-plugin-regexp": "*",
Expand Down Expand Up @@ -228,9 +226,6 @@
"eslint-plugin-optimize-regex": {
"optional": true
},
"eslint-plugin-perfectionist": {
"optional": true
},
"eslint-plugin-prettier": {
"optional": true
},
Expand Down
35 changes: 0 additions & 35 deletions pnpm-lock.yaml

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

2 changes: 1 addition & 1 deletion src/configs/stylistic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export async function stylistic(
pluginName: "style",
quotes,
semi,
} as StylisticCustomizeOptions<true>);
} as StylisticCustomizeOptions);

return [
{
Expand Down
2 changes: 1 addition & 1 deletion src/configs/vue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export async function vue(
jsx: true,
},
extraFileExtensions: [".vue"],
parser: typescript === true ? parserTs : null,
parser: typescript ? parserTs : null,
sourceType: "module",
},
},
Expand Down
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export async function interopDefault<T>(
}

export function toArray<T>(value: T | T[]): T[] {
return Array.isArray(value) ? (value as T[]) : [value as T];
return Array.isArray(value) ? value : [value];
}

export const parserPlain = {
Expand Down

0 comments on commit 334dd77

Please sign in to comment.