@rebeccastevens/eslint-config 1.4.2 → 1.4.4

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,6 +1,20 @@
1
1
  # Changelog
2
2
  All notable changes to this project will be documented in this file. Dates are displayed in UTC.
3
3
 
4
+ ## [1.4.4](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/compare/v1.4.3...v1.4.4) (2022-10-04)
5
+
6
+
7
+ ### Bug Fixes
8
+
9
+ * update for eslint-plugin-functional 5 ([cf67943](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/commit/cf6794302dfa7af8be576c3716e52de65a01ed0a))
10
+
11
+ ## [1.4.3](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/compare/v1.4.2...v1.4.3) (2022-09-29)
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * update functional rules ([d8d8420](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/commit/d8d8420774fbb25ce1fa4d42f4d79e2b4865e126))
17
+
4
18
  ## [1.4.2](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/compare/v1.4.1...v1.4.2) (2022-09-29)
5
19
 
6
20
 
package/dist/modern.cjs CHANGED
@@ -594,22 +594,17 @@ const settings$9 = {
594
594
 
595
595
  const settings$8 = {
596
596
  plugins: ["functional"],
597
+ extends: ["plugin:functional/recommended"],
597
598
  rules: {
598
- "functional/no-expression-statement": "error",
599
+ "functional/no-expression-statements": "error",
599
600
  "functional/immutable-data": [
600
601
  "error",
601
602
  {
602
603
  ignoreAccessorPattern: ["**.mutable*.**", "**.m_*.**"],
603
- ignoreClass: "fieldsOnly",
604
+ ignoreClasses: "fieldsOnly",
604
605
  ignoreImmediateMutation: true,
605
606
  },
606
607
  ],
607
- "functional/no-conditional-statement": [
608
- "error",
609
- {
610
- allowReturningBranches: true,
611
- },
612
- ],
613
608
  "functional/no-let": [
614
609
  "error",
615
610
  {
@@ -617,25 +612,7 @@ const settings$8 = {
617
612
  ignorePattern: ["^mutable", "^m_"],
618
613
  },
619
614
  ],
620
- "functional/no-loop-statement": "error",
621
- "functional/no-mixed-type": "error",
622
- "functional/no-throw-statement": [
623
- "error",
624
- {
625
- allowInAsyncFunctions: true,
626
- },
627
- ],
628
- "functional/no-return-void": "error",
629
615
  },
630
- overrides: [
631
- {
632
- files: ["**/*.cjs"],
633
- rules: {
634
- "functional/immutable-data": "off",
635
- "functional/no-expression-statement": "off",
636
- },
637
- },
638
- ],
639
616
  };
640
617
 
641
618
  const settings$7 = {
package/dist/modern.mjs CHANGED
@@ -592,22 +592,17 @@ const settings$9 = {
592
592
 
593
593
  const settings$8 = {
594
594
  plugins: ["functional"],
595
+ extends: ["plugin:functional/recommended"],
595
596
  rules: {
596
- "functional/no-expression-statement": "error",
597
+ "functional/no-expression-statements": "error",
597
598
  "functional/immutable-data": [
598
599
  "error",
599
600
  {
600
601
  ignoreAccessorPattern: ["**.mutable*.**", "**.m_*.**"],
601
- ignoreClass: "fieldsOnly",
602
+ ignoreClasses: "fieldsOnly",
602
603
  ignoreImmediateMutation: true,
603
604
  },
604
605
  ],
605
- "functional/no-conditional-statement": [
606
- "error",
607
- {
608
- allowReturningBranches: true,
609
- },
610
- ],
611
606
  "functional/no-let": [
612
607
  "error",
613
608
  {
@@ -615,25 +610,7 @@ const settings$8 = {
615
610
  ignorePattern: ["^mutable", "^m_"],
616
611
  },
617
612
  ],
618
- "functional/no-loop-statement": "error",
619
- "functional/no-mixed-type": "error",
620
- "functional/no-throw-statement": [
621
- "error",
622
- {
623
- allowInAsyncFunctions: true,
624
- },
625
- ],
626
- "functional/no-return-void": "error",
627
613
  },
628
- overrides: [
629
- {
630
- files: ["**/*.cjs"],
631
- rules: {
632
- "functional/immutable-data": "off",
633
- "functional/no-expression-statement": "off",
634
- },
635
- },
636
- ],
637
614
  };
638
615
 
639
616
  const settings$7 = {
package/dist/script.cjs CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  const baseConfig = {
4
4
  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",
8
8
  "functional/no-return-void": "off",
9
- "functional/no-throw-statement": "off",
9
+ "functional/no-throw-statements": "off",
10
10
  "node/no-process-exit": "off",
11
11
  "node/no-sync": "off",
12
12
  "node/no-unpublished-import": "off",
package/dist/script.mjs CHANGED
@@ -1,10 +1,10 @@
1
1
  const baseConfig = {
2
2
  rules: {
3
- "functional/no-conditional-statement": "off",
4
- "functional/no-expression-statement": "off",
5
- "functional/no-loop-statement": "off",
3
+ "functional/no-conditional-statements": "off",
4
+ "functional/no-expression-statements": "off",
5
+ "functional/no-loop-statements": "off",
6
6
  "functional/no-return-void": "off",
7
- "functional/no-throw-statement": "off",
7
+ "functional/no-throw-statements": "off",
8
8
  "node/no-process-exit": "off",
9
9
  "node/no-sync": "off",
10
10
  "node/no-unpublished-import": "off",
package/dist/test.cjs CHANGED
@@ -5,10 +5,10 @@ const baseConfig = {
5
5
  rules: {
6
6
  "functional/functional-parameters": "off",
7
7
  "functional/immutable-data": "warn",
8
- "functional/no-conditional-statement": "warn",
9
- "functional/no-expression-statement": "off",
10
- "functional/no-loop-statement": "warn",
11
- "functional/no-throw-statement": "off",
8
+ "functional/no-conditional-statements": "warn",
9
+ "functional/no-expression-statements": "off",
10
+ "functional/no-loop-statements": "warn",
11
+ "functional/no-throw-statements": "off",
12
12
  "node/no-sync": "off",
13
13
  },
14
14
  };
package/dist/test.mjs CHANGED
@@ -3,10 +3,10 @@ const baseConfig = {
3
3
  rules: {
4
4
  "functional/functional-parameters": "off",
5
5
  "functional/immutable-data": "warn",
6
- "functional/no-conditional-statement": "warn",
7
- "functional/no-expression-statement": "off",
8
- "functional/no-loop-statement": "warn",
9
- "functional/no-throw-statement": "off",
6
+ "functional/no-conditional-statements": "warn",
7
+ "functional/no-expression-statements": "off",
8
+ "functional/no-loop-statements": "warn",
9
+ "functional/no-throw-statements": "off",
10
10
  "node/no-sync": "off",
11
11
  },
12
12
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rebeccastevens/eslint-config",
3
- "version": "1.4.2",
3
+ "version": "1.4.4",
4
4
  "description": "My ESLint shareable config.",
5
5
  "keywords": [
6
6
  "eslint config"
@@ -114,7 +114,7 @@
114
114
  "eslint": ">=8.0.0",
115
115
  "eslint-import-resolver-typescript": "*",
116
116
  "eslint-plugin-eslint-comments": "*",
117
- "eslint-plugin-functional": "*",
117
+ "eslint-plugin-functional": ">=5.0.0",
118
118
  "eslint-plugin-import": "*",
119
119
  "eslint-plugin-jsdoc": "*",
120
120
  "eslint-plugin-markdown": "*",