Skip to content

Commit

Permalink
move to new eslint configuration format
Browse files Browse the repository at this point in the history
  • Loading branch information
thestinger committed Apr 22, 2024
1 parent da219e0 commit c9eb422
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 39 deletions.
39 changes: 0 additions & 39 deletions .eslintrc.json

This file was deleted.

32 changes: 32 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
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/"
]
}
];

0 comments on commit c9eb422

Please sign in to comment.