Skip to content

Commit 4e34faa

Browse files
chore(lint): discourage JQuery
1 parent 67533b2 commit 4e34faa

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

eslint.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import tsPlugin from '@typescript-eslint/eslint-plugin';
44
import playwright from 'eslint-plugin-playwright';
55
import unicorn from 'eslint-plugin-unicorn';
66
import sonarjs from 'eslint-plugin-sonarjs';
7+
import noJquery from 'eslint-plugin-no-jquery';
78

89
export default [
910
// Base JavaScript configuration
@@ -23,6 +24,7 @@ export default [
2324
unicorn,
2425
playwright,
2526
sonarjs,
27+
'no-jquery': noJquery,
2628
},
2729
rules: {
2830
// Include TypeScript ESLint recommended rules
@@ -37,6 +39,9 @@ export default [
3739

3840
// Include SonarJS plugin recommended rules
3941
...sonarjs.configs.recommended.rules,
42+
43+
// Include no-jquery plugin rules to ban all uses of jQuery
44+
...noJquery.configs.all.rules,
4045
},
4146
},
4247
];

package-lock.json

Lines changed: 12 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"@typescript-eslint/eslint-plugin": "~8.6.0",
66
"@typescript-eslint/parser": "~8.6.0",
77
"eslint": "~9.10.0",
8+
"eslint-plugin-no-jquery": "~3.0.0",
89
"eslint-plugin-playwright": "~1.6.0",
910
"eslint-plugin-sonarjs": "~2.0.0",
1011
"eslint-plugin-unicorn": "~55.0.0",

0 commit comments

Comments
 (0)