-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #293 from mlibrary/2024-05-01-updates
Updating `eslint` and rebuilding the setup.
- Loading branch information
Showing
7 changed files
with
160 additions
and
1,902 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import globals from "globals"; | ||
import pluginJs from "@eslint/js"; | ||
|
||
export default [ | ||
pluginJs.configs.recommended, | ||
{ | ||
languageOptions: { | ||
globals: globals.browser | ||
} | ||
}, | ||
{ | ||
rules: { | ||
"arrow-body-style": ["error", "always"], // Requires {} in arrow function body | ||
"arrow-parens": ["error", "always"], // Requires () around arrow function arguments | ||
"brace-style": ["error", "1tbs"], // Requires one true brace style | ||
"no-empty-function": "error", // Require an empty function to at least have a comment explaining why | ||
"no-var": "error", // Discourages using `var` and recommends using `let` or `const` instead | ||
"semi": ["error", "always"] // Requires a semicolon wherever necessary | ||
} | ||
} | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.