-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- test cleanup - added new eslint rules and upped to latest
- Loading branch information
1 parent
4d52675
commit 58d2c5b
Showing
28 changed files
with
542 additions
and
187 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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import pluginJest from "eslint-plugin-jest"; | ||
import eslintConfigPrettier from "eslint-config-prettier"; | ||
import jestExtended from 'eslint-plugin-jest-extended'; | ||
// import js from "@eslint/js"; | ||
|
||
|
||
export default [ | ||
// js.configs.recommended, | ||
jestExtended.configs['flat/all'], | ||
{ | ||
plugins: { jest: pluginJest }, | ||
languageOptions: { | ||
globals: pluginJest.environments.globals.globals, | ||
parserOptions: { | ||
sourceType: "module", | ||
ecmaVersion: 2024 | ||
} | ||
}, | ||
files: ["**/*.spec.js", "**/*.test.js"], | ||
ignores: [ | ||
".yarn/*", | ||
"*config.js", | ||
"**/node_modules/", | ||
".git/*", | ||
"artifacts/", | ||
"cache/", | ||
"typechain-types/", | ||
"jest-html-reporters-attach/", | ||
"coverage/" | ||
], | ||
rules: { | ||
"indent": ["error", 2], | ||
'jest/prefer-expect-assertions': 'warn', | ||
"jest/no-disabled-tests": "warn", | ||
"jest/no-focused-tests": "error", | ||
"jest/no-identical-title": "error", | ||
"jest/prefer-to-have-length": "warn", | ||
"jest/valid-expect": ["error", { minArgs: 1, maxArgs: 2 }], | ||
"jest-extended/prefer-to-be-true": "warn", | ||
"jest-extended/prefer-to-be-false": "error" | ||
} | ||
}, | ||
eslintConfigPrettier | ||
]; |
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
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
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
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
Oops, something went wrong.