Skip to content

Commit

Permalink
Add TypeScript recommended rules
Browse files Browse the repository at this point in the history
Closes #44
  • Loading branch information
gabmontes committed Oct 23, 2024
1 parent 5273c73 commit dfa00fc
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Additional rule sets are available:
- `bloq/mocha`
- `bloq/next`
- `bloq/node`
- `bloq/typescript`

## Note on code formatting

Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"mocha",
"next",
"next.js",
"node"
"node",
"typescript"
],
"license": "MIT",
"author": "Gabriel Montes <[email protected]>",
Expand All @@ -34,6 +35,8 @@
"eslint-plugin-markdownlint": "^0.6.0",
"eslint-plugin-mocha": "^10.0.0",
"eslint-plugin-node": "^11.0.0",
"@typescript-eslint/eslint-plugin": "^8.11.0",
"@typescript-eslint/parser": "^8.11.0",
"eslint-plugin-prefer-arrow": "^1.0.0",
"eslint-plugin-promise": "^6.0.0"
},
Expand Down
7 changes: 7 additions & 0 deletions typescript.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
'use strict'

module.exports = {
extends: ['plugin:@typescript-eslint/recommended'],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint']
}

0 comments on commit dfa00fc

Please sign in to comment.