Skip to content

Commit d4ba6ca

Browse files
committed
Upgrade SonarJS package to v3
In SonarJS package v3 they've removed 3rd party rules that were note written by SonarJS so to compensate for that, we've added some additional packages and their recommended eslint configurations. This doesn't match 100% the rules we had before, but these are recommended packages nevertheless so we are keeping them See more information here: https://community.sonarsource.com/t/eslint-plugin-sonarjs-peerdependencies-conflicts/129999/5?u=lola
1 parent 3e891a6 commit d4ba6ca

File tree

4 files changed

+958
-1668
lines changed

4 files changed

+958
-1668
lines changed

index.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
import eslint from "@eslint/js";
2+
import react from "eslint-plugin-react";
3+
import jsxA11y from "eslint-plugin-jsx-a11y";
4+
import importPlugin from "eslint-plugin-import";
25
import tseslint from "typescript-eslint";
36
import sonarjs from "eslint-plugin-sonarjs";
47
import prettierConfig from "eslint-config-prettier";
@@ -7,6 +10,10 @@ import globals from "globals";
710
export default tseslint.config(
811
eslint.configs.recommended,
912
...tseslint.configs.recommended,
13+
importPlugin.flatConfigs.recommended,
14+
react.configs.flat.recommended,
15+
react.configs.flat["jsx-runtime"],
16+
jsxA11y.flatConfigs.recommended,
1017
sonarjs.configs.recommended,
1118
prettierConfig,
1219
{

0 commit comments

Comments
 (0)