Skip to content

Commit cf67943

Browse files
fix: update for eslint-plugin-functional 5
1 parent f7f191a commit cf67943

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
"eslint": ">=8.0.0",
115115
"eslint-import-resolver-typescript": "*",
116116
"eslint-plugin-eslint-comments": "*",
117-
"eslint-plugin-functional": "*",
117+
"eslint-plugin-functional": ">=5.0.0",
118118
"eslint-plugin-import": "*",
119119
"eslint-plugin-jsdoc": "*",
120120
"eslint-plugin-markdown": "*",

src/configs/script.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ import type { Linter } from "eslint";
22

33
const baseConfig: Linter.Config = {
44
rules: {
5-
"functional/no-conditional-statement": "off",
6-
"functional/no-expression-statement": "off",
7-
"functional/no-loop-statement": "off",
5+
"functional/no-conditional-statements": "off",
6+
"functional/no-expression-statements": "off",
7+
"functional/no-loop-statements": "off",
88
"functional/no-return-void": "off",
9-
"functional/no-throw-statement": "off",
9+
"functional/no-throw-statements": "off",
1010
"node/no-process-exit": "off",
1111
"node/no-sync": "off",
1212
"node/no-unpublished-import": "off",

src/configs/test.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ const baseConfig: Linter.Config = {
66
rules: {
77
"functional/functional-parameters": "off",
88
"functional/immutable-data": "warn",
9-
"functional/no-conditional-statement": "warn",
10-
"functional/no-expression-statement": "off",
11-
"functional/no-loop-statement": "warn",
12-
"functional/no-throw-statement": "off",
9+
"functional/no-conditional-statements": "warn",
10+
"functional/no-expression-statements": "off",
11+
"functional/no-loop-statements": "warn",
12+
"functional/no-throw-statements": "off",
1313
"node/no-sync": "off",
1414
},
1515
};

src/plugins/functional.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ export const settings: Linter.Config = {
66
extends: ["plugin:functional/recommended"],
77

88
rules: {
9-
"functional/no-expression-statement": "error",
9+
"functional/no-expression-statements": "error",
1010
"functional/immutable-data": [
1111
"error",
1212
{
1313
ignoreAccessorPattern: ["**.mutable*.**", "**.m_*.**"],
14-
ignoreClass: "fieldsOnly",
14+
ignoreClasses: "fieldsOnly",
1515
ignoreImmediateMutation: true,
1616
},
1717
],

0 commit comments

Comments
 (0)