Skip to content

Commit

Permalink
add configuration files
Browse files Browse the repository at this point in the history
  • Loading branch information
egekorkan committed Jan 23, 2024
1 parent 73e21a8 commit 964f005
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 1 deletion.
21 changes: 21 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# This file allows you to configure your editor using [EditorConfig](https://EditorConfig.org).
# Make sure to install the EditorConfig plugin if your editor doesn't come with built-in support.

# top-most EditorConfig file
root = true

[*]
indent_style = space # useTabs=false in prettier
indent_size = 2 # tabWidth in prettier
end_of_line = lf # endOfLine in prettier
charset = utf-8 # not configurable in prettier
trim_trailing_whitespace = false # not configurable in prettier
insert_final_newline = true # always true in prettier

[{/publication/**,/node_modules/**,index.html,validation/tm-json-schema-validation.json,context/td-context-1.1.jsonld,visualization/*.png,visualization/*.svg}]
indent_style = unset
indent_size = unset
end_of_line = unset
charset = unset
trim_trailing_whitespace = unset
insert_final_newline = unset
18 changes: 18 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Files added by default, repeating for transparency
**/.git
**/.svn
**/.hg
**/node_modules

# Publication-related files
publication
errata.html
errata11.html

# Automatically generated files
ontology/*.html
index.html
validation/tm-json-schema-validation.json
context/td-context-1.1.jsonld
visualization/*.png
visualization/*.svg
6 changes: 6 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"tabWidth": 2,
"useTabs": false,
"endOfLine": "lf",
"printWidth": 120
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"x-validation": "node validation/td-cross-validation.js",
"generateTmSchema": "node validation/tmSchemaGenerator.js",
"prepare": "husky install",
"tmTest": "node validation/test.js"
"tmTest": "node validation/test.js",
"format": "npx prettier . --write"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 964f005

Please sign in to comment.