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 8, 2024
1 parent 3f2240e commit 81fda3b
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 19 deletions.
18 changes: 0 additions & 18 deletions .eslintrc.json

This file was deleted.

22 changes: 22 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -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"]
}
}
];
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
"stylelint-config-standard": "^36.0.0",
"terser": "^5.30.3",
"vnu-jar": "^23.4.11"
}
},
"type": "module"
}

0 comments on commit 81fda3b

Please sign in to comment.