-
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.
- Loading branch information
1 parent
3e507dc
commit 9f38fc8
Showing
23 changed files
with
5,754 additions
and
4,224 deletions.
There are no files selected for viewing
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
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,34 @@ | ||
/** @type {import('eslint').FlatConfig[]} */ | ||
import pluginJs from "@eslint/js"; | ||
import pluginJest from "eslint-plugin-jest"; | ||
import globals from "globals"; | ||
|
||
|
||
export default [ | ||
{ | ||
files: ["**/*.js"], | ||
languageOptions: { | ||
sourceType: "commonjs", // This is necessary to parse imports/exports | ||
globals: { | ||
...globals.browser, | ||
...globals.es2021, | ||
...globals.jest, // Add Jest globals | ||
}, | ||
}, | ||
// Add any other specific rules here | ||
}, | ||
pluginJs.configs.recommended, | ||
{ | ||
plugins: { | ||
jest: pluginJest, | ||
}, | ||
rules: { | ||
...pluginJest.configs.recommended.rules, | ||
"no-unused-vars": "warn", // Change no-unused-vars to a warning | ||
}, | ||
}, | ||
{ | ||
// Exclude test, tools, and lib directories from linting | ||
ignores: ["test/**/*", "tools/**/*js"], // Exclude these files from linting | ||
} | ||
]; |
Oops, something went wrong.