Update prettier for 4 space tab

This commit is contained in:
jeffvli 2023-07-01 19:06:57 -07:00
parent cb7bf438e9
commit 22af76b4d6
3 changed files with 21 additions and 19 deletions

View file

@ -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
} }

View file

@ -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

View file

@ -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",