eslint-plugin-nextfriday 1.15.0 → 1.15.1

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,5 +1,11 @@
1
1
  # eslint-plugin-nextfriday
2
2
 
3
+ ## 1.15.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#71](https://github.com/next-friday/eslint-plugin-nextfriday/pull/71) [`4831ea6`](https://github.com/next-friday/eslint-plugin-nextfriday/commit/4831ea697e9dfe38361b3a3577b67692ea1cd862) Thanks [@joetakara](https://github.com/joetakara)! - Update docs: add fixable info to sorting rules, add bundled plugin configs section to README.
8
+
3
9
  ## 1.15.0
4
10
 
5
11
  ### Minor Changes
package/README.md CHANGED
@@ -46,6 +46,21 @@ export default [nextfriday.configs.nextjs];
46
46
  export default [nextfriday.configs["nextjs/recommended"]];
47
47
  ```
48
48
 
49
+ #### Bundled Plugin Configs
50
+
51
+ Pre-configured configs for popular plugins. No extra install needed — they ship as dependencies.
52
+
53
+ ```js
54
+ import nextfriday from "eslint-plugin-nextfriday";
55
+
56
+ export default [nextfriday.configs["react/recommended"], ...nextfriday.configs.sonarjs, ...nextfriday.configs.unicorn];
57
+ ```
58
+
59
+ | Config | Plugin | Description |
60
+ | --------- | --------------------- | ---------------------------------------------------------------------------------------------------------- |
61
+ | `sonarjs` | eslint-plugin-sonarjs | SonarJS recommended rules for bug detection and code quality |
62
+ | `unicorn` | eslint-plugin-unicorn | Unicorn recommended rules (with `filename-case` and `prevent-abbreviations` off, `no-null` off in JSX/TSX) |
63
+
49
64
  ### Manual Configuration
50
65
 
51
66
  If you prefer to configure rules manually:
@@ -184,7 +199,7 @@ module.exports = {
184
199
  | [no-logic-in-params](docs/rules/NO_LOGIC_IN_PARAMS.md) | Disallow logic/conditions in function parameters - extract to const | ❌ |
185
200
  | [enforce-hook-naming](docs/rules/ENFORCE_HOOK_NAMING.md) | Enforce 'use' prefix for functions in \*.hook.ts files | ❌ |
186
201
  | [enforce-service-naming](docs/rules/ENFORCE_SERVICE_NAMING.md) | Enforce 'fetch' prefix for async functions in \*.service.ts files | ❌ |
187
- | [enforce-sorted-destructuring](docs/rules/ENFORCE_SORTED_DESTRUCTURING.md) | Enforce alphabetical sorting of destructured properties | |
202
+ | [enforce-sorted-destructuring](docs/rules/ENFORCE_SORTED_DESTRUCTURING.md) | Enforce alphabetical sorting of destructured properties | |
188
203
  | [no-env-fallback](docs/rules/NO_ENV_FALLBACK.md) | Disallow fallback values for environment variables | ❌ |
189
204
  | [no-inline-default-export](docs/rules/NO_INLINE_DEFAULT_EXPORT.md) | Disallow inline default exports - declare first, then export | ❌ |
190
205
  | [no-direct-date](docs/rules/NO_DIRECT_DATE.md) | Disallow direct usage of Date constructor and methods | ❌ |
@@ -203,8 +218,8 @@ module.exports = {
203
218
  | [no-relative-imports](docs/rules/NO_RELATIVE_IMPORTS.md) | Disallow relative imports with ../ - use absolute imports | ❌ |
204
219
  | [prefer-import-type](docs/rules/PREFER_IMPORT_TYPE.md) | Enforce using 'import type' for type-only imports | ✅ |
205
220
  | [prefer-react-import-types](docs/rules/PREFER_REACT_IMPORT_TYPES.md) | Enforce direct imports from 'react' instead of React.X | ✅ |
206
- | [sort-exports](docs/rules/SORT_EXPORTS.md) | Enforce a consistent ordering of export groups | |
207
- | [sort-imports](docs/rules/SORT_IMPORTS.md) | Enforce a consistent ordering of import groups | |
221
+ | [sort-exports](docs/rules/SORT_EXPORTS.md) | Enforce a consistent ordering of export groups | |
222
+ | [sort-imports](docs/rules/SORT_IMPORTS.md) | Enforce a consistent ordering of import groups | |
208
223
 
209
224
  ### Type Pattern Rules
210
225
 
@@ -212,8 +227,8 @@ module.exports = {
212
227
  | -------------------------------------------------------------------------------------- | ---------------------------------------------------------------- | ------- |
213
228
  | [prefer-named-param-types](docs/rules/PREFER_NAMED_PARAM_TYPES.md) | Enforce named types for function parameters with object types | ❌ |
214
229
  | [prefer-interface-over-inline-types](docs/rules/PREFER_INTERFACE_OVER_INLINE_TYPES.md) | Enforce interface declarations over inline types for React props | ❌ |
215
- | [sort-type-alphabetically](docs/rules/SORT_TYPE_ALPHABETICALLY.md) | Enforce A-Z sorting of properties within type groups | |
216
- | [sort-type-required-first](docs/rules/SORT_TYPE_REQUIRED_FIRST.md) | Enforce required properties before optional in types/interfaces | |
230
+ | [sort-type-alphabetically](docs/rules/SORT_TYPE_ALPHABETICALLY.md) | Enforce A-Z sorting of properties within type groups | |
231
+ | [sort-type-required-first](docs/rules/SORT_TYPE_REQUIRED_FIRST.md) | Enforce required properties before optional in types/interfaces | |
217
232
 
218
233
  ### React/JSX Rules
219
234
 
@@ -2,6 +2,8 @@
2
2
 
3
3
  Enforce alphabetical sorting of destructured properties with defaults first.
4
4
 
5
+ This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).
6
+
5
7
  ## Rule Details
6
8
 
7
9
  This rule enforces that object destructuring properties are sorted alphabetically, with properties that have default values coming first. Both groups (defaults and non-defaults) are sorted alphabetically (A-Z).
@@ -2,6 +2,8 @@
2
2
 
3
3
  Enforce a consistent ordering of export groups.
4
4
 
5
+ This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).
6
+
5
7
  ## Rule Details
6
8
 
7
9
  This rule enforces that named export statements (without declarations) are grouped and ordered by their source type. It does not enforce alphabetical sorting within groups.
@@ -2,6 +2,8 @@
2
2
 
3
3
  Enforce a consistent ordering of import groups.
4
4
 
5
+ This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).
6
+
5
7
  ## Rule Details
6
8
 
7
9
  This rule enforces that import statements are grouped and ordered by their source type. It does not enforce alphabetical sorting within groups.
@@ -2,6 +2,8 @@
2
2
 
3
3
  Enforce alphabetical sorting of properties within required and optional groups in TypeScript interfaces and type aliases.
4
4
 
5
+ This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).
6
+
5
7
  ## Rule Details
6
8
 
7
9
  This rule enforces that TypeScript interface and type alias properties are sorted alphabetically (A-Z) within their respective groups (required and optional). It checks each group independently.
@@ -2,6 +2,8 @@
2
2
 
3
3
  Enforce required properties come before optional properties in TypeScript interfaces and type aliases.
4
4
 
5
+ This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).
6
+
5
7
  ## Rule Details
6
8
 
7
9
  This rule enforces that TypeScript interface and type alias required (non-optional) properties come before optional properties.
package/lib/index.cjs CHANGED
@@ -42,7 +42,7 @@ var import_eslint_plugin_unicorn = __toESM(require("eslint-plugin-unicorn"), 1);
42
42
  // package.json
43
43
  var package_default = {
44
44
  name: "eslint-plugin-nextfriday",
45
- version: "1.15.0",
45
+ version: "1.15.1",
46
46
  description: "A comprehensive ESLint plugin providing custom rules and configurations for Next Friday development workflows.",
47
47
  keywords: [
48
48
  "eslint",