forked from conventional-changelog/standard-version
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deps): upgrade ESLint to v9 (#200)
Co-authored-by: Timothy Jones <[email protected]>
- Loading branch information
1 parent
7168feb
commit 890019a
Showing
4 changed files
with
76 additions
and
55 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
import globals from "globals"; | ||
import js from "@eslint/js"; | ||
import jest from "eslint-plugin-jest"; | ||
import eslintConfigPrettier from "eslint-config-prettier"; | ||
|
||
/** | ||
* @type {import("eslint").Linter.Config} | ||
*/ | ||
export default [ | ||
{ | ||
"ignores": [".git/", ".github/", ".husky/", ".scannerwork/", ".vscode/", "coverage/", "node_modules/"], | ||
"name": "Files to ignore" | ||
}, | ||
{ | ||
...eslintConfigPrettier, | ||
"name": "Prettier" | ||
}, | ||
{ | ||
...js.configs.recommended, | ||
"files": ["**/*.{js,cjs,mjs}"], | ||
"languageOptions": { | ||
"ecmaVersion": 2023 | ||
}, | ||
"name": "JavaScript files", | ||
"rules": { | ||
...js.configs.recommended.rules, | ||
"no-var": "error", | ||
"no-unused-vars": [ | ||
"error", | ||
{ | ||
"argsIgnorePattern": "_.*" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"files": ["**/*.mjs"], | ||
"languageOptions": { | ||
"sourceType": "module" | ||
}, | ||
"name": "JavaScript modules" | ||
}, | ||
{ | ||
"files": ["**/*.{js,cjs,mjs}"], | ||
"languageOptions": { | ||
"globals": { | ||
...globals.node | ||
} | ||
}, | ||
"name": "Node.js files" | ||
}, | ||
{ | ||
...jest.configs["flat/recommended"], | ||
"files": ["test/**/*{spec,test}.{js,cjs,mjs}", "test/mocks/jest-mocks.js"], | ||
"languageOptions": { | ||
"globals": { | ||
...globals.jest | ||
} | ||
}, | ||
"name": "Test files", | ||
"rules": { | ||
...jest.configs["flat/recommended"].rules, | ||
"jest/prefer-expect-assertions": "off", | ||
"jest/expect-expect": "off" | ||
} | ||
} | ||
]; |
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