Skip to content

Commit

Permalink
chore(deps): update pre-commit hook pre-commit/mirrors-eslint to v9
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate-bot authored and tagoro9 committed May 21, 2024
1 parent 77256e5 commit 77c61e9
Show file tree
Hide file tree
Showing 7 changed files with 264 additions and 281 deletions.
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

22 changes: 0 additions & 22 deletions .eslintrc.json

This file was deleted.

2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v8.56.0
rev: v9.3.0
hooks:
- id: eslint
- repo: https://github.com/pre-commit/mirrors-prettier
Expand Down
32 changes: 32 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import babelParser from "@babel/eslint-parser"
import globals from "globals"
import js from "@eslint/js"
import eslintConfigPrettier from "eslint-config-prettier"

export default [
{
ignores: ["coverage/**", "dist/**"],
},
js.configs.recommended,
eslintConfigPrettier,
{
languageOptions: {
ecmaVersion: 12,
globals: {
...globals.browser,
...globals.node,
...globals.jest,
Atomics: "readonly",
SharedArrayBuffer: "readonly",
},
parser: babelParser,
parserOptions: {
requireConfigFile: false,
},
sourceType: "module",
},
rules: {
indent: ["error", 4, { SwitchCase: 1 }],
},
},
]
Loading

0 comments on commit 77c61e9

Please sign in to comment.