-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #676 from ChristianMurphy/chore/eslint-upgrade
chore(lint): upgrade ESLint to version 9
- Loading branch information
Showing
8 changed files
with
7,025 additions
and
1,026 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,47 @@ | ||
import js from '@eslint/js'; | ||
import tsParser from '@typescript-eslint/parser'; | ||
import tsPlugin from '@typescript-eslint/eslint-plugin'; | ||
import playwright from 'eslint-plugin-playwright'; | ||
import unicorn from 'eslint-plugin-unicorn'; | ||
import sonarjs from 'eslint-plugin-sonarjs'; | ||
import noJquery from 'eslint-plugin-no-jquery'; | ||
|
||
export default [ | ||
// Base JavaScript configuration | ||
js.configs.recommended, | ||
|
||
// Configuration for all TypeScript files | ||
{ | ||
files: ['**/*.ts', '**/*.tsx'], | ||
languageOptions: { | ||
parser: tsParser, | ||
parserOptions: { | ||
project: './tsconfig.json', | ||
}, | ||
}, | ||
plugins: { | ||
'@typescript-eslint': tsPlugin, | ||
unicorn, | ||
playwright, | ||
sonarjs, | ||
'no-jquery': noJquery, | ||
}, | ||
rules: { | ||
// Include TypeScript ESLint recommended rules | ||
...tsPlugin.configs.recommended.rules, | ||
...tsPlugin.configs['recommended-requiring-type-checking'].rules, | ||
|
||
// Include Unicorn plugin recommended rules | ||
...unicorn.configs.recommended.rules, | ||
|
||
// Include Playwright plugin recommended rules | ||
...playwright.configs.recommended.rules, | ||
|
||
// Include SonarJS plugin recommended rules | ||
...sonarjs.configs.recommended.rules, | ||
|
||
// Include no-jquery plugin rules to ban all uses of jQuery | ||
...noJquery.configs.all.rules, | ||
}, | ||
}, | ||
]; |
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.