Update prettier for 4 space tab
This commit is contained in:
parent
cb7bf438e9
commit
22af76b4d6
3 changed files with 21 additions and 19 deletions
38
.prettierrc
38
.prettierrc
|
@ -1,20 +1,22 @@
|
||||||
{
|
{
|
||||||
"printWidth": 100,
|
"printWidth": 100,
|
||||||
"semi": true,
|
"semi": true,
|
||||||
"singleQuote": true,
|
"singleQuote": true,
|
||||||
"overrides": [
|
"tabWidth": 4,
|
||||||
{
|
"useTabs": false,
|
||||||
"files": ["**/*.css", "**/*.scss", "**/*.html"],
|
"overrides": [
|
||||||
"options": {
|
{
|
||||||
"singleQuote": false
|
"files": ["**/*.css", "**/*.scss", "**/*.html"],
|
||||||
}
|
"options": {
|
||||||
}
|
"singleQuote": false
|
||||||
],
|
}
|
||||||
"trailingComma": "all",
|
}
|
||||||
"bracketSpacing": true,
|
],
|
||||||
"arrowParens": "always",
|
"trailingComma": "all",
|
||||||
"proseWrap": "never",
|
"bracketSpacing": true,
|
||||||
"htmlWhitespaceSensitivity": "strict",
|
"arrowParens": "always",
|
||||||
"endOfLine": "lf",
|
"proseWrap": "never",
|
||||||
"singleAttributePerLine": true
|
"htmlWhitespaceSensitivity": "strict",
|
||||||
|
"endOfLine": "lf",
|
||||||
|
"singleAttributePerLine": true
|
||||||
}
|
}
|
||||||
|
|
1
.vscode/settings.json
vendored
1
.vscode/settings.json
vendored
|
@ -10,7 +10,6 @@
|
||||||
{ "directory": "./server", "changeProcessCWD": true }
|
{ "directory": "./server", "changeProcessCWD": true }
|
||||||
],
|
],
|
||||||
"typescript.tsserver.experimental.enableProjectDiagnostics": true,
|
"typescript.tsserver.experimental.enableProjectDiagnostics": true,
|
||||||
"editor.tabSize": 2,
|
|
||||||
"editor.codeActionsOnSave": {
|
"editor.codeActionsOnSave": {
|
||||||
"source.fixAll.eslint": true,
|
"source.fixAll.eslint": true,
|
||||||
"source.fixAll.stylelint": false
|
"source.fixAll.stylelint": false
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
"build:renderer": "cross-env NODE_ENV=production TS_NODE_TRANSPILE_ONLY=true webpack --config ./.erb/configs/webpack.config.renderer.prod.ts",
|
"build:renderer": "cross-env NODE_ENV=production TS_NODE_TRANSPILE_ONLY=true webpack --config ./.erb/configs/webpack.config.renderer.prod.ts",
|
||||||
"rebuild": "electron-rebuild --parallel --types prod,dev,optional --module-dir release/app",
|
"rebuild": "electron-rebuild --parallel --types prod,dev,optional --module-dir release/app",
|
||||||
"lint": "cross-env NODE_ENV=development eslint . --ext .js,.jsx,.ts,.tsx",
|
"lint": "cross-env NODE_ENV=development eslint . --ext .js,.jsx,.ts,.tsx",
|
||||||
|
"lint:fix": "cross-env NODE_ENV=development eslint . --ext .js,.jsx,.ts,.tsx --fix",
|
||||||
"lint:styles": "npx stylelint **/*.tsx",
|
"lint:styles": "npx stylelint **/*.tsx",
|
||||||
"package": "ts-node ./.erb/scripts/clean.js dist && npm run build && electron-builder build --publish never",
|
"package": "ts-node ./.erb/scripts/clean.js dist && npm run build && electron-builder build --publish never",
|
||||||
"package:pr": "ts-node ./.erb/scripts/clean.js dist && npm run build && electron-builder build --publish never --win --mac --linux",
|
"package:pr": "ts-node ./.erb/scripts/clean.js dist && npm run build && electron-builder build --publish never --win --mac --linux",
|
||||||
|
|
Reference in a new issue