@rebeccastevens/eslint-config 1.3.8 → 1.3.11

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,28 @@
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.11](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/compare/v1.3.10...v1.3.11) (2022-04-02)
5
+
6
+
7
+ ### Bug Fixes
8
+
9
+ * turn off init-declarations ([49068ef](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/commit/49068ef73c410ee86f1335f3c78ef11bc10c53a2))
10
+
11
+ ## [1.3.10](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/compare/v1.3.9...v1.3.10) (2022-04-02)
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * allow "m_" prefix to mark something as mutable ([0c5c0d4](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/commit/0c5c0d44c09c359ff6f7660c0820fff614ad15d6))
17
+ * remove tsdoc ([a811527](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/commit/a8115278d708793ff76681b033d9c0b18a2a6fff))
18
+
19
+ ## [1.3.9](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/compare/v1.3.8...v1.3.9) (2022-03-23)
20
+
21
+
22
+ ### Bug Fixes
23
+
24
+ * update commonjs overrides ([3a7485f](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/commit/3a7485f1afd6389c818b1dc87d632272ed306005))
25
+
4
26
  ## [1.3.8](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/compare/v1.3.7...v1.3.8) (2022-03-23)
5
27
 
6
28
 
@@ -23,6 +23,7 @@ var commonOverrides = {
23
23
  files: ["**/*.{cjs,cts}"],
24
24
  rules: {
25
25
  "@typescript-eslint/no-var-requires": "off",
26
+ "import/no-dynamic-require": "off",
26
27
  "node/no-missing-require": "off",
27
28
  "unicorn/prefer-module": "off",
28
29
  },
@@ -21,6 +21,7 @@ var commonOverrides = {
21
21
  files: ["**/*.{cjs,cts}"],
22
22
  rules: {
23
23
  "@typescript-eslint/no-var-requires": "off",
24
+ "import/no-dynamic-require": "off",
24
25
  "node/no-missing-require": "off",
25
26
  "unicorn/prefer-module": "off",
26
27
  },
package/dist/modern.cjs CHANGED
@@ -564,7 +564,7 @@ const rules$2 = {
564
564
  };
565
565
 
566
566
  const rules$1 = {
567
- "init-declarations": "error",
567
+ "init-declarations": "off",
568
568
  "no-delete-var": "error",
569
569
  "no-label-var": "error",
570
570
  "no-restricted-globals": [
@@ -626,7 +626,7 @@ const settings$8 = {
626
626
  "functional/immutable-data": [
627
627
  "error",
628
628
  {
629
- ignoreAccessorPattern: "**.mutable*.**",
629
+ ignoreAccessorPattern: ["**.mutable*.**", "**.m_*.**"],
630
630
  ignoreClass: "fieldsOnly",
631
631
  ignoreImmediateMutation: true,
632
632
  },
@@ -640,7 +640,8 @@ const settings$8 = {
640
640
  "functional/no-let": [
641
641
  "error",
642
642
  {
643
- ignorePattern: "^mutable",
643
+ allowInForLoopInit: true,
644
+ ignorePattern: ["^mutable", "^m_"],
644
645
  },
645
646
  ],
646
647
  "functional/no-loop-statement": "error",
package/dist/modern.mjs CHANGED
@@ -562,7 +562,7 @@ const rules$2 = {
562
562
  };
563
563
 
564
564
  const rules$1 = {
565
- "init-declarations": "error",
565
+ "init-declarations": "off",
566
566
  "no-delete-var": "error",
567
567
  "no-label-var": "error",
568
568
  "no-restricted-globals": [
@@ -624,7 +624,7 @@ const settings$8 = {
624
624
  "functional/immutable-data": [
625
625
  "error",
626
626
  {
627
- ignoreAccessorPattern: "**.mutable*.**",
627
+ ignoreAccessorPattern: ["**.mutable*.**", "**.m_*.**"],
628
628
  ignoreClass: "fieldsOnly",
629
629
  ignoreImmediateMutation: true,
630
630
  },
@@ -638,7 +638,8 @@ const settings$8 = {
638
638
  "functional/no-let": [
639
639
  "error",
640
640
  {
641
- ignorePattern: "^mutable",
641
+ allowInForLoopInit: true,
642
+ ignorePattern: ["^mutable", "^m_"],
642
643
  },
643
644
  ],
644
645
  "functional/no-loop-statement": "error",
@@ -2,13 +2,6 @@
2
2
 
3
3
  var deepmergeTs = require('deepmerge-ts');
4
4
 
5
- const settings$1 = {
6
- plugins: ["tsdoc"],
7
- rules: {
8
- "tsdoc/syntax": "warn",
9
- },
10
- };
11
-
12
5
  const settings = {
13
6
  plugins: ["@typescript-eslint"],
14
7
  extends: [
@@ -83,6 +76,14 @@ const settings = {
83
76
  leadingUnderscore: "forbid",
84
77
  selector: "variable",
85
78
  trailingUnderscore: "forbid",
79
+ prefix: ["m_"],
80
+ },
81
+ {
82
+ format: ["camelCase", "PascalCase", "UPPER_CASE"],
83
+ leadingUnderscore: "forbid",
84
+ selector: "variable",
85
+ trailingUnderscore: "forbid",
86
+ modifiers: ["const"],
86
87
  },
87
88
  {
88
89
  format: ["camelCase", "PascalCase"],
@@ -94,6 +95,11 @@ const settings = {
94
95
  format: ["camelCase", "PascalCase", "UPPER_CASE"],
95
96
  selector: "memberLike",
96
97
  },
98
+ {
99
+ format: ["camelCase", "PascalCase", "UPPER_CASE"],
100
+ selector: "memberLike",
101
+ prefix: ["m_"],
102
+ },
97
103
  {
98
104
  format: ["UPPER_CASE"],
99
105
  leadingUnderscore: "forbid",
@@ -289,6 +295,6 @@ const baseConfig = {
289
295
  },
290
296
  ],
291
297
  };
292
- var typescript = deepmergeTs.deepmerge(baseConfig, settings, settings$1);
298
+ var typescript = deepmergeTs.deepmerge(baseConfig, settings);
293
299
 
294
300
  module.exports = typescript;
@@ -1,12 +1,5 @@
1
1
  import { deepmerge } from 'deepmerge-ts';
2
2
 
3
- const settings$1 = {
4
- plugins: ["tsdoc"],
5
- rules: {
6
- "tsdoc/syntax": "warn",
7
- },
8
- };
9
-
10
3
  const settings = {
11
4
  plugins: ["@typescript-eslint"],
12
5
  extends: [
@@ -81,6 +74,14 @@ const settings = {
81
74
  leadingUnderscore: "forbid",
82
75
  selector: "variable",
83
76
  trailingUnderscore: "forbid",
77
+ prefix: ["m_"],
78
+ },
79
+ {
80
+ format: ["camelCase", "PascalCase", "UPPER_CASE"],
81
+ leadingUnderscore: "forbid",
82
+ selector: "variable",
83
+ trailingUnderscore: "forbid",
84
+ modifiers: ["const"],
84
85
  },
85
86
  {
86
87
  format: ["camelCase", "PascalCase"],
@@ -92,6 +93,11 @@ const settings = {
92
93
  format: ["camelCase", "PascalCase", "UPPER_CASE"],
93
94
  selector: "memberLike",
94
95
  },
96
+ {
97
+ format: ["camelCase", "PascalCase", "UPPER_CASE"],
98
+ selector: "memberLike",
99
+ prefix: ["m_"],
100
+ },
95
101
  {
96
102
  format: ["UPPER_CASE"],
97
103
  leadingUnderscore: "forbid",
@@ -287,6 +293,6 @@ const baseConfig = {
287
293
  },
288
294
  ],
289
295
  };
290
- var typescript = deepmerge(baseConfig, settings, settings$1);
296
+ var typescript = deepmerge(baseConfig, settings);
291
297
 
292
298
  export { typescript as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rebeccastevens/eslint-config",
3
- "version": "1.3.8",
3
+ "version": "1.3.11",
4
4
  "description": "My ESLint shareable config.",
5
5
  "keywords": [
6
6
  "eslint config"