Skip to content

Commit 80b6408

Browse files
committed
add prettier
1 parent 70970cc commit 80b6408

5 files changed

Lines changed: 113 additions & 49 deletions

File tree

.eslintrc.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
],
1111
"rules": {
1212
"@typescript-eslint/naming-convention": "warn",
13-
"@typescript-eslint/semi": "warn",
1413
"curly": "warn",
1514
"eqeqeq": "warn",
1615
"no-throw-literal": "warn",
@@ -20,5 +19,8 @@
2019
"out",
2120
"dist",
2221
"**/*.d.ts"
22+
],
23+
"extends": [
24+
"prettier"
2325
]
2426
}

.prettierignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
out/
2+
dist/
3+
.vscode*
4+
node_modules/
5+
package-lock.json

.prettierrc.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"tabWidth": 4,
3+
"useTabs": false,
4+
"semi": true,
5+
"singleQuote": false,
6+
"quoteProps": "consistent",
7+
"jsxSingleQuote": true,
8+
"trailingComma": "es5",
9+
"bracketSpacing": false,
10+
"bracketSameLine": false,
11+
"arrowParens": "always"
12+
}

package-lock.json

Lines changed: 42 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: 51 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,54 @@
11
{
22
"name": "databricks",
3-
"displayName": "databricks",
4-
"description": "IDE support for Databricks",
5-
"version": "0.0.1",
6-
"engines": {
7-
"vscode": "^1.68.0"
8-
},
9-
"categories": [
10-
"Other"
11-
],
12-
"activationEvents": [
13-
"onCommand:databricks.helloWorld"
14-
],
15-
"main": "./dist/extension.js",
16-
"contributes": {
17-
"commands": [
18-
{
19-
"command": "databricks.helloWorld",
20-
"title": "Hello World"
21-
}
22-
]
23-
},
24-
"scripts": {
25-
"vscode:prepublish": "npm run package",
26-
"compile": "webpack",
27-
"watch": "webpack --watch",
28-
"package": "webpack --mode production --devtool hidden-source-map",
29-
"compile-tests": "tsc -p . --outDir out",
30-
"watch-tests": "tsc -p . -w --outDir out",
31-
"pretest": "npm run compile-tests && npm run compile && npm run lint",
32-
"lint": "eslint src --ext ts",
33-
"test": "node ./out/test/runTest.js"
34-
},
35-
"devDependencies": {
36-
"@types/vscode": "^1.68.0",
37-
"@types/glob": "^7.2.0",
38-
"@types/mocha": "^9.1.1",
39-
"@types/node": "16.x",
40-
"@typescript-eslint/eslint-plugin": "^5.27.0",
41-
"@typescript-eslint/parser": "^5.27.0",
42-
"eslint": "^8.16.0",
43-
"glob": "^8.0.3",
44-
"mocha": "^10.0.0",
45-
"typescript": "^4.7.2",
46-
"ts-loader": "^9.3.0",
47-
"webpack": "^5.72.1",
48-
"webpack-cli": "^4.9.2",
49-
"@vscode/test-electron": "^2.1.3"
50-
}
3+
"displayName": "databricks",
4+
"description": "IDE support for Databricks",
5+
"version": "0.0.1",
6+
"engines": {
7+
"vscode": "^1.68.0"
8+
},
9+
"categories": [
10+
"Other"
11+
],
12+
"activationEvents": [
13+
"onCommand:databricks.helloWorld"
14+
],
15+
"main": "./dist/extension.js",
16+
"contributes": {
17+
"commands": [
18+
{
19+
"command": "databricks.helloWorld",
20+
"title": "Hello World"
21+
}
22+
]
23+
},
24+
"scripts": {
25+
"vscode:prepublish": "npm run package",
26+
"compile": "webpack",
27+
"watch": "webpack --watch",
28+
"package": "webpack --mode production --devtool hidden-source-map",
29+
"compile-tests": "tsc -p . --outDir out",
30+
"watch-tests": "tsc -p . -w --outDir out",
31+
"pretest": "npm run compile-tests && npm run compile && npm run lint",
32+
"fix": "prettier . --write",
33+
"lint": "eslint src --ext ts && prettier . -c",
34+
"test": "node ./out/test/runTest.js"
35+
},
36+
"devDependencies": {
37+
"@types/glob": "^7.2.0",
38+
"@types/mocha": "^9.1.1",
39+
"@types/node": "16.x",
40+
"@types/vscode": "^1.68.0",
41+
"@typescript-eslint/eslint-plugin": "^5.27.0",
42+
"@typescript-eslint/parser": "^5.27.0",
43+
"@vscode/test-electron": "^2.1.3",
44+
"eslint": "^8.16.0",
45+
"eslint-config-prettier": "^8.5.0",
46+
"glob": "^8.0.3",
47+
"mocha": "^10.0.0",
48+
"prettier": "^2.7.1",
49+
"ts-loader": "^9.3.0",
50+
"typescript": "^4.7.2",
51+
"webpack": "^5.72.1",
52+
"webpack-cli": "^4.9.2"
53+
}
5154
}

0 commit comments

Comments
 (0)