Skip to content

Commit

Permalink
eslint@9
Browse files Browse the repository at this point in the history
  • Loading branch information
bourgeoa committed Jan 16, 2025
1 parent 08dbe81 commit 6813c9b
Show file tree
Hide file tree
Showing 5 changed files with 592 additions and 187 deletions.
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

26 changes: 0 additions & 26 deletions .eslintrc

This file was deleted.

34 changes: 34 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import typescriptEslint from "@typescript-eslint/eslint-plugin";
import globals from "globals";
import tsParser from "@typescript-eslint/parser";

export default [{
ignores: ["**/dist"],
}, {
plugins: {
"@typescript-eslint": typescriptEslint,
},

languageOptions: {
globals: {
...globals.browser,
...globals.node,
Atomics: "readonly",
SharedArrayBuffer: "readonly",
},

parser: tsParser,
},
files: ["src/**/*.ts"],
rules: {
"no-unused-vars": ["warn", {
argsIgnorePattern: "^_",
varsIgnorePattern: "^_",
}],

"@typescript-eslint/no-unused-vars": ["warn", {
argsIgnorePattern: "^_",
varsIgnorePattern: "^_",
}],
},
}];
Loading

0 comments on commit 6813c9b

Please sign in to comment.