Skip to content

Commit a3510f9

Browse files
committed
update: return prettier configuration and update @exabyte-io/eslint-config
1 parent 2b47d83 commit a3510f9

File tree

3 files changed

+19
-10
lines changed

3 files changed

+19
-10
lines changed

.prettierrc

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"singleQuote": false,
3+
"printWidth": 100,
4+
"trailingComma": "all",
5+
"tabWidth": 4
6+
}
7+

package-lock.json

+6-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+6-4
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
44
"description": "COre DEfinitions in JS for Mat3ra.com (Exabyte.io)",
55
"scripts": {
66
"test": "nyc --reporter=text mocha --recursive --bail --require @babel/register/lib --require tests/setup.js tests",
7-
"lint": "eslint src tests",
8-
"lint:fix": "eslint --fix --cache src tests",
7+
"lint": "eslint src tests && prettier --write src tests",
8+
"lint:fix": "eslint --fix --cache src tests && prettier --write src tests",
99
"transpile": "babel --out-dir dist src",
1010
"postinstall": "npm run transpile",
11+
"prettier": "prettier --check src tests",
1112
"prepare": "husky install"
1213
},
1314
"repository": {
@@ -58,7 +59,7 @@
5859
"uuid": "8.3.2"
5960
},
6061
"devDependencies": {
61-
"@exabyte-io/eslint-config": "^2022.11.16-0",
62+
"@exabyte-io/eslint-config": "^2022.11.17-0",
6263
"chai": "^4.3.4",
6364
"eslint": "7.32.0",
6465
"eslint-config-airbnb": "19.0.2",
@@ -79,6 +80,7 @@
7980
"node": ">=12.0.0"
8081
},
8182
"lint-staged": {
82-
"*.js": "eslint --cache --fix"
83+
"*.js": "eslint --cache --fix",
84+
"*.{js,css}": "prettier --write"
8385
}
8486
}

0 commit comments

Comments
 (0)