Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeagle committed May 21, 2024
1 parent 585510d commit 96e6d4d
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 269 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
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,
);
6 changes: 3 additions & 3 deletions {{ .ProjectSnake }}/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"name": "{{ .Project }}",
"private": true,
"devDependencies": {
"eslint": "^9.0.0",
"@typescript-eslint/parser": "*",
"@typescript-eslint/eslint-plugin": "*",
"@eslint/js": "^9",
"eslint": "^9",
"typescript-eslint": "*",
"typescript": "5.4.5",
"prettier": "*"
}
Expand Down
Loading

0 comments on commit 96e6d4d

Please sign in to comment.