move to new eslint configuration format

This commit is contained in:
Daniel Micay
2024-04-08 01:38:56 -04:00
parent cb04cd3536
commit bd1edbdc0a
4 changed files with 46 additions and 51 deletions

22
eslint.config.js Normal file
View File

@@ -0,0 +1,22 @@
import js from "@eslint/js";
import globals from "globals";
export default [
js.configs.recommended,
{
languageOptions: {
globals: {
...globals.browser
},
ecmaVersion: 2022,
sourceType: "module"
},
rules: {
indent: ["error", 4],
"linebreak-style": ["error", "unix"],
quotes: ["error", "double"],
semi: ["error", "always"],
"no-var": ["error"]
}
}
];