Skip to content

Commit

Permalink
chore(lint): add sonar js lint rules
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianMurphy committed Sep 17, 2024
1 parent a0ef3d5 commit 67533b2
Show file tree
Hide file tree
Showing 6 changed files with 6,101 additions and 980 deletions.
5 changes: 5 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ 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';

export default [
// Base JavaScript configuration
Expand All @@ -21,6 +22,7 @@ export default [
'@typescript-eslint': tsPlugin,
unicorn,
playwright,
sonarjs,
},
rules: {
// Include TypeScript ESLint recommended rules
Expand All @@ -32,6 +34,9 @@ export default [

// Include Playwright plugin recommended rules
...playwright.configs.recommended.rules,

// Include SonarJS plugin recommended rules
...sonarjs.configs.recommended.rules,
},
},
];
Loading

0 comments on commit 67533b2

Please sign in to comment.