diff --git a/.eslintrc.json b/.eslintrc.json deleted file mode 100644 index 77fd8ef..0000000 --- a/.eslintrc.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "parserOptions": { - "ecmaVersion": 2020, - "sourceType": "module" - } -} diff --git a/eslint.config.js b/eslint.config.js index 2edbef8..d660066 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -1,8 +1,21 @@ -import globals from "globals"; -import pluginJs from "@eslint/js"; - - +// For ES Module Syntax export default [ - {languageOptions: { globals: globals.browser }}, - pluginJs.configs.recommended, -]; \ No newline at end of file + { + languageOptions: { + ecmaVersion: "latest", // Or specify a specific version like 2021, 2020, etc. + sourceType: "module", // "module" for ES modules, "script" for non-modular code + globals: { + // Define global variables that are predefined + browser: true, + node: true, + es6: true, + }, + }, + rules: { + "no-unused-vars": "off", + "semi": ["error", "always"], + "quotes": ["error", "double"] + } + } +]; + diff --git a/index.html b/index.html index 79f89c0..e83a175 100644 --- a/index.html +++ b/index.html @@ -6,17 +6,21 @@
- +