-
-
Notifications
You must be signed in to change notification settings - Fork 546
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added linting and formatting of icon and category json files
- Loading branch information
Showing
4 changed files
with
157 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,12 +29,17 @@ | |
"generate:contributors": "node ./scripts/updateContributors.mjs icons/*.svg", | ||
"generate:nextJSAliases": "node ./scripts/generateNextJSAliases.mjs", | ||
"postinstall": "husky install", | ||
"lint": "eslint --ext .ts,.js,.mjs ./{packages/lucide,scripts}", | ||
"lint:js": "eslint --ext .ts,.js,.mjs ./{packages/lucide,scripts}", | ||
"lint:json:icons": "ajv --spec=draft2020 -s icon.schema.json -d 'icons/*.json' > /dev/null", | ||
"lint:json:categories": "ajv --spec=draft2020 -s category.schema.json -d 'categories/*.json' > /dev/null", | ||
"lint:json": "pnpm run lint:json:icons && pnpm run lint:json:categories", | ||
"lint": "pnpm lint:js lint:json", | ||
"prepare": "husky install", | ||
"gi": "node ./scripts/generate/generateIcons.mjs" | ||
}, | ||
"devDependencies": { | ||
"@octokit/rest": "^19.0.13", | ||
"ajv-cli": "^5.0.0", | ||
"eslint": "^8.43.0", | ||
"eslint-config-airbnb-base": "^15.0.0", | ||
"eslint-config-prettier": "^8.8.0", | ||
|
@@ -52,9 +57,17 @@ | |
"svgson": "^5.2.1" | ||
}, | ||
"lint-staged": { | ||
"icons/*.svg":[ | ||
"icons/*.svg": [ | ||
"node ./scripts/optimizeStagedSvgs.mjs", | ||
"node ./scripts/generateNextJSAliases.mjs" | ||
], | ||
"icons/*.json": [ | ||
"ajv --spec=draft2020 -s icon.schema.json -d", | ||
"prettier --write --print-width=0" | ||
], | ||
"categories/*.json": [ | ||
"ajv --spec=draft2020 -s category.schema.json -d", | ||
"prettier --write --print-width=0" | ||
] | ||
}, | ||
"packageManager": "[email protected]", | ||
|
Oops, something went wrong.