mirror of
https://github.com/lucide-icons/lucide.git
synced 2025-12-28 18:37:22 +01:00
feat: added linting and formatting of icon and category json files (#1632)
This commit is contained in:
17
package.json
17
package.json
@@ -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": "pnpm@8.7.1",
|
||||
|
||||
Reference in New Issue
Block a user