Skip to content

Commit 57a7bda

Browse files
committed
chore: prettier for eslint added
1 parent bf34bda commit 57a7bda

6 files changed

Lines changed: 934 additions & 930 deletions

File tree

.eslintrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"extends": [
66
"eslint:recommended",
77
"plugin:@typescript-eslint/eslint-recommended",
8-
"plugin:@typescript-eslint/recommended"
8+
"plugin:@typescript-eslint/recommended",
9+
"plugin:prettier/recommended"
910
]
1011
}

.prettierrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"semi": false,
3+
"tabWidth": 2,
4+
"printWidth": 100,
5+
"singleQuote": true,
6+
"trailingComma": "none"
7+
}

package-lock.json

Lines changed: 36 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,14 @@
3535
"scripts": {
3636
"vscode:prepublish": "npm run compile -- --minify",
3737
"compile": "esbuild ./src/extension.ts --bundle --outdir=out --external:vscode --format=cjs --platform=node",
38+
"watch": "npm run dev -- --sourcemap --watch",
3839
"dev": "npm run compile -- --sourcemap",
39-
"lint": "eslint . --ext .ts",
40-
"watch": "npm run dev -- --sourcemap --watch"
40+
"lint": "eslint --fix src/**.ts",
41+
"format": "prettier --write \"src/**.ts\"",
42+
"prepublishOnly": "npm run lint",
43+
"preversion": "npm run lint",
44+
"version": "npm run format && git add -A src",
45+
"postversion": "git push && git push --tags"
4146
},
4247
"contributes": {
4348
"configuration": {
@@ -59,6 +64,9 @@
5964
"@typescript-eslint/parser": "^4.32.0",
6065
"esbuild": "^0.13.2",
6166
"eslint": "^7.32.0",
67+
"eslint-config-prettier": "^8.3.0",
68+
"eslint-plugin-prettier": "^4.0.0",
69+
"prettier": "^2.4.1",
6270
"typescript": "4.4.3"
6371
}
6472
}

0 commit comments

Comments
 (0)