-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR updates ESLint and moves our configuration into the 21st century. - Use ESModules instead of CommonJS - Use modern ESLint configuration file - Prefer double quotes to single for Prettier and ESLint I sanity checked both the old and new UI. --------- Co-authored-by: Josh Kalderimis <[email protected]>
- Loading branch information
Showing
13 changed files
with
1,924 additions
and
2,400 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
semi: false | ||
singleQuote: true | ||
singleQuote: false |
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,26 @@ | ||
import js from "@eslint/js" | ||
import globals from "globals" | ||
|
||
// we need to be on node >= 18 to consume a version of "globals" | ||
// that has this key without a trailing space; if we use it as-is | ||
// eslint blows up | ||
delete globals.browser["AudioWorkletGlobalScope "] | ||
|
||
export default [ | ||
js.configs.recommended, | ||
{ | ||
languageOptions: { | ||
globals: { | ||
...globals.browser, | ||
...globals.jest, | ||
Intl: true | ||
}, | ||
ecmaVersion: 6, | ||
sourceType: "module" | ||
}, | ||
rules: { | ||
"no-empty": ["error", { allowEmptyCatch: true }], | ||
quotes: ["error", "double"] | ||
} | ||
} | ||
] |
Oops, something went wrong.