@anolilab/eslint-config 5.0.3 → 5.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,18 @@
1
+ ## @anolilab/eslint-config [5.0.5](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/eslint-config@5.0.4...@anolilab/eslint-config@5.0.5) (2023-05-25)
2
+
3
+
4
+
5
+ ### Dependencies
6
+
7
+ * **@anolilab/semantic-release-preset:** upgraded to 2.2.1
8
+
9
+ ## @anolilab/eslint-config [5.0.4](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/eslint-config@5.0.3...@anolilab/eslint-config@5.0.4) (2023-05-25)
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * changed deprecated eslint-plugin-radar to eslint-plugin-sonarjs ([6452014](https://github.com/anolilab/javascript-style-guide/commit/6452014bd4cdc62a4bfabc91940e5dc29a66d907))
15
+
1
16
  ## @anolilab/eslint-config [5.0.3](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/eslint-config@5.0.2...@anolilab/eslint-config@5.0.3) (2023-05-07)
2
17
 
3
18
 
package/README.md CHANGED
@@ -166,7 +166,7 @@ These plugins add code security rules to esLint:
166
166
 
167
167
  - [eslint-plugin-no-secrets](https://github.com/nickdeis/eslint-plugin-no-secrets)
168
168
  - [eslint-plugin-no-unsanitized](https://github.com/mozilla/eslint-plugin-no-unsanitized)
169
- - [eslint-plugin-radar](https://github.com/es-joy/eslint-plugin-radar)
169
+ - [eslint-plugin-sonarjs](https://github.com/SonarSource/eslint-plugin-sonarjs)
170
170
 
171
171
  ### Test Libraries
172
172
 
@@ -187,7 +187,7 @@ Test plugins are loaded based on which testing tools you have listed in `devDepe
187
187
  - eslint-plugin-no-secrets
188
188
  - eslint-plugin-optimize-regex
189
189
  - eslint-plugin-promise
190
- - eslint-plugin-radar
190
+ - eslint-plugin-sonarjs
191
191
  - eslint-plugin-simple-import-sort
192
192
  - eslint-plugin-sort-keys-fix
193
193
  - eslint-plugin-unicorn
package/config.cjs CHANGED
@@ -24,7 +24,7 @@ const pRules = [
24
24
 
25
25
  // Security Rules
26
26
  "no-secrets",
27
- "radar",
27
+ "sonarjs",
28
28
  ];
29
29
 
30
30
  // Optionals rules based on project dependencies
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anolilab/eslint-config",
3
- "version": "5.0.3",
3
+ "version": "5.0.5",
4
4
  "description": "ESLint shareable config for the Anolilab JavaScript style guide.",
5
5
  "keywords": [
6
6
  "anolilab",
@@ -60,7 +60,7 @@
60
60
  "postinstall": "node lib/postinstall.cjs"
61
61
  },
62
62
  "dependencies": {
63
- "@rushstack/eslint-plugin-security": "^0.5.0",
63
+ "@rushstack/eslint-plugin-security": "^0.6.0",
64
64
  "confusing-browser-globals": "^1.0.11",
65
65
  "eslint-import-resolver-node": "^0.3.7",
66
66
  "eslint-plugin-compat": "^4.1.4",
@@ -71,29 +71,29 @@
71
71
  "eslint-plugin-no-secrets": "^0.8.9",
72
72
  "eslint-plugin-optimize-regex": "^1.2.1",
73
73
  "eslint-plugin-promise": "^6.1.1",
74
- "eslint-plugin-radar": "^0.2.1",
74
+ "eslint-plugin-sonarjs": "^0.19.0",
75
75
  "eslint-plugin-simple-import-sort": "^10.0.0",
76
76
  "eslint-plugin-sort-keys-fix": "^1.1.2",
77
77
  "eslint-plugin-unicorn": "^47.0.0",
78
78
  "eslint-plugin-you-dont-need-lodash-underscore": "^6.12.0",
79
79
  "eslint-plugin-you-dont-need-momentjs": "^1.6.0",
80
- "eslint-plugin-yml": "^1.5.0",
81
- "jsonc-eslint-parser": "^2.2.0",
82
- "yaml-eslint-parser": "^1.2.0",
83
- "eslint-plugin-toml": "^0.4.1",
84
- "toml-eslint-parser": "^0.5.0",
85
- "eslint-plugin-jsonc": "^2.7.0",
80
+ "eslint-plugin-yml": "^1.7.0",
81
+ "jsonc-eslint-parser": "^2.3.0",
82
+ "yaml-eslint-parser": "^1.2.2",
83
+ "eslint-plugin-toml": "^0.5.0",
84
+ "toml-eslint-parser": "^0.6.0",
85
+ "eslint-plugin-jsonc": "^2.8.0",
86
86
  "find-up": "5.0.0",
87
87
  "lodash.has": "^4.5.2",
88
88
  "object.assign": "^4.1.4",
89
89
  "read-pkg-up": "7.0.1",
90
- "semver": "^7.5.0"
90
+ "semver": "^7.5.1"
91
91
  },
92
92
  "devDependencies": {
93
- "@testing-library/dom": "^9.2.0",
94
- "@typescript-eslint/eslint-plugin": "^5.59.2",
95
- "@typescript-eslint/parser": "^5.59.2",
96
- "eslint": "^8.40.0",
93
+ "@testing-library/dom": "^9.3.0",
94
+ "@typescript-eslint/eslint-plugin": "^5.59.7",
95
+ "@typescript-eslint/parser": "^5.59.7",
96
+ "eslint": "^8.41.0",
97
97
  "eslint-find-rules": "^4.1.0",
98
98
  "eslint-plugin-babel": "^5.3.1",
99
99
  "eslint-plugin-cypress": "^2.13.3",
@@ -101,38 +101,38 @@
101
101
  "eslint-plugin-jest-async": "^1.0.3",
102
102
  "eslint-plugin-jest-dom": "^4.0.3",
103
103
  "eslint-plugin-jest-formatting": "^3.1.0",
104
- "eslint-plugin-jsdoc": "^43.2.0",
104
+ "eslint-plugin-jsdoc": "^44.2.5",
105
105
  "eslint-plugin-json": "^3.1.0",
106
106
  "eslint-plugin-jsx-a11y": "^6.7.1",
107
107
  "eslint-plugin-mdx": "^2.1.0",
108
108
  "eslint-plugin-node": "^11.1.0",
109
109
  "eslint-plugin-prefer-object-spread": "^1.2.1",
110
110
  "eslint-plugin-react": "^7.32.2",
111
- "eslint-plugin-tailwindcss": "^3.11.0",
111
+ "eslint-plugin-tailwindcss": "^3.12.0",
112
112
  "eslint-plugin-react-hooks": "^4.6.0",
113
113
  "eslint-plugin-react-redux": "^4.0.0",
114
- "eslint-plugin-testing-library": "^5.10.3",
114
+ "eslint-plugin-testing-library": "^5.11.0",
115
115
  "eslint-plugin-typescript-sort-keys": "^2.3.0",
116
116
  "jest": "^29.5.0",
117
117
  "react": "^18.2.0",
118
118
  "typescript": "^5.0.4",
119
- "vitest": "^0.31.0",
120
- "@anolilab/semantic-release-preset": "^2.2.0"
119
+ "vitest": "^0.31.1",
120
+ "@anolilab/semantic-release-preset": "2.2.1"
121
121
  },
122
122
  "peerDependencies": {
123
123
  "eslint": "^8.15.0"
124
124
  },
125
125
  "optionalDependencies": {
126
- "eslint-plugin-tailwindcss": "^3.11.0",
127
- "@typescript-eslint/eslint-plugin": "^5.59.2",
128
- "@typescript-eslint/parser": "^5.59.2",
126
+ "eslint-plugin-tailwindcss": "^3.12.0",
127
+ "@typescript-eslint/eslint-plugin": "^5.59.7",
128
+ "@typescript-eslint/parser": "^5.59.7",
129
129
  "eslint-plugin-babel": "^5.3.1",
130
130
  "eslint-plugin-cypress": "^2.13.3",
131
131
  "eslint-plugin-jest": "^27.2.1",
132
132
  "eslint-plugin-jest-async": "^1.0.3",
133
133
  "eslint-plugin-jest-dom": "^4.0.3",
134
134
  "eslint-plugin-jest-formatting": "^3.1.0",
135
- "eslint-plugin-jsdoc": "^43.2.0",
135
+ "eslint-plugin-jsdoc": "^44.2.5",
136
136
  "eslint-plugin-json": "^3.1.0",
137
137
  "eslint-plugin-jsx-a11y": "^6.7.1",
138
138
  "eslint-plugin-mdx": "^2.1.0",
@@ -141,7 +141,7 @@
141
141
  "eslint-plugin-react": "^7.32.2",
142
142
  "eslint-plugin-react-hooks": "^4.6.0",
143
143
  "eslint-plugin-react-redux": "^4.0.0",
144
- "eslint-plugin-testing-library": "^5.10.3",
144
+ "eslint-plugin-testing-library": "^5.11.0",
145
145
  "eslint-plugin-typescript-sort-keys": "^2.3.0"
146
146
  },
147
147
  "engines": {
@@ -242,7 +242,7 @@ module.exports = {
242
242
  {
243
243
  object: "global",
244
244
  property: "isFinite",
245
- // eslint-disable-next-line radar/no-duplicate-string
245
+ // eslint-disable-next-line sonarjs/no-duplicate-string
246
246
  message: "Please use Number.isFinite instead",
247
247
  },
248
248
  {
@@ -258,7 +258,7 @@ module.exports = {
258
258
  {
259
259
  object: "global",
260
260
  property: "isNaN",
261
- // eslint-disable-next-line radar/no-duplicate-string
261
+ // eslint-disable-next-line sonarjs/no-duplicate-string
262
262
  message: "Please use Number.isNaN instead",
263
263
  },
264
264
  {
@@ -362,7 +362,7 @@ module.exports = {
362
362
  "react/jsx-wrap-multilines": [
363
363
  "error",
364
364
  {
365
- // eslint-disable-next-line radar/no-duplicate-string
365
+ // eslint-disable-next-line sonarjs/no-duplicate-string
366
366
  declaration: "parens-new-line",
367
367
  assignment: "parens-new-line",
368
368
  return: "parens-new-line",
@@ -0,0 +1,5 @@
1
+ // @see https://github.com/SonarSource/eslint-plugin-sonarjs
2
+ module.exports = {
3
+ extends: ["plugin:sonarjs/recommended"],
4
+ plugins: ["sonarjs"],
5
+ };
@@ -89,7 +89,7 @@ module.exports = {
89
89
  // The TypeScript version also adds 3 new options, all of which should be set to the same value as the base config
90
90
  "comma-dangle": "off",
91
91
  "@typescript-eslint/comma-dangle": [
92
- // eslint-disable-next-line radar/no-duplicate-string
92
+ // eslint-disable-next-line sonarjs/no-duplicate-string
93
93
  baseStyleRules["comma-dangle"][0],
94
94
  {
95
95
  ...baseStyleRules["comma-dangle"][1],
@@ -238,7 +238,7 @@ module.exports = {
238
238
  // Append 'ts' and 'tsx' to 'import/extensions' rule
239
239
  // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/extensions.md
240
240
  "import/extensions": [
241
- // eslint-disable-next-line radar/no-duplicate-string
241
+ // eslint-disable-next-line sonarjs/no-duplicate-string
242
242
  baseImportsRules["import/extensions"][0],
243
243
  baseImportsRules["import/extensions"][1],
244
244
  {
@@ -251,7 +251,7 @@ module.exports = {
251
251
  // Append 'ts' and 'tsx' extensions to 'import/no-extraneous-dependencies' rule
252
252
  // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-extraneous-dependencies.md
253
253
  "import/no-extraneous-dependencies": [
254
- // eslint-disable-next-line radar/no-duplicate-string
254
+ // eslint-disable-next-line sonarjs/no-duplicate-string
255
255
  baseImportsRules["import/no-extraneous-dependencies"][0],
256
256
  {
257
257
  ...baseImportsRules["import/no-extraneous-dependencies"][1],
package/rules/style.cjs CHANGED
@@ -46,7 +46,7 @@ module.exports = {
46
46
  "comma-dangle": [
47
47
  "error",
48
48
  {
49
- // eslint-disable-next-line radar/no-duplicate-string
49
+ // eslint-disable-next-line sonarjs/no-duplicate-string
50
50
  arrays: "always-multiline",
51
51
  objects: "always-multiline",
52
52
  imports: "always-multiline",
@@ -1,5 +0,0 @@
1
- // @see https://github.com/es-joy/eslint-plugin-radar
2
- module.exports = {
3
- extends: ["plugin:radar/recommended"],
4
- plugins: ["radar"],
5
- };