Skip to content

Commit 454b1c6

Browse files
committed
feat: prettier
1 parent 4d092a2 commit 454b1c6

4 files changed

Lines changed: 53 additions & 1 deletion

File tree

.prettierignore

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Folders that should not be checked by Prettier
2+
.github/
3+
.pytest_cache/
4+
.vscode/
5+
api_cache/
6+
checks/
7+
dist/
8+
doc/
9+
examples/
10+
local_dev/
11+
node_modules/
12+
server/
13+
14+
# Exact files that should not be checked by Prettier
15+
.docker.test.env
16+
.flake8
17+
CHANGELOG.md

.prettierrc.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"printWidth": 80,
3+
"tabWidth": 2,
4+
"useTabs": false,
5+
"semi": true,
6+
"singleQuote": false,
7+
"quoteProps": "consistent",
8+
"jsxSingleQuote": false,
9+
"trailingComma": "all",
10+
"bracketSpacing": true,
11+
"bracketSameLine": false,
12+
"arrowParens": "always",
13+
"proseWrap": "always",
14+
"endOfLine": "lf",
15+
"embeddedLanguageFormatting": "auto"
16+
}

package-lock.json

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
"example:triple": "npm start -- --env example=triple",
1717
"example:viper": "npm start -- --env example=viper",
1818
"example:covis": "npm start -- --env example=covis",
19-
"lint": "eslint \"./vis/js/**/*.js?(x)\""
19+
"lint": "eslint \"./vis/js/**/*.js?(x)\"",
20+
"prettier:check": "prettier . --check",
21+
"prettier:fix": "prettier . --write"
2022
},
2123
"repository": {
2224
"type": "git",
@@ -88,6 +90,7 @@
8890
"imports-loader": "^5.0.0",
8991
"jsdom": "^26.1.0",
9092
"mini-css-extract-plugin": "^2.3.0",
93+
"prettier": "^3.5.3",
9194
"process": "^0.11.10",
9295
"redux-mock-store": "^1.5.5",
9396
"sass": "^1.89.0",

0 commit comments

Comments
 (0)