eslint-plugin-constructors 1.5.1 → 1.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.
package/README.md CHANGED
@@ -88,7 +88,7 @@ export default defineConfig({
88
88
 
89
89
  ---
90
90
 
91
- *Available bundles:* `recommended`, `problem` (deterministic bugs only)
91
+ *Available bundles:* `recommended`, `problem` (deterministic bugs only), `stylistic`
92
92
 
93
93
  ---
94
94
 
@@ -99,8 +99,6 @@ export default defineConfig({
99
99
 
100
100
  <h3 id="no-constructor-bind">
101
101
  <code>no-constructor-bind</code>
102
- <a title="Introduced in latest minor release" target="_blank" href="https://codeberg.org/adamlui/eslint-plugin-constructors/releases/tag/v1.5.0">
103
- <img height=16 align="middle" src="https://api.iconify.design/mdi/sprout.svg?color=%234a4a4a"></a>
104
102
  <a title="Included in recommended config" href="#usage">
105
103
  <img height=18 alt="[Recommended]" src="https://img.shields.io/badge/Recommended-f1f20a?style=flat-square" align="middle"></a>
106
104
  <a title="Accepts eslint --fix" target="_blank" href="https://eslint.org/docs/latest/use/command-line-interface#--fix">
@@ -163,8 +161,6 @@ If you target environments that do not support class fields.
163
161
 
164
162
  <h3 id="no-constructor-state">
165
163
  <code>no-constructor-state</code>
166
- <a title="Introduced in latest minor release" target="_blank" href="https://codeberg.org/adamlui/eslint-plugin-constructors/releases/tag/v1.5.0">
167
- <img height=16 align="middle" src="https://api.iconify.design/mdi/sprout.svg?color=%234a4a4a"></a>
168
164
  <a title="Included in recommended config" href="#usage">
169
165
  <img height=18 alt="[Recommended]" src="https://img.shields.io/badge/Recommended-f1f20a?style=flat-square" align="middle"></a>
170
166
  <a title="Accepts eslint --fix" target="_blank" href="https://eslint.org/docs/latest/use/command-line-interface#--fix">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-constructors",
3
- "version": "1.5.1",
3
+ "version": "1.6.0",
4
4
  "description": "ESLint rules for constructor usage",
5
5
  "keywords": [
6
6
  "code-quality",
@@ -73,12 +73,12 @@
73
73
  "eslint-plugin-n": "^18.5.0",
74
74
  "eslint-plugin-no-secrets": "^2.3.3",
75
75
  "eslint-plugin-no-unsanitized": "^4.1.5",
76
- "eslint-plugin-package-json": "^1.10.1",
76
+ "eslint-plugin-package-json": "^1.11.0",
77
77
  "eslint-plugin-promise": "^7.3.0",
78
78
  "eslint-plugin-regexp": "^3.3.1",
79
79
  "eslint-plugin-security": "^4.2.0",
80
80
  "eslint-plugin-sonarjs": "^4.2.2",
81
- "eslint-plugin-woodpecker": "^1.1.0",
81
+ "eslint-plugin-woodpecker": "^1.1.1",
82
82
  "oxlint": "^1.89.0"
83
83
  },
84
84
  "peerDependencies": {
package/src/index.d.ts CHANGED
@@ -4,6 +4,7 @@ type RuleSetting = RuleSeverity | [RuleSeverity, ...unknown[]]
4
4
  type ConfigName =
5
5
  | 'recommended'
6
6
  | 'problem'
7
+ | 'stylistic'
7
8
 
8
9
  interface PluginConfig {
9
10
  plugins: Record<string, unknown>
package/src/utils/init.js CHANGED
@@ -24,7 +24,8 @@ export default {
24
24
  })
25
25
  plugin.configs = {
26
26
  recommended: createConfig(rule => rule.meta.docs.recommended),
27
- problem: createConfig(rule => rule.meta.type == 'problem')
27
+ problem: createConfig(rule => rule.meta.type == 'problem'),
28
+ stylistic: createConfig(rule => rule.meta.docs.category == 'Stylistic Issues')
28
29
  }
29
30
  },
30
31