@rebeccastevens/eslint-config 1.3.2 → 1.3.3

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,14 @@
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.3.3](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/compare/v1.3.2...v1.3.3) (2022-03-22)
5
+
6
+
7
+ ### Bug Fixes
8
+
9
+ * upadte functional rules ([19ed80d](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/commit/19ed80dfcd99fedf3de686dbc6e06b5ab3b63f5e))
10
+ * update import rules ([2382357](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/commit/238235709d74a76c0ee1b53fc3c691f72074ea91))
11
+
4
12
  ## [1.3.2](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/compare/v1.3.1...v1.3.2) (2022-03-22)
5
13
 
6
14
 
package/dist/modern.cjs CHANGED
@@ -621,17 +621,8 @@ const settings$9 = {
621
621
 
622
622
  const settings$8 = {
623
623
  plugins: ["functional"],
624
- extends: [
625
- "plugin:functional/external-recommended",
626
- "plugin:functional/recommended",
627
- ],
628
624
  rules: {
629
- "functional/no-let": [
630
- "error",
631
- {
632
- ignorePattern: "^mutable",
633
- },
634
- ],
625
+ "functional/no-expression-statement": "error",
635
626
  "functional/immutable-data": [
636
627
  "error",
637
628
  {
@@ -646,20 +637,21 @@ const settings$8 = {
646
637
  allowReturningBranches: true,
647
638
  },
648
639
  ],
649
- "functional/no-throw-statement": [
640
+ "functional/no-let": [
650
641
  "error",
651
642
  {
652
- allowInAsyncFunctions: true,
643
+ ignorePattern: "^mutable",
653
644
  },
654
645
  ],
655
- "functional/no-try-statement": "off",
656
- "functional/prefer-readonly-type": [
646
+ "functional/no-loop-statement": "error",
647
+ "functional/no-mixed-type": "error",
648
+ "functional/no-throw-statement": [
657
649
  "error",
658
650
  {
659
- allowMutableReturnType: true,
660
- ignoreClass: true,
651
+ allowInAsyncFunctions: true,
661
652
  },
662
653
  ],
654
+ "functional/no-return-void": "error",
663
655
  },
664
656
  overrides: [
665
657
  {
@@ -808,21 +800,14 @@ const settings$7 = {
808
800
  "index",
809
801
  ],
810
802
  "newlines-between": "always",
811
- "pathGroups": [
812
- {
813
- group: "internal",
814
- pattern: "~/**",
815
- },
816
- {
817
- group: "internal",
818
- pattern: "@/**",
819
- },
820
- ],
821
803
  },
822
804
  ],
823
805
  "import/prefer-default-export": "off",
824
806
  "import/unambiguous": "off",
825
807
  },
808
+ settings: {
809
+ "import/internal-regex": "^(?:@|~).+",
810
+ },
826
811
  overrides: [
827
812
  {
828
813
  files: ["**/*.cjs"],
package/dist/modern.mjs CHANGED
@@ -619,17 +619,8 @@ const settings$9 = {
619
619
 
620
620
  const settings$8 = {
621
621
  plugins: ["functional"],
622
- extends: [
623
- "plugin:functional/external-recommended",
624
- "plugin:functional/recommended",
625
- ],
626
622
  rules: {
627
- "functional/no-let": [
628
- "error",
629
- {
630
- ignorePattern: "^mutable",
631
- },
632
- ],
623
+ "functional/no-expression-statement": "error",
633
624
  "functional/immutable-data": [
634
625
  "error",
635
626
  {
@@ -644,20 +635,21 @@ const settings$8 = {
644
635
  allowReturningBranches: true,
645
636
  },
646
637
  ],
647
- "functional/no-throw-statement": [
638
+ "functional/no-let": [
648
639
  "error",
649
640
  {
650
- allowInAsyncFunctions: true,
641
+ ignorePattern: "^mutable",
651
642
  },
652
643
  ],
653
- "functional/no-try-statement": "off",
654
- "functional/prefer-readonly-type": [
644
+ "functional/no-loop-statement": "error",
645
+ "functional/no-mixed-type": "error",
646
+ "functional/no-throw-statement": [
655
647
  "error",
656
648
  {
657
- allowMutableReturnType: true,
658
- ignoreClass: true,
649
+ allowInAsyncFunctions: true,
659
650
  },
660
651
  ],
652
+ "functional/no-return-void": "error",
661
653
  },
662
654
  overrides: [
663
655
  {
@@ -806,21 +798,14 @@ const settings$7 = {
806
798
  "index",
807
799
  ],
808
800
  "newlines-between": "always",
809
- "pathGroups": [
810
- {
811
- group: "internal",
812
- pattern: "~/**",
813
- },
814
- {
815
- group: "internal",
816
- pattern: "@/**",
817
- },
818
- ],
819
801
  },
820
802
  ],
821
803
  "import/prefer-default-export": "off",
822
804
  "import/unambiguous": "off",
823
805
  },
806
+ settings: {
807
+ "import/internal-regex": "^(?:@|~).+",
808
+ },
824
809
  overrides: [
825
810
  {
826
811
  files: ["**/*.cjs"],
@@ -253,6 +253,21 @@ const baseConfig = {
253
253
  "object-curly-spacing": "off",
254
254
  "space-infix-ops": "off",
255
255
  },
256
+ settings: {
257
+ "import/extensions": [
258
+ ".js",
259
+ ".ts",
260
+ ".jsx",
261
+ ".tsx",
262
+ ".mjs",
263
+ ".mts",
264
+ ".cjs",
265
+ ".cts",
266
+ ],
267
+ "import/parsers": {
268
+ "@typescript-eslint/parser": [".ts", ".tsx", ".mts", ".cts"],
269
+ },
270
+ },
256
271
  overrides: [
257
272
  {
258
273
  files: ["**/*.ts", "**/*.tsx"],
@@ -263,11 +278,6 @@ const baseConfig = {
263
278
  "import/namespace": "off",
264
279
  "node/no-unsupported-features/es-syntax": "off",
265
280
  },
266
- settings: {
267
- "import/parsers": {
268
- "@typescript-eslint/parser": [".ts", ".tsx"],
269
- },
270
- },
271
281
  },
272
282
  ],
273
283
  };
@@ -251,6 +251,21 @@ const baseConfig = {
251
251
  "object-curly-spacing": "off",
252
252
  "space-infix-ops": "off",
253
253
  },
254
+ settings: {
255
+ "import/extensions": [
256
+ ".js",
257
+ ".ts",
258
+ ".jsx",
259
+ ".tsx",
260
+ ".mjs",
261
+ ".mts",
262
+ ".cjs",
263
+ ".cts",
264
+ ],
265
+ "import/parsers": {
266
+ "@typescript-eslint/parser": [".ts", ".tsx", ".mts", ".cts"],
267
+ },
268
+ },
254
269
  overrides: [
255
270
  {
256
271
  files: ["**/*.ts", "**/*.tsx"],
@@ -261,11 +276,6 @@ const baseConfig = {
261
276
  "import/namespace": "off",
262
277
  "node/no-unsupported-features/es-syntax": "off",
263
278
  },
264
- settings: {
265
- "import/parsers": {
266
- "@typescript-eslint/parser": [".ts", ".tsx"],
267
- },
268
- },
269
279
  },
270
280
  ],
271
281
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rebeccastevens/eslint-config",
3
- "version": "1.3.2",
3
+ "version": "1.3.3",
4
4
  "description": "My ESLint shareable config.",
5
5
  "keywords": [
6
6
  "eslint config"