@nitra/eslint-config 3.5.0 → 3.6.0

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.
Files changed (2) hide show
  1. package/index.js +3 -0
  2. package/package.json +2 -1
package/index.js CHANGED
@@ -11,6 +11,7 @@ import markdownPlugin from 'eslint-plugin-markdown'
11
11
  import nodePlugin from 'eslint-plugin-n'
12
12
  import oxlint from 'eslint-plugin-oxlint'
13
13
  import securityPlugin from 'eslint-plugin-security'
14
+ import sonarjsPlugin from 'eslint-plugin-sonarjs'
14
15
  import unicornPlugin from 'eslint-plugin-unicorn'
15
16
  import vuePlugin from 'eslint-plugin-vue'
16
17
  import { configs as ymlConfigs } from 'eslint-plugin-yml'
@@ -169,6 +170,8 @@ const all = [
169
170
  'security/detect-unsafe-regex': 'off'
170
171
  }
171
172
  },
173
+ // eslint-plugin-sonarjs — recommended (bugs, complexity, duplicates; лише JS-подібні файли)
174
+ { ...sonarjsPlugin.configs.recommended, files: UNICORN_FILES },
172
175
  // @e18e/eslint-plugin — recommended (modernization + module replacements + performance)
173
176
  {
174
177
  files: UNICORN_FILES,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nitra/eslint-config",
3
- "version": "3.5.0",
3
+ "version": "3.6.0",
4
4
  "description": "An ESLint shareable config for projects using Vue and Node",
5
5
  "keywords": [
6
6
  "eslint",
@@ -38,6 +38,7 @@
38
38
  "eslint-plugin-n": "^17.24.0",
39
39
  "eslint-plugin-oxlint": "^1.59.0",
40
40
  "eslint-plugin-security": "^4.0.0",
41
+ "eslint-plugin-sonarjs": "^4.0.2",
41
42
  "eslint-plugin-unicorn": "^64.0.0",
42
43
  "eslint-plugin-vue": "^10.8.0",
43
44
  "eslint-plugin-yml": "^3.3.1",