mirror of
https://github.com/Mibew/simple-icons.git
synced 2024-11-16 02:14:12 +03:00
e0df400494
* Add prettier as a dependency * Add format command and configure prettier I opted for single quotes to be in line with other simple-icons projects I ignore the data file because changing its formatting is quite a bit of trouble for all open PRs. * Run prettier * Replace all functions by arrow functions * Move prettier configuration to config file Move it to a file so editors (and other software) can pick up on the configuration. I went with .js because (a) it allows for comments and (2) it seems most of the config files are in JavaScript already. * Add prettier --check when running npm run lint (This adds it to the CI as well) * Add husky and format changes before committing * Use object destructuring for imports consistently * Add shebang and fileoverview to jsonlint.js
61 lines
1.7 KiB
JSON
61 lines
1.7 KiB
JSON
{
|
|
"name": "simple-icons",
|
|
"version": "5.20.0",
|
|
"description": "SVG icons for popular brands https://simpleicons.org",
|
|
"homepage": "https://simpleicons.org",
|
|
"keywords": [
|
|
"svg",
|
|
"icons"
|
|
],
|
|
"main": "index.js",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+ssh://git@github.com/simple-icons/simple-icons.git"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/simple-icons/simple-icons/issues"
|
|
},
|
|
"author": "Simple Icons Collaborators",
|
|
"license": "CC0-1.0",
|
|
"devDependencies": {
|
|
"editorconfig-checker": "4.0.2",
|
|
"husky": "7.0.2",
|
|
"is-ci": "3.0.0",
|
|
"jest": "27.2.5",
|
|
"jest-diff": "27.2.5",
|
|
"jsonschema": "1.4.0",
|
|
"named-html-entities-json": "0.1.0",
|
|
"npm-run-all": "4.1.5",
|
|
"prettier": "2.4.1",
|
|
"rimraf": "3.0.2",
|
|
"svg-path-bbox": "1.0.1",
|
|
"svg-path-segments": "1.0.0",
|
|
"svglint": "1.0.9",
|
|
"svgo": "2.7.0",
|
|
"svgpath": "2.3.1",
|
|
"uglify-js": "3.14.2"
|
|
},
|
|
"scripts": {
|
|
"build": "node scripts/build/package.js",
|
|
"clean": "rimraf icons/*.js index.js",
|
|
"format": "prettier --write .",
|
|
"lint": "run-s our-lint jslint jsonlint svglint wslint",
|
|
"our-lint": "node scripts/lint/ourlint.js",
|
|
"jslint": "prettier --check .",
|
|
"jsonlint": "node scripts/lint/jsonlint.js",
|
|
"svglint": "svglint icons/*.svg --ci",
|
|
"wslint": "editorconfig-checker -exclude \\.svg$",
|
|
"postinstall": "is-ci || husky install",
|
|
"prepublishOnly": "npm run build",
|
|
"postpublish": "npm run clean",
|
|
"test": "jest",
|
|
"pretest": "npm run prepublishOnly",
|
|
"posttest": "npm run postpublish",
|
|
"svgo": "svgo --config svgo.config.js",
|
|
"get-filename": "node scripts/get-filename.js"
|
|
},
|
|
"engines": {
|
|
"node": ">=0.12.18"
|
|
}
|
|
}
|