-
-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move to new eslint configuration format
- Loading branch information
1 parent
da219e0
commit 2d660f2
Showing
2 changed files
with
30 additions
and
39 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import js from "@eslint/js"; | ||
import globals from "globals"; | ||
|
||
export default [ | ||
js.configs.recommended, | ||
{ | ||
languageOptions: { | ||
globals: { | ||
channel: "readonly", | ||
...globals.browser | ||
}, | ||
ecmaVersion: 2022, | ||
sourceType: "module" | ||
}, | ||
rules: { | ||
indent: ["error", 4], | ||
"linebreak-style": ["error", "unix"], | ||
quotes: ["error", "double"], | ||
semi: ["error", "always"], | ||
"no-unused-vars": ["error", {caughtErrors: "none"}], | ||
"no-var": ["error"] | ||
}, | ||
ignores: [ | ||
"app/build/", | ||
"app/src/*/assets/viewer", | ||
"releases/" | ||
] | ||
|
||
} | ||
]; |