Skip to content

Commit ced295a

Browse files
committed
⬆️ Bump eslint version
1 parent ae62b94 commit ced295a

File tree

3 files changed

+25
-59
lines changed

3 files changed

+25
-59
lines changed

.eslintrc.json

Lines changed: 0 additions & 45 deletions
This file was deleted.

.pre-commit-config.yaml

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,7 @@ repos:
1818
hooks:
1919
- id: djlint-django
2020
exclude: "^presign/static/vendored/.*"
21-
- repo: https://github.com/pre-commit/mirrors-eslint
22-
rev: v8.1.0
23-
hooks:
24-
- id: eslint
25-
additional_dependencies:
26-
27-
- "@typescript-eslint/[email protected]"
28-
- "@typescript-eslint/[email protected]"
29-
30-
31-
32-
files: ^.*\.tsx?$ # *.ts and *.tsx
33-
types: [file]
34-
args: ["-c", ".eslintrc.json", "--max-warnings", "0", "--fix"]
21+
3522
- repo: local
3623
hooks:
3724
- id: tsc
@@ -40,3 +27,15 @@ repos:
4027
language: node
4128
files: ^.*\.tsx?$ # *.ts and *.tsx
4229
pass_filenames: true
30+
- id: eslint
31+
name: eslint
32+
entry: eslint
33+
language: node
34+
additional_dependencies:
35+
36+
- "@eslint/[email protected]"
37+
38+
39+
files: ^.*\.tsx?$ # *.ts and *.tsx
40+
types: [file]
41+
args: ["--max-warnings", "0", "--fix"]

eslint.config.cjs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
typescriptEslint = require("typescript-eslint");
2+
prettier = require("eslint-config-prettier");
3+
js = require("@eslint/js");
4+
5+
module.exports = [
6+
{
7+
ignores: ["**/node_modules", "static/**", "**/build"],
8+
},
9+
js.configs.recommended,
10+
...typescriptEslint.configs.recommended,
11+
prettier,
12+
];

0 commit comments

Comments
 (0)