Skip to content

Commit

Permalink
fix: use latest prettier but lock @typescipt-eslint to v5 for now (
Browse files Browse the repository at this point in the history
…#443)

* fix: use latest `prettier` as its required by `eslint-plugin-prettier`

* fix: use `@typescript-eslint` v5 for now
  • Loading branch information
G-Rath authored Jul 11, 2023
1 parent 6a0661d commit e93eb16
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
5 changes: 4 additions & 1 deletion variants/frontend-base-typescript/template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ def rename_js_file_to_ts(file)
].map { |name| "@types/#{name}" }

yarn_add_dependencies types_packages + %w[@babel/preset-typescript typescript]
yarn_add_dev_dependencies %w[@typescript-eslint/parser @typescript-eslint/eslint-plugin]
yarn_add_dev_dependencies %w[
@typescript-eslint/parser@5
@typescript-eslint/eslint-plugin@5
]

run "yarn install"

Expand Down
2 changes: 1 addition & 1 deletion variants/frontend-base/js-lint/template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
eslint-plugin-import
eslint-plugin-prettier
eslint-plugin-eslint-comments
prettier@^2.7.0
prettier
prettier-config-ackama
prettier-plugin-packagejson
]
Expand Down
5 changes: 4 additions & 1 deletion variants/frontend-bootstrap-typescript/template.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
source_paths.unshift(File.dirname(__FILE__))

yarn_add_dependencies %w[@types/bootstrap]
yarn_add_dev_dependencies %w[@typescript-eslint/parser @typescript-eslint/eslint-plugin]
yarn_add_dev_dependencies %w[
@typescript-eslint/parser@5
@typescript-eslint/eslint-plugin@5
]

run "yarn install"

Expand Down

0 comments on commit e93eb16

Please sign in to comment.