Skip to content

Commit

Permalink
eslint: use stylistic to replace deprecated features
Browse files Browse the repository at this point in the history
  • Loading branch information
thestinger committed Nov 29, 2024
1 parent 358e9e4 commit 20e7edc
Show file tree
Hide file tree
Showing 3 changed files with 206 additions and 5 deletions.
14 changes: 9 additions & 5 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import js from "@eslint/js";
import globals from "globals";
import stylistic from "@stylistic/eslint-plugin";

export default [
js.configs.recommended,
{
plugins: {
"@stylistic": stylistic
},
languageOptions: {
globals: {
...globals.browser
Expand All @@ -12,11 +16,11 @@ export default [
sourceType: "module"
},
rules: {
indent: ["error", 4],
"linebreak-style": ["error", "unix"],
quotes: ["error", "double"],
semi: ["error", "always"],
"no-var": ["error"]
"no-var": ["error"],
"@stylistic/indent": ["error", 4],
"@stylistic/linebreak-style": ["error", "unix"],
"@stylistic/quotes": ["error", "double"],
"@stylistic/semi": ["error", "always"],
}
}
];
196 changes: 196 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"dependencies": {
"@stylistic/eslint-plugin": "^2.11.0",
"csso-cli": "^4.0.2",
"eslint": "^9.15.0",
"html-minifier-terser": "^7.2.0",
Expand Down

0 comments on commit 20e7edc

Please sign in to comment.