Skip to content

Commit

Permalink
Add and use @typescript-eslint/parser
Browse files Browse the repository at this point in the history
  • Loading branch information
sirreal committed Nov 20, 2020
1 parent e0d5932 commit be8386e
Show file tree
Hide file tree
Showing 3 changed files with 207 additions and 0 deletions.
205 changes: 205 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions packages/eslint-plugin/configs/recommended.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const { config: localPrettierConfig } =
const prettierConfig = { ...defaultPrettierConfig, ...localPrettierConfig };

module.exports = {
parser: '@typescript-eslint/parser',
extends: [
require.resolve( './recommended-with-formatting.js' ),
'plugin:prettier/recommended',
Expand Down
1 change: 1 addition & 0 deletions packages/eslint-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"main": "index.js",
"dependencies": {
"@wordpress/prettier-config": "file:../prettier-config",
"@typescript-eslint/parser": "^4.8.1",
"babel-eslint": "^10.1.0",
"cosmiconfig": "^7.0.0",
"eslint-config-prettier": "^6.10.1",
Expand Down

0 comments on commit be8386e

Please sign in to comment.