@@ -35,9 +35,6 @@ Tidelift is working with the maintainers of `eslint-plugin-functional` and a gro
35
35
36
36
The following rulesets are made available by this plugin.
37
37
38
- Note: if using a [ flat config] ( https://eslint.org/docs/latest/use/configure/configuration-files-new ) add a ` flat/ ` prefix to the preset name
39
- (e.g. ` functional.configs["flat/recommended"] ` ).
40
-
41
38
Presets:
42
39
43
40
- ** Strict** (` plugin:functional/strict ` )\
@@ -109,52 +106,52 @@ The [below section](#rules) gives details on which rules are enabled by each rul
109
106
110
107
### Currying
111
108
112
- | Name | Description | 💼 | ⚠️ | 🚫 | 🔧 | 💡 | 💭 | ❌ |
113
- | :----------------------------------------------------------- | :----------------------------- | :-------------------------- | :- | :- | :- | :- | :- | :- |
114
- | [ functional-parameters] ( docs/rules/functional-parameters.md ) | Enforce functional parameters. | ☑️ ✅ 🔒 ![ badge-currying] [ ] | | | | | | |
109
+ | Name | Description | 💼 | ⚠️ | 🚫 | 🔧 | 💡 | 💭 | ❌ |
110
+ | :----------------------------------------------------------- | :----------------------------- | :------------------------ | :--- | :--- | :--- | :--- | :--- | :-- - |
111
+ | [ functional-parameters] ( docs/rules/functional-parameters.md ) | Enforce functional parameters. | ☑️ ✅ 🔒 ![ badge-currying] [ ] | | | | | | |
115
112
116
113
### No Exceptions
117
114
118
- | Name | Description | 💼 | ⚠️ | 🚫 | 🔧 | 💡 | 💭 | ❌ |
119
- | :------------------------------------------------------- | :----------------------------------------------------- | :------------------------------- | :- | :--- | :- | :- | :- | :- |
120
- | [ no-promise-reject] ( docs/rules/no-promise-reject.md ) | Disallow rejecting promises. | | | | | | | |
121
- | [ no-throw-statements] ( docs/rules/no-throw-statements.md ) | Disallow throwing exceptions. | ☑️ ✅ 🔒 ![ badge-no-exceptions] [ ] | | | | | | |
122
- | [ no-try-statements] ( docs/rules/no-try-statements.md ) | Disallow try-catch[ -finally] and try-finally patterns. | 🔒 ![ badge-no-exceptions] [ ] | | ☑️ ✅ | | | | |
115
+ | Name | Description | 💼 | ⚠️ | 🚫 | 🔧 | 💡 | 💭 | ❌ |
116
+ | :------------------------------------------------------- | :----------------------------------------------------- | :----------------------------- | :--- | :--- | :--- | :--- | :--- | :-- - |
117
+ | [ no-promise-reject] ( docs/rules/no-promise-reject.md ) | Disallow rejecting promises. | | | | | | | |
118
+ | [ no-throw-statements] ( docs/rules/no-throw-statements.md ) | Disallow throwing exceptions. | ☑️ ✅ 🔒 ![ badge-no-exceptions] [ ] | | | | | | |
119
+ | [ no-try-statements] ( docs/rules/no-try-statements.md ) | Disallow try-catch[ -finally] and try-finally patterns. | 🔒 ![ badge-no-exceptions] [ ] | | ☑️ ✅ | | | | |
123
120
124
121
### No Mutations
125
122
126
- | Name | Description | 💼 | ⚠️ | 🚫 | 🔧 | 💡 | 💭 | ❌ |
127
- | :--------------------------------------------------------------------------- | :-------------------------------------------------------------- | :------------------------------ | :- | :- | :- | :- | :- | :- |
128
- | [ immutable-data] ( docs/rules/immutable-data.md ) | Enforce treating data as immutable. | ☑️ ✅ 🔒 ![ badge-no-mutations] [ ] | | | | | 💭 | |
129
- | [ no-let] ( docs/rules/no-let.md ) | Disallow mutable variables. | ☑️ ✅ 🔒 ![ badge-no-mutations] [ ] | | | | | | |
130
- | [ prefer-immutable-types] ( docs/rules/prefer-immutable-types.md ) | Require function parameters to be typed as certain immutability | ☑️ ✅ 🔒 ![ badge-no-mutations] [ ] | | | 🔧 | 💡 | 💭 | |
131
- | [ prefer-readonly-type] ( docs/rules/prefer-readonly-type.md ) | Prefer readonly types over mutable types. | | | | 🔧 | | 💭 | ❌ |
132
- | [ type-declaration-immutability] ( docs/rules/type-declaration-immutability.md ) | Enforce the immutability of types based on patterns. | ☑️ ✅ 🔒 ![ badge-no-mutations] [ ] | | | 🔧 | | 💭 | |
123
+ | Name | Description | 💼 | ⚠️ | 🚫 | 🔧 | 💡 | 💭 | ❌ |
124
+ | :--------------------------------------------------------------------------- | :-------------------------------------------------------------- | :---------------------------- | :--- | :--- | :--- | :--- | :--- | :-- - |
125
+ | [ immutable-data] ( docs/rules/immutable-data.md ) | Enforce treating data as immutable. | ☑️ ✅ 🔒 ![ badge-no-mutations] [ ] | | | | | 💭 | |
126
+ | [ no-let] ( docs/rules/no-let.md ) | Disallow mutable variables. | ☑️ ✅ 🔒 ![ badge-no-mutations] [ ] | | | | | | |
127
+ | [ prefer-immutable-types] ( docs/rules/prefer-immutable-types.md ) | Require function parameters to be typed as certain immutability | ☑️ ✅ 🔒 ![ badge-no-mutations] [ ] | | | 🔧 | 💡 | 💭 | |
128
+ | [ prefer-readonly-type] ( docs/rules/prefer-readonly-type.md ) | Prefer readonly types over mutable types. | | | | 🔧 | | 💭 | ❌ |
129
+ | [ type-declaration-immutability] ( docs/rules/type-declaration-immutability.md ) | Enforce the immutability of types based on patterns. | ☑️ ✅ 🔒 ![ badge-no-mutations] [ ] | | | 🔧 | | 💭 | |
133
130
134
131
### No Other Paradigms
135
132
136
- | Name | Description | 💼 | ⚠️ | 🚫 | 🔧 | 💡 | 💭 | ❌ |
137
- | :------------------------------------------------------- | :------------------------------------------------------------------------ | :------------------------------------ | :- | :--- | :- | :- | :- | :- |
138
- | [ no-classes] ( docs/rules/no-classes.md ) | Disallow classes. | ☑️ ✅ 🔒 ![ badge-no-other-paradigms] [ ] | | | | | | |
139
- | [ no-mixed-types] ( docs/rules/no-mixed-types.md ) | Restrict types so that only members of the same kind are allowed in them. | ☑️ ✅ 🔒 ![ badge-no-other-paradigms] [ ] | | | | | 💭 | |
140
- | [ no-this-expressions] ( docs/rules/no-this-expressions.md ) | Disallow this access. | 🔒 ![ badge-no-other-paradigms] [ ] | | ☑️ ✅ | | | | |
133
+ | Name | Description | 💼 | ⚠️ | 🚫 | 🔧 | 💡 | 💭 | ❌ |
134
+ | :------------------------------------------------------- | :------------------------------------------------------------------------ | :---------------------------------- | :--- | :--- | :--- | :--- | :--- | :-- - |
135
+ | [ no-classes] ( docs/rules/no-classes.md ) | Disallow classes. | ☑️ ✅ 🔒 ![ badge-no-other-paradigms] [ ] | | | | | | |
136
+ | [ no-mixed-types] ( docs/rules/no-mixed-types.md ) | Restrict types so that only members of the same kind are allowed in them. | ☑️ ✅ 🔒 ![ badge-no-other-paradigms] [ ] | | | | | 💭 | |
137
+ | [ no-this-expressions] ( docs/rules/no-this-expressions.md ) | Disallow this access. | 🔒 ![ badge-no-other-paradigms] [ ] | | ☑️ ✅ | | | | |
141
138
142
139
### No Statements
143
140
144
- | Name | Description | 💼 | ⚠️ | 🚫 | 🔧 | 💡 | 💭 | ❌ |
145
- | :------------------------------------------------------------------- | :--------------------------------------------- | :------------------------------- | :- | :- | :- | :- | :- | :- |
146
- | [ no-conditional-statements] ( docs/rules/no-conditional-statements.md ) | Disallow conditional statements. | ✅ 🔒 ![ badge-no-statements] [ ] | | ☑️ | | | 💭 | |
147
- | [ no-expression-statements] ( docs/rules/no-expression-statements.md ) | Disallow expression statements. | ✅ 🔒 ![ badge-no-statements] [ ] | | ☑️ | | | 💭 | |
148
- | [ no-loop-statements] ( docs/rules/no-loop-statements.md ) | Disallow imperative loops. | ☑️ ✅ 🔒 ![ badge-no-statements] [ ] | | | | | | |
149
- | [ no-return-void] ( docs/rules/no-return-void.md ) | Disallow functions that don't return anything. | ☑️ ✅ 🔒 ![ badge-no-statements] [ ] | | | | | 💭 | |
141
+ | Name | Description | 💼 | ⚠️ | 🚫 | 🔧 | 💡 | 💭 | ❌ |
142
+ | :------------------------------------------------------------------- | :--------------------------------------------- | :----------------------------- | :--- | :--- | :--- | :--- | :--- | :-- - |
143
+ | [ no-conditional-statements] ( docs/rules/no-conditional-statements.md ) | Disallow conditional statements. | ✅ 🔒 ![ badge-no-statements] [ ] | | ☑️ | | | 💭 | |
144
+ | [ no-expression-statements] ( docs/rules/no-expression-statements.md ) | Disallow expression statements. | ✅ 🔒 ![ badge-no-statements] [ ] | | ☑️ | | | 💭 | |
145
+ | [ no-loop-statements] ( docs/rules/no-loop-statements.md ) | Disallow imperative loops. | ☑️ ✅ 🔒 ![ badge-no-statements] [ ] | | | | | | |
146
+ | [ no-return-void] ( docs/rules/no-return-void.md ) | Disallow functions that don't return anything. | ☑️ ✅ 🔒 ![ badge-no-statements] [ ] | | | | | 💭 | |
150
147
151
148
### Stylistic
152
149
153
- | Name | Description | 💼 | ⚠️ | 🚫 | 🔧 | 💡 | 💭 | ❌ |
154
- | :--------------------------------------------------------------------- | :--------------------------------------------------------------------- | :- | :- | :- | :- | :- | :- | :- |
155
- | [ prefer-property-signatures] ( docs/rules/prefer-property-signatures.md ) | Prefer property signatures over method signatures. | 🎨 | | | | | 💭 | |
156
- | [ prefer-tacit] ( docs/rules/prefer-tacit.md ) | Replaces ` x => f(x) ` with just ` f ` . | | 🎨 | | | 💡 | 💭 | |
157
- | [ readonly-type] ( docs/rules/readonly-type.md ) | Require consistently using either ` readonly ` keywords or ` Readonly<T> ` | 🎨 | | | 🔧 | | 💭 | |
150
+ | Name | Description | 💼 | ⚠️ | 🚫 | 🔧 | 💡 | 💭 | ❌ |
151
+ | :--------------------------------------------------------------------- | :--------------------------------------------------------------------- | :--- | :--- | :--- | :--- | :--- | :--- | :-- - |
152
+ | [ prefer-property-signatures] ( docs/rules/prefer-property-signatures.md ) | Prefer property signatures over method signatures. | 🎨 | | | | | 💭 | |
153
+ | [ prefer-tacit] ( docs/rules/prefer-tacit.md ) | Replaces ` x => f(x) ` with just ` f ` . | | 🎨 | | | 💡 | 💭 | |
154
+ | [ readonly-type] ( docs/rules/readonly-type.md ) | Require consistently using either ` readonly ` keywords or ` Readonly<T> ` | 🎨 | | | 🔧 | | 💭 | |
158
155
159
156
<!-- end auto-generated rules list -->
160
157
<!-- markdownlint-restore -->
0 commit comments