mirror of
https://github.com/FoggedLens/id-tagging-schema.git
synced 2026-02-12 16:52:45 +00:00
tweak code formatting rules
* output as "json-stringify" (which is most similar to most files currently in the repository) * add .editorconfig * drop (now) superfluous pretter settings * add npm commands to check code style
This commit is contained in:
12
.editorconfig
Normal file
12
.editorconfig
Normal file
@@ -0,0 +1,12 @@
|
||||
root = true
|
||||
|
||||
[*]
|
||||
charset = utf-8
|
||||
end_of_line = lf
|
||||
insert_final_newline = true
|
||||
trim_trailing_whitespace = true
|
||||
indent_style = space
|
||||
indent_size = 4
|
||||
|
||||
[{data/deprecated.json,data/discarded.json,package.json,.package-lock.json}]
|
||||
indent_size = 2
|
||||
6
.prettierignore
Normal file
6
.prettierignore
Normal file
@@ -0,0 +1,6 @@
|
||||
package.json
|
||||
package-lock.json
|
||||
dist/
|
||||
*.yaml
|
||||
data/discarded.json
|
||||
data/deprecated.json
|
||||
@@ -1,8 +1,5 @@
|
||||
{
|
||||
"tabWidth": 4,
|
||||
"useTabs": false,
|
||||
"semi": false,
|
||||
"printWidth": 80,
|
||||
"parser": "json-stringify",
|
||||
"proseWrap": "never",
|
||||
"bracketSpacing": true,
|
||||
"endOfLine": "lf"
|
||||
|
||||
@@ -11,12 +11,15 @@
|
||||
"license": "ISC",
|
||||
"main": "build.js",
|
||||
"scripts": {
|
||||
"lint": "prettier --check data",
|
||||
"lint:fix": "prettier --write data",
|
||||
"build": "node scripts/build.js",
|
||||
"dist": "node scripts/dist.js",
|
||||
"test": "node scripts/test.js",
|
||||
"translations": "node scripts/translations.js"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@ideditor/schema-builder": "~4.0.5"
|
||||
"@ideditor/schema-builder": "~4.0.5",
|
||||
"prettier": "~2.5.1"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user