-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deps): update pre-commit hook pre-commit/mirrors-eslint to v9
- Loading branch information
1 parent
77256e5
commit 77c61e9
Showing
7 changed files
with
264 additions
and
281 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }], | ||
}, | ||
}, | ||
] |
Oops, something went wrong.