@rebeccastevens/eslint-config 1.3.10 → 1.3.13

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,27 @@
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.13](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/compare/v1.3.12...v1.3.13) (2022-04-04)
5
+
6
+
7
+ ### Bug Fixes
8
+
9
+ * tweak naming-convention ([136b90a](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/commit/136b90a05ff64bb3462a03bc4085a627fa874caa))
10
+
11
+ ## [1.3.12](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/compare/v1.3.11...v1.3.12) (2022-04-02)
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * allow underscore dangle ([c92396b](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/commit/c92396bdeda2732c34d60311a4ae74da1dac6c27))
17
+
18
+ ## [1.3.11](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/compare/v1.3.10...v1.3.11) (2022-04-02)
19
+
20
+
21
+ ### Bug Fixes
22
+
23
+ * turn off init-declarations ([49068ef](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/commit/49068ef73c410ee86f1335f3c78ef11bc10c53a2))
24
+
4
25
  ## [1.3.10](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/compare/v1.3.9...v1.3.10) (2022-04-02)
5
26
 
6
27
 
package/dist/modern.cjs CHANGED
@@ -440,15 +440,7 @@ const rules$2 = {
440
440
  ],
441
441
  "no-tabs": "error",
442
442
  "no-trailing-spaces": "error",
443
- "no-underscore-dangle": [
444
- "error",
445
- {
446
- allow: [],
447
- allowAfterThis: false,
448
- allowAfterSuper: false,
449
- enforceInMethodNames: true,
450
- },
451
- ],
443
+ "no-underscore-dangle": "off",
452
444
  "no-unneeded-ternary": "error",
453
445
  "no-whitespace-before-property": "error",
454
446
  "nonblock-statement-body-position": [
@@ -564,7 +556,7 @@ const rules$2 = {
564
556
  };
565
557
 
566
558
  const rules$1 = {
567
- "init-declarations": "error",
559
+ "init-declarations": "off",
568
560
  "no-delete-var": "error",
569
561
  "no-label-var": "error",
570
562
  "no-restricted-globals": [
package/dist/modern.mjs CHANGED
@@ -438,15 +438,7 @@ const rules$2 = {
438
438
  ],
439
439
  "no-tabs": "error",
440
440
  "no-trailing-spaces": "error",
441
- "no-underscore-dangle": [
442
- "error",
443
- {
444
- allow: [],
445
- allowAfterThis: false,
446
- allowAfterSuper: false,
447
- enforceInMethodNames: true,
448
- },
449
- ],
441
+ "no-underscore-dangle": "off",
450
442
  "no-unneeded-ternary": "error",
451
443
  "no-whitespace-before-property": "error",
452
444
  "nonblock-statement-body-position": [
@@ -562,7 +554,7 @@ const rules$2 = {
562
554
  };
563
555
 
564
556
  const rules$1 = {
565
- "init-declarations": "error",
557
+ "init-declarations": "off",
566
558
  "no-delete-var": "error",
567
559
  "no-label-var": "error",
568
560
  "no-restricted-globals": [
@@ -66,50 +66,54 @@ const settings = {
66
66
  "@typescript-eslint/naming-convention": [
67
67
  "error",
68
68
  {
69
+ selector: "default",
69
70
  format: ["camelCase", "PascalCase"],
70
71
  leadingUnderscore: "allow",
71
- selector: "default",
72
72
  trailingUnderscore: "forbid",
73
73
  },
74
74
  {
75
+ selector: "variable",
75
76
  format: ["camelCase", "PascalCase", "UPPER_CASE"],
76
77
  leadingUnderscore: "forbid",
77
- selector: "variable",
78
78
  trailingUnderscore: "forbid",
79
- prefix: ["m_"],
79
+ prefix: ["m_", "M_"],
80
80
  },
81
81
  {
82
+ selector: "variable",
82
83
  format: ["camelCase", "PascalCase", "UPPER_CASE"],
83
84
  leadingUnderscore: "forbid",
84
- selector: "variable",
85
85
  trailingUnderscore: "forbid",
86
86
  modifiers: ["const"],
87
87
  },
88
88
  {
89
+ selector: "variableLike",
89
90
  format: ["camelCase", "PascalCase"],
90
91
  leadingUnderscore: "allow",
91
- selector: "variableLike",
92
92
  trailingUnderscore: "forbid",
93
93
  },
94
94
  {
95
- format: ["camelCase", "PascalCase", "UPPER_CASE"],
96
95
  selector: "memberLike",
96
+ format: ["camelCase", "PascalCase", "UPPER_CASE"],
97
+ prefix: ["m_", "M_"],
97
98
  },
98
99
  {
99
- format: ["camelCase", "PascalCase", "UPPER_CASE"],
100
- selector: "memberLike",
101
- prefix: ["m_"],
100
+ selector: "objectLiteralProperty",
101
+ format: null,
102
+ },
103
+ {
104
+ selector: "objectLiteralMethod",
105
+ format: null,
102
106
  },
103
107
  {
108
+ selector: "enumMember",
104
109
  format: ["UPPER_CASE"],
105
110
  leadingUnderscore: "forbid",
106
- selector: "enumMember",
107
111
  trailingUnderscore: "forbid",
108
112
  },
109
113
  {
114
+ selector: "typeLike",
110
115
  format: ["PascalCase"],
111
116
  leadingUnderscore: "forbid",
112
- selector: "typeLike",
113
117
  trailingUnderscore: "forbid",
114
118
  },
115
119
  ],
@@ -64,50 +64,54 @@ const settings = {
64
64
  "@typescript-eslint/naming-convention": [
65
65
  "error",
66
66
  {
67
+ selector: "default",
67
68
  format: ["camelCase", "PascalCase"],
68
69
  leadingUnderscore: "allow",
69
- selector: "default",
70
70
  trailingUnderscore: "forbid",
71
71
  },
72
72
  {
73
+ selector: "variable",
73
74
  format: ["camelCase", "PascalCase", "UPPER_CASE"],
74
75
  leadingUnderscore: "forbid",
75
- selector: "variable",
76
76
  trailingUnderscore: "forbid",
77
- prefix: ["m_"],
77
+ prefix: ["m_", "M_"],
78
78
  },
79
79
  {
80
+ selector: "variable",
80
81
  format: ["camelCase", "PascalCase", "UPPER_CASE"],
81
82
  leadingUnderscore: "forbid",
82
- selector: "variable",
83
83
  trailingUnderscore: "forbid",
84
84
  modifiers: ["const"],
85
85
  },
86
86
  {
87
+ selector: "variableLike",
87
88
  format: ["camelCase", "PascalCase"],
88
89
  leadingUnderscore: "allow",
89
- selector: "variableLike",
90
90
  trailingUnderscore: "forbid",
91
91
  },
92
92
  {
93
- format: ["camelCase", "PascalCase", "UPPER_CASE"],
94
93
  selector: "memberLike",
94
+ format: ["camelCase", "PascalCase", "UPPER_CASE"],
95
+ prefix: ["m_", "M_"],
95
96
  },
96
97
  {
97
- format: ["camelCase", "PascalCase", "UPPER_CASE"],
98
- selector: "memberLike",
99
- prefix: ["m_"],
98
+ selector: "objectLiteralProperty",
99
+ format: null,
100
+ },
101
+ {
102
+ selector: "objectLiteralMethod",
103
+ format: null,
100
104
  },
101
105
  {
106
+ selector: "enumMember",
102
107
  format: ["UPPER_CASE"],
103
108
  leadingUnderscore: "forbid",
104
- selector: "enumMember",
105
109
  trailingUnderscore: "forbid",
106
110
  },
107
111
  {
112
+ selector: "typeLike",
108
113
  format: ["PascalCase"],
109
114
  leadingUnderscore: "forbid",
110
- selector: "typeLike",
111
115
  trailingUnderscore: "forbid",
112
116
  },
113
117
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rebeccastevens/eslint-config",
3
- "version": "1.3.10",
3
+ "version": "1.3.13",
4
4
  "description": "My ESLint shareable config.",
5
5
  "keywords": [
6
6
  "eslint config"