Skip to content

Commit

Permalink
chore: added prettier config (#838)
Browse files Browse the repository at this point in the history
Signed-off-by: akshatnema <20bcs022@iiitdmj.ac.in>
Co-authored-by: Jonas Lagoni <jonas-lt@live.dk>
  • Loading branch information
akshatnema and jonaslagoni authored Jan 23, 2023
1 parent 109a553 commit 6600a0b
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 21 deletions.
9 changes: 6 additions & 3 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,16 @@
"@typescript-eslint",
"sonarjs",
"security",
"github"
"github",
"prettier"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:sonarjs/recommended",
"plugin:security/recommended"
"plugin:security/recommended",
"prettier"
],
"rules": {
"strict": 0,
Expand Down Expand Up @@ -183,7 +185,8 @@
"prefer-const": 2,
"prefer-spread": 2,
"prefer-template": 2,
"@typescript-eslint/no-unused-vars": 2
"@typescript-eslint/no-unused-vars": 2,
"prettier/prettier": 2
},
"overrides": [
{
Expand Down
6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"semi": true,
"trailingComma": "none",
"singleQuote": true,
"printWidth": 80
}
66 changes: 50 additions & 16 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,10 @@
"ajv": "^8.6.3",
"conventional-changelog-conventionalcommits": "^4.6.1",
"cross-env": "^7.0.3",
"eslint": "^7.32.0",
"eslint": "7.32.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-github": "^4.3.2",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-security": "^1.4.0",
"eslint-plugin-sonarjs": "^0.10.0",
"jest": "^27.2.5",
Expand Down Expand Up @@ -105,7 +107,8 @@
"generate:readme:toc": "markdown-toc -i README.md && markdown-toc -i ./examples/README.md && markdown-toc -i ./docs/languages/Python.md && markdown-toc -i ./docs/usage.md && markdown-toc -i ./docs/integration.md && markdown-toc -i ./docs/advanced.md && markdown-toc -i ./docs/languages/Dart.md && markdown-toc -i ./docs/languages/TypeScript.md && markdown-toc -i ./docs/languages/Java.md && markdown-toc -i ./docs/languages/JavaScript.md && markdown-toc -i ./docs/languages/Csharp.md && markdown-toc -i ./docs/README.md && markdown-toc -i ./docs/generators.md",
"generate:assets": "npm run build:prod && npm run docs && npm run generate:readme:toc",
"bump:version": "npm --no-git-tag-version --allow-same-version version $VERSION",
"prepublishOnly": "npm run build:prod && npm run generate:readme:toc"
"prepublishOnly": "npm run build:prod && npm run generate:readme:toc && npm run format",
"format": "prettier --config .prettierrc '**/*.ts' --write"
},
"publishConfig": {
"access": "public"
Expand Down

0 comments on commit 6600a0b

Please sign in to comment.