Skip to content

Commit

Permalink
chore(deps): update dependency eslint to v9 (#18)
Browse files Browse the repository at this point in the history
* chore(deps): update dependency eslint to v9

* copy eslint upgrade from https://github.com/aspect-build/rules_lint/pull/246/files

* chore(deps): rjs2

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Alex Eagle <[email protected]>
  • Loading branch information
renovate[bot] and alexeagle authored May 21, 2024
1 parent 770b2a6 commit ac5b20e
Show file tree
Hide file tree
Showing 5 changed files with 174 additions and 194 deletions.
6 changes: 3 additions & 3 deletions {{ .ProjectSnake }}/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ npm_link_all_packages(name = "node_modules")
{{- if .Scaffold.lint }}
js_library(
name = "eslintrc",
srcs = [".eslintrc.cjs"],
srcs = ["eslint.config.mjs"],
deps = [
":node_modules/@typescript-eslint/eslint-plugin",
":node_modules/@typescript-eslint/parser",
":node_modules/@eslint/js",
":node_modules/typescript-eslint",
],
visibility = ["//:__subpackages__"],
)
Expand Down
4 changes: 2 additions & 2 deletions {{ .ProjectSnake }}/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ bazel_dep(name = "aspect_bazel_lib", version = "2.7.3")
bazel_dep(name = "aspect_rules_lint", version = "0.21.0")
bazel_dep(name = "rules_multitool", version = "0.7.1")
{{- if .Computed.javascript }}
bazel_dep(name = "aspect_rules_js", version = "1.42.3")
bazel_dep(name = "aspect_rules_ts", version = "2.4.1")
bazel_dep(name = "aspect_rules_js", version = "2.0.0-alpha.8")
bazel_dep(name = "aspect_rules_ts", version = "3.0.0-alpha.1")
{{- end}}
{{- if .Computed.python }}
bazel_dep(name = "rules_python", version = "0.32.2")
Expand Down
10 changes: 10 additions & 0 deletions {{ .ProjectSnake }}/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// @ts-check

import eslint from "@eslint/js";
import tseslint from "typescript-eslint";

export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
...tseslint.configs.stylistic,
);
8 changes: 4 additions & 4 deletions {{ .ProjectSnake }}/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
"name": "{{ .Project }}",
"private": true,
"devDependencies": {
"eslint": "^8",
"@typescript-eslint/parser": "*",
"@typescript-eslint/eslint-plugin": "*",
"@eslint/js": "^9",
"eslint": "^9",
"typescript-eslint": "^7",
"typescript": "5.4.5",
"prettier": "*"
"prettier": "^3"
}
}
Loading

0 comments on commit ac5b20e

Please sign in to comment.