mirror of
https://github.com/simple-icons/simple-icons.git
synced 2025-01-05 01:20:39 +02:00
Lint SVG files for final newlines (#1367)
* Update editorconfig-checker dependency At least v2.0.7 [1] is required to check that a file does not contain a final newline. -- 1. https://github.com/editorconfig-checker/editorconfig-checker.javascript/releases/tag/2.0.7 * Add *.svg to editorconfig and enable checking in editorconfig-checker * Remove final newline from existing SVG files ... to fix the `$ npm run wslint` command
This commit is contained in:
parent
27ee19106d
commit
0a0586a04e
@ -12,6 +12,9 @@ indent_style=space
|
||||
indent_size=2
|
||||
indent_style=space
|
||||
|
||||
[*.svg]
|
||||
insert_final_newline=false
|
||||
|
||||
[.github/**/*.md]
|
||||
trim_trailing_whitespace=false # Templates with trailing whitespace are more usable
|
||||
|
||||
|
6
package-lock.json
generated
6
package-lock.json
generated
@ -1194,9 +1194,9 @@
|
||||
}
|
||||
},
|
||||
"editorconfig-checker": {
|
||||
"version": "2.0.6",
|
||||
"resolved": "https://registry.npmjs.org/editorconfig-checker/-/editorconfig-checker-2.0.6.tgz",
|
||||
"integrity": "sha512-/p3egFALNsTSt0YM7gOAGxhIVTX/GHUwwlPKixykpyMbBh5+Hebg0OaxVu3UdPoGttHM2ajPFJfqSIxUL+ytbg==",
|
||||
"version": "2.0.8",
|
||||
"resolved": "https://registry.npmjs.org/editorconfig-checker/-/editorconfig-checker-2.0.8.tgz",
|
||||
"integrity": "sha512-3uj37kvyI9WeiprooUsNg+UkmymqgpIpN4ExYajT+Lhe4z16Q82xYXSPNbD1bFN+hkj+2cZkghsiHlPGRXgA4g==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"request": "^2.88.0",
|
||||
|
@ -18,7 +18,7 @@
|
||||
"author": "Simple Icons Collaborators",
|
||||
"license": "CC0-1.0",
|
||||
"devDependencies": {
|
||||
"editorconfig-checker": "^2.0.6",
|
||||
"editorconfig-checker": "^2.0.8",
|
||||
"jest": "^24.1.0",
|
||||
"jsonlint2": "^1.7.1",
|
||||
"svglint": "^1.0.4"
|
||||
@ -26,7 +26,7 @@
|
||||
"scripts": {
|
||||
"jsonlint": "jsonlint _data/simple-icons.json -q -V .jsonlintschema",
|
||||
"svglint": "svglint icons/* --ci",
|
||||
"wslint": "editorconfig-checker",
|
||||
"wslint": "editorconfig-checker --ignore",
|
||||
"prepublishOnly": "node scripts/prepublish.js",
|
||||
"postpublish": "rm icons/*.js index.js",
|
||||
"test": "jest",
|
||||
|
Loading…
Reference in New Issue
Block a user