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 2d660f2
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 39 deletions.
39 changes: 0 additions & 39 deletions .eslintrc.json

This file was deleted.

30 changes: 30 additions & 0 deletions eslint.config.js
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/"
]

}
];

0 comments on commit 2d660f2

Please sign in to comment.