Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to use Node16 resolution #2226

Merged
merged 2 commits into from
Aug 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"description": "An opinionated code sorter",
"devDependencies": {
"@release-it/keep-a-changelog": "3.1.0",
"@snowcoders/renovate-config": "3.0.0-beta.13",
"@snowcoders/renovate-config": "3.0.0-beta.14",
"@types/node": "18.17.3",
"@typescript-eslint/eslint-plugin": "5.62.0",
"@typescript-eslint/parser": "5.62.0",
Expand Down
2 changes: 1 addition & 1 deletion src-playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
},
"description": "Browser compatible sortier functionality",
"devDependencies": {
"@snowcoders/renovate-config": "3.0.0-beta.13",
"@snowcoders/renovate-config": "3.0.0-beta.14",
"@types/node": "18.17.3",
"@types/react": "18.2.17",
"@types/react-dom": "18.2.7",
Expand Down
2 changes: 2 additions & 0 deletions src/language-css/reprinter/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { parse as lessParse } from "postcss-less";
// @ts-ignore the types are all messed up for this package
// - https://arethetypeswrong.github.io/?p=postcss-scss
import { parse as scssParse } from "postcss-scss";
import { SortierOptions as BaseSortierOptions } from "../../config/index.js";
import { ILanguage } from "../../language.js";
Expand Down
3 changes: 3 additions & 0 deletions src/lib/is-ignored/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ export function isIgnored(ignoreFileContents: string, relativeFilePath: string):
if (ignoreFileContents.length === 0) {
return false;
}
// @ts-expect-error: ignore seems to be badly typed
// - https://arethetypeswrong.github.io/?p=ignore%405.2.4
// - https://github.com/kaelzhang/node-ignore/issues/96
const ig = ignore();
ig.add(ignoreFileContents.split(/\r?\n/));
return ig.ignores(relativeFilePath);
Expand Down