Skip to content

Commit

Permalink
eslint.config update
Browse files Browse the repository at this point in the history
  • Loading branch information
lemon3 committed Apr 15, 2024
1 parent ee9f139 commit 9b0a854
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
13 changes: 2 additions & 11 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,14 @@
// import globals from 'globals';
import globals from 'globals';
import js from '@eslint/js';

// console.log(globals.browser);

export default [
js.configs.recommended,
{
languageOptions: {
ecmaVersion: 2022,
sourceType: 'module',
globals: {
// issue: Global "AudioWorkletGlobalScope " has leading or trailing whitespace.
// ...globals.browser,

// fix (define globals)
document: true,
CustomEvent: false,
window: false,
console: false,
...globals.browser,
},
},
rules: {
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"@babel/preset-env": "^7.24.4",
"babel-loader": "^9.1.3",
"eslint": "^9.0.0",
"globals": "^15.0.0",
"html-webpack-plugin": "^5.6.0",
"jsdom": "^24.0.0",
"prettier": "^3.2.5",
Expand Down
8 changes: 8 additions & 0 deletions pnpm-lock.yaml

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

0 comments on commit 9b0a854

Please sign in to comment.