mirror of
https://github.com/CesiumGS/obj2gltf.git
synced 2024-11-27 02:24:04 -05:00
Merge pull request #256 from CesiumGS/prettier
Switch to prettier for formatting
This commit is contained in:
commit
bd4b7320fa
@ -3,7 +3,7 @@ root = true
|
||||
|
||||
[*]
|
||||
indent_style = space
|
||||
indent_size = 4
|
||||
indent_size = 2
|
||||
charset = utf-8
|
||||
trim_trailing_whitespace = true
|
||||
insert_final_newline = true
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"extends": "cesium/node",
|
||||
"extends": ["cesium/node", "prettier"],
|
||||
"rules": {
|
||||
"no-unused-vars": ["error", {"args": "none"}]
|
||||
}
|
||||
|
3
.gitignore
vendored
3
.gitignore
vendored
@ -7,6 +7,9 @@ package-lock.json
|
||||
.idea/workspace.xml
|
||||
.idea/tasks.xml
|
||||
|
||||
# VSCode user-specific
|
||||
*.vscode
|
||||
|
||||
# Generate data
|
||||
.eslintcache
|
||||
coverage
|
||||
|
@ -1,3 +1,4 @@
|
||||
/.vscode
|
||||
/.idea
|
||||
/coverage
|
||||
/doc/*
|
||||
@ -10,6 +11,7 @@
|
||||
.gitattributes
|
||||
.nyc_output
|
||||
.npmignore
|
||||
.prettierignore
|
||||
.travis.yml
|
||||
gulpfile.js
|
||||
*.tgz
|
||||
|
12
.prettierignore
Normal file
12
.prettierignore
Normal file
@ -0,0 +1,12 @@
|
||||
|
||||
# Ignore everything
|
||||
*
|
||||
|
||||
# Unignore directories (to all depths) and unignore code and style files in these directories
|
||||
!bin/**/
|
||||
!doc/**/
|
||||
!lib/**/
|
||||
!specs/**/
|
||||
|
||||
!**/*.js
|
||||
!**/*.md
|
13
package.json
13
package.json
@ -37,14 +37,18 @@
|
||||
"devDependencies": {
|
||||
"cloc": "^2.8.0",
|
||||
"coveralls": "^3.1.1",
|
||||
"eslint": "^7.31.0",
|
||||
"eslint": "^7.32.0",
|
||||
"eslint-config-cesium": "^8.0.1",
|
||||
"eslint-config-prettier": "^8.3.0",
|
||||
"gulp": "^4.0.2",
|
||||
"husky": "^4.3.8",
|
||||
"jasmine": "^3.8.0",
|
||||
"jasmine-spec-reporter": "^7.0.0",
|
||||
"jsdoc": "^3.6.7",
|
||||
"nyc": "^15.1.0",
|
||||
"open": "^8.2.1"
|
||||
"open": "^8.2.1",
|
||||
"prettier": "2.3.2",
|
||||
"pretty-quick": "^3.1.1"
|
||||
},
|
||||
"scripts": {
|
||||
"jsdoc": "jsdoc ./lib -R ./README.md -d doc",
|
||||
@ -53,7 +57,10 @@
|
||||
"test-watch": "gulp test-watch",
|
||||
"coverage": "gulp coverage",
|
||||
"coveralls": "cat ./coverage/lcov.info | ./node_modules/.bin/coveralls",
|
||||
"cloc": "gulp cloc"
|
||||
"cloc": "gulp cloc",
|
||||
"prettier": "prettier --write \"**/*\"",
|
||||
"prettier-check": "prettier --check \"**/*\"",
|
||||
"pretty-quick": "pretty-quick"
|
||||
},
|
||||
"bin": {
|
||||
"obj2gltf": "./bin/obj2gltf.js"
|
||||
|
Loading…
Reference in New Issue
Block a user