Skip to content

Commit

Permalink
added prettier config
Browse files Browse the repository at this point in the history
  • Loading branch information
rajpreet-s committed Jul 4, 2024
1 parent 2efac79 commit 8ec6fcb
Show file tree
Hide file tree
Showing 5 changed files with 88 additions and 97 deletions.
23 changes: 6 additions & 17 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,22 @@
"ecmaVersion": 6,
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"plugins": ["@typescript-eslint"],
"extends": ["plugin:prettier/recommended"],
"rules": {
"@typescript-eslint/naming-convention": [
"warn",
{
"selector": "import",
"format": [
"camelCase",
"PascalCase"
]
"format": ["camelCase", "PascalCase"]
}
],
"@typescript-eslint/semi": "warn",
"curly": "warn",
"eqeqeq": "warn",
"no-throw-literal": "warn",
"semi": "off",
"quotes": [
"error",
"single"
],
"quotes": ["error", "single"],
"no-multiple-empty-lines": [
"error",
{
Expand All @@ -41,9 +34,5 @@
}
]
},
"ignorePatterns": [
"out",
"dist",
"**/*.d.ts"
]
}
"ignorePatterns": ["out", "dist", "**/*.d.ts"]
}
3 changes: 3 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"tabWidth": 4
}
22 changes: 11 additions & 11 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
// See http://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": [
"dbaeumer.vscode-eslint",
"connor4312.esbuild-problem-matchers",
"ms-vscode.extension-test-runner",
"streetsidesoftware.code-spell-checker",
"editorconfig.editorconfig",
"esbenp.prettier-vscode",
]
}
// See http://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": [
"dbaeumer.vscode-eslint",
"connor4312.esbuild-problem-matchers",
"ms-vscode.extension-test-runner",
"streetsidesoftware.code-spell-checker",
"editorconfig.editorconfig",
"esbenp.prettier-vscode"
]
}
7 changes: 3 additions & 4 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
"typescriptreact"
],
"editor.formatOnSave": true,
"cSpell.words": [
"debricked"
]
}
"cSpell.words": ["debricked"],
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
130 changes: 65 additions & 65 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,66 +1,66 @@
{
"name": "vs-code-extension",
"displayName": "debricked",
"description": "A fast and flexible software composition analysis VS Code Extension and CLI tool, given to you by Debricked.",
"publisher": "debricked",
"version": "0.0.1",
"engines": {
"vscode": "^1.90.0"
},
"categories": [
"Other"
],
"activationEvents": [],
"main": "./dist/extension.js",
"contributes": {
"commands": [
{
"command": "debricked.debricked",
"title": "Debricked : A fast and flexible software composition analysis CLI tool, given to you by Debricked.",
"category": "debricked"
},
{
"command": "debricked.help",
"title": "Help about any command",
"category": "debricked"
}
]
},
"scripts": {
"vscode:prepublish": "npm run package",
"compile": "npm run check-types && npm run lint && node esbuild.js",
"watch": "npm-run-all -p watch:*",
"watch:esbuild": "node esbuild.js --watch",
"watch:tsc": "tsc --noEmit --watch --project tsconfig.json",
"package": "npm run check-types && npm run lint && node esbuild.js --production",
"compile-tests": "npm run clean && tsc -p . --outDir out",
"watch-tests": "tsc -p . -w --outDir out",
"pretest": "npm run compile-tests && npm run compile && npm run lint",
"check-types": "tsc --noEmit",
"lint": "eslint src --ext ts",
"lint:fix": "eslint --fix src --ext ts",
"test": "vscode-test --coverage",
"clean": "rimraf out && rimraf dist && rimraf coverage",
"clean-all": "rimraf out && rimraf dist && rimraf coverage && rimraf .vscode-test",
"postinstall": "node ./postinstall.js"
},
"devDependencies": {
"@types/chai": "^4.3.16",
"@types/mocha": "^10.0.6",
"@types/node": "20.x",
"@types/sinon": "^17.0.3",
"@types/vscode": "^1.90.0",
"@typescript-eslint/eslint-plugin": "^7.11.0",
"@typescript-eslint/parser": "^7.11.0",
"@vscode/test-cli": "^0.0.9",
"@vscode/test-electron": "^2.4.0",
"chai": "^5.1.1",
"esbuild": "^0.21.5",
"eslint": "^8.57.0",
"eslint-plugin-prettier": "^5.1.3",
"mocha": "^10.4.0",
"npm-run-all": "^4.1.5",
"sinon": "^18.0.0",
"typescript": "^5.4.5"
}
}
"name": "vs-code-extension",
"displayName": "debricked",
"description": "A fast and flexible software composition analysis VS Code Extension and CLI tool, given to you by Debricked.",
"publisher": "debricked",
"version": "0.0.1",
"engines": {
"vscode": "^1.90.0"
},
"categories": [
"Other"
],
"activationEvents": [],
"main": "./dist/extension.js",
"contributes": {
"commands": [
{
"command": "debricked.debricked",
"title": "Debricked : A fast and flexible software composition analysis CLI tool, given to you by Debricked.",
"category": "debricked"
},
{
"command": "debricked.help",
"title": "Help about any command",
"category": "debricked"
}
]
},
"scripts": {
"vscode:prepublish": "npm run package",
"compile": "npm run check-types && npm run lint && node esbuild.js",
"watch": "npm-run-all -p watch:*",
"watch:esbuild": "node esbuild.js --watch",
"watch:tsc": "tsc --noEmit --watch --project tsconfig.json",
"package": "npm run check-types && npm run lint && node esbuild.js --production",
"compile-tests": "npm run clean && tsc -p . --outDir out",
"watch-tests": "tsc -p . -w --outDir out",
"pretest": "npm run compile-tests && npm run compile && npm run lint",
"check-types": "tsc --noEmit",
"lint": "eslint src --ext ts",
"lint:fix": "eslint --fix src --ext ts",
"test": "vscode-test --coverage",
"clean": "rimraf out && rimraf dist && rimraf coverage",
"clean-all": "rimraf out && rimraf dist && rimraf coverage && rimraf .vscode-test",
"postinstall": "node ./postinstall.js"
},
"devDependencies": {
"@types/chai": "^4.3.16",
"@types/mocha": "^10.0.6",
"@types/node": "20.x",
"@types/sinon": "^17.0.3",
"@types/vscode": "^1.90.0",
"@typescript-eslint/eslint-plugin": "^7.11.0",
"@typescript-eslint/parser": "^7.11.0",
"@vscode/test-cli": "^0.0.9",
"@vscode/test-electron": "^2.4.0",
"chai": "^5.1.1",
"esbuild": "^0.21.5",
"eslint": "^8.57.0",
"eslint-plugin-prettier": "^5.1.3",
"mocha": "^10.4.0",
"npm-run-all": "^4.1.5",
"sinon": "^18.0.0",
"typescript": "^5.4.5"
}
}

0 comments on commit 8ec6fcb

Please sign in to comment.