Skip to content

Commit

Permalink
Add format script and vscode config
Browse files Browse the repository at this point in the history
  • Loading branch information
abelfodil committed Jul 16, 2020
1 parent 803335f commit 4410689
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .vscode/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Editor configuration, see https://editorconfig.org
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
max_line_length = off
trim_trailing_whitespace = false
5 changes: 5 additions & 0 deletions .vscode/.prettierrc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
trailingComma: 'all'
tabWidth: 4
semi: true
singleQuote: true
printWidth: 150
11 changes: 11 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"recommendations": [
"christian-kohler.path-intellisense",
"ms-python.python",
"2gua.rainbow-brackets",
"esbenp.prettier-vscode",
"eamodio.gitlens",
"editorconfig.editorconfig",
"dbaeumer.vscode-eslint"
]
}
17 changes: 17 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"prettier.configPath": ".vscode/.prettierrc.yaml",
"editor.defaultFormatter": "esbenp.prettier-vscode",
"eslint.packageManager": "yarn",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}
1 change: 1 addition & 0 deletions polydodo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"build": "react-scripts build && gulp licenses",
"test": "react-scripts test",
"eject": "react-scripts eject",
"format": "yarn prettier --config ../.vscode/.prettierrc.yaml --write \"./**/*.{js,jsx,css,scss,json}\"",
"install:clean": "rm -rf node_modules/ && rm -rf package-lock.json && npm install && npm start",
"compile-sass": "node-sass src/assets/scss/argon-design-system-react.scss src/assets/css/argon-design-system-react.css",
"minify-sass": "node-sass src/assets/scss/argon-design-system-react.scss src/assets/css/argon-design-system-react.min.css --output-style compressed",
Expand Down

0 comments on commit 4410689

Please sign in to comment.