@rebeccastevens/eslint-config 1.3.17 → 1.3.20
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 +22 -0
- package/dist/modern.cjs +4 -7
- package/dist/modern.mjs +4 -7
- package/dist/typescript.cjs +19 -1
- package/dist/typescript.mjs +19 -1
- package/package.json +1 -1
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.20](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/compare/v1.3.19...v1.3.20) (2022-04-17)
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
* allow plusplus ([4fd2635](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/commit/4fd2635cdaabb866ecd8d6b1abe85aeb3207b7be))
|
|
10
|
+
* loosen promise rules ([517b196](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/commit/517b19684057561d21dc846d896f6260056e1915))
|
|
11
|
+
|
|
12
|
+
## [1.3.19](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/compare/v1.3.18...v1.3.19) (2022-04-13)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* tweak naming-convention" ([39f4456](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/commit/39f4456cd39e78f09b188d3960c0baa893792b67))
|
|
18
|
+
|
|
19
|
+
## [1.3.18](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/compare/v1.3.17...v1.3.18) (2022-04-09)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Bug Fixes
|
|
23
|
+
|
|
24
|
+
* tweak naming-convention" ([9f12b8a](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/commit/9f12b8a3641217c8eb037993fbf41daeb381fa82))
|
|
25
|
+
|
|
4
26
|
## [1.3.17](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/compare/v1.3.16...v1.3.17) (2022-04-05)
|
|
5
27
|
|
|
6
28
|
|
package/dist/modern.cjs
CHANGED
|
@@ -413,12 +413,7 @@ const rules$2 = {
|
|
|
413
413
|
"no-negated-condition": "off",
|
|
414
414
|
"no-nested-ternary": "off",
|
|
415
415
|
"no-new-object": "error",
|
|
416
|
-
"no-plusplus":
|
|
417
|
-
"error",
|
|
418
|
-
{
|
|
419
|
-
allowForLoopAfterthoughts: true,
|
|
420
|
-
},
|
|
421
|
-
],
|
|
416
|
+
"no-plusplus": "off",
|
|
422
417
|
"no-restricted-syntax": [
|
|
423
418
|
"error",
|
|
424
419
|
{
|
|
@@ -976,11 +971,13 @@ const settings$2 = {
|
|
|
976
971
|
plugins: ["promise"],
|
|
977
972
|
extends: ["plugin:promise/recommended"],
|
|
978
973
|
rules: {
|
|
974
|
+
"promise/always-return": "off",
|
|
979
975
|
"promise/avoid-new": "warn",
|
|
976
|
+
"promise/catch-or-return": "off",
|
|
980
977
|
"promise/no-nesting": "error",
|
|
981
978
|
"promise/no-promise-in-callback": "error",
|
|
982
979
|
"promise/no-return-in-finally": "error",
|
|
983
|
-
"promise/prefer-await-to-callbacks": "
|
|
980
|
+
"promise/prefer-await-to-callbacks": "off",
|
|
984
981
|
"promise/prefer-await-to-then": "off",
|
|
985
982
|
"promise/valid-params": "error",
|
|
986
983
|
},
|
package/dist/modern.mjs
CHANGED
|
@@ -411,12 +411,7 @@ const rules$2 = {
|
|
|
411
411
|
"no-negated-condition": "off",
|
|
412
412
|
"no-nested-ternary": "off",
|
|
413
413
|
"no-new-object": "error",
|
|
414
|
-
"no-plusplus":
|
|
415
|
-
"error",
|
|
416
|
-
{
|
|
417
|
-
allowForLoopAfterthoughts: true,
|
|
418
|
-
},
|
|
419
|
-
],
|
|
414
|
+
"no-plusplus": "off",
|
|
420
415
|
"no-restricted-syntax": [
|
|
421
416
|
"error",
|
|
422
417
|
{
|
|
@@ -974,11 +969,13 @@ const settings$2 = {
|
|
|
974
969
|
plugins: ["promise"],
|
|
975
970
|
extends: ["plugin:promise/recommended"],
|
|
976
971
|
rules: {
|
|
972
|
+
"promise/always-return": "off",
|
|
977
973
|
"promise/avoid-new": "warn",
|
|
974
|
+
"promise/catch-or-return": "off",
|
|
978
975
|
"promise/no-nesting": "error",
|
|
979
976
|
"promise/no-promise-in-callback": "error",
|
|
980
977
|
"promise/no-return-in-finally": "error",
|
|
981
|
-
"promise/prefer-await-to-callbacks": "
|
|
978
|
+
"promise/prefer-await-to-callbacks": "off",
|
|
982
979
|
"promise/prefer-await-to-then": "off",
|
|
983
980
|
"promise/valid-params": "error",
|
|
984
981
|
},
|
package/dist/typescript.cjs
CHANGED
|
@@ -68,20 +68,28 @@ const settings = {
|
|
|
68
68
|
{
|
|
69
69
|
selector: "default",
|
|
70
70
|
format: ["camelCase", "PascalCase"],
|
|
71
|
+
leadingUnderscore: "allow",
|
|
72
|
+
trailingUnderscore: "forbid",
|
|
71
73
|
},
|
|
72
74
|
{
|
|
73
75
|
selector: "variableLike",
|
|
74
76
|
format: ["camelCase", "PascalCase"],
|
|
77
|
+
leadingUnderscore: "allow",
|
|
78
|
+
trailingUnderscore: "forbid",
|
|
75
79
|
},
|
|
76
80
|
{
|
|
77
81
|
selector: "variable",
|
|
78
82
|
format: ["camelCase", "PascalCase", "UPPER_CASE"],
|
|
79
83
|
prefix: ["m_", "M_"],
|
|
84
|
+
leadingUnderscore: "allow",
|
|
85
|
+
trailingUnderscore: "forbid",
|
|
80
86
|
},
|
|
81
87
|
{
|
|
82
88
|
selector: "variable",
|
|
83
89
|
format: ["camelCase", "PascalCase", "UPPER_CASE"],
|
|
84
90
|
modifiers: ["const"],
|
|
91
|
+
leadingUnderscore: "allow",
|
|
92
|
+
trailingUnderscore: "forbid",
|
|
85
93
|
},
|
|
86
94
|
{
|
|
87
95
|
selector: "variable",
|
|
@@ -92,23 +100,33 @@ const settings = {
|
|
|
92
100
|
selector: "memberLike",
|
|
93
101
|
format: ["camelCase", "PascalCase", "UPPER_CASE"],
|
|
94
102
|
prefix: ["m_", "M_"],
|
|
103
|
+
leadingUnderscore: "allow",
|
|
104
|
+
trailingUnderscore: "forbid",
|
|
95
105
|
},
|
|
96
106
|
{
|
|
97
107
|
selector: "memberLike",
|
|
98
108
|
format: ["camelCase", "PascalCase", "UPPER_CASE"],
|
|
99
109
|
modifiers: ["readonly"],
|
|
110
|
+
leadingUnderscore: "allow",
|
|
111
|
+
trailingUnderscore: "forbid",
|
|
100
112
|
},
|
|
101
113
|
{
|
|
102
114
|
selector: ["classMethod", "typeMethod", "typeProperty"],
|
|
103
115
|
format: ["camelCase", "PascalCase", "UPPER_CASE"],
|
|
116
|
+
leadingUnderscore: "allow",
|
|
117
|
+
trailingUnderscore: "forbid",
|
|
104
118
|
},
|
|
105
119
|
{
|
|
106
120
|
selector: "enumMember",
|
|
107
|
-
format: ["UPPER_CASE"],
|
|
121
|
+
format: ["PascalCase", "UPPER_CASE"],
|
|
122
|
+
leadingUnderscore: "allow",
|
|
123
|
+
trailingUnderscore: "forbid",
|
|
108
124
|
},
|
|
109
125
|
{
|
|
110
126
|
selector: "typeLike",
|
|
111
127
|
format: ["PascalCase"],
|
|
128
|
+
leadingUnderscore: "allow",
|
|
129
|
+
trailingUnderscore: "forbid",
|
|
112
130
|
},
|
|
113
131
|
{
|
|
114
132
|
selector: ["objectLiteralProperty", "objectLiteralMethod"],
|
package/dist/typescript.mjs
CHANGED
|
@@ -66,20 +66,28 @@ const settings = {
|
|
|
66
66
|
{
|
|
67
67
|
selector: "default",
|
|
68
68
|
format: ["camelCase", "PascalCase"],
|
|
69
|
+
leadingUnderscore: "allow",
|
|
70
|
+
trailingUnderscore: "forbid",
|
|
69
71
|
},
|
|
70
72
|
{
|
|
71
73
|
selector: "variableLike",
|
|
72
74
|
format: ["camelCase", "PascalCase"],
|
|
75
|
+
leadingUnderscore: "allow",
|
|
76
|
+
trailingUnderscore: "forbid",
|
|
73
77
|
},
|
|
74
78
|
{
|
|
75
79
|
selector: "variable",
|
|
76
80
|
format: ["camelCase", "PascalCase", "UPPER_CASE"],
|
|
77
81
|
prefix: ["m_", "M_"],
|
|
82
|
+
leadingUnderscore: "allow",
|
|
83
|
+
trailingUnderscore: "forbid",
|
|
78
84
|
},
|
|
79
85
|
{
|
|
80
86
|
selector: "variable",
|
|
81
87
|
format: ["camelCase", "PascalCase", "UPPER_CASE"],
|
|
82
88
|
modifiers: ["const"],
|
|
89
|
+
leadingUnderscore: "allow",
|
|
90
|
+
trailingUnderscore: "forbid",
|
|
83
91
|
},
|
|
84
92
|
{
|
|
85
93
|
selector: "variable",
|
|
@@ -90,23 +98,33 @@ const settings = {
|
|
|
90
98
|
selector: "memberLike",
|
|
91
99
|
format: ["camelCase", "PascalCase", "UPPER_CASE"],
|
|
92
100
|
prefix: ["m_", "M_"],
|
|
101
|
+
leadingUnderscore: "allow",
|
|
102
|
+
trailingUnderscore: "forbid",
|
|
93
103
|
},
|
|
94
104
|
{
|
|
95
105
|
selector: "memberLike",
|
|
96
106
|
format: ["camelCase", "PascalCase", "UPPER_CASE"],
|
|
97
107
|
modifiers: ["readonly"],
|
|
108
|
+
leadingUnderscore: "allow",
|
|
109
|
+
trailingUnderscore: "forbid",
|
|
98
110
|
},
|
|
99
111
|
{
|
|
100
112
|
selector: ["classMethod", "typeMethod", "typeProperty"],
|
|
101
113
|
format: ["camelCase", "PascalCase", "UPPER_CASE"],
|
|
114
|
+
leadingUnderscore: "allow",
|
|
115
|
+
trailingUnderscore: "forbid",
|
|
102
116
|
},
|
|
103
117
|
{
|
|
104
118
|
selector: "enumMember",
|
|
105
|
-
format: ["UPPER_CASE"],
|
|
119
|
+
format: ["PascalCase", "UPPER_CASE"],
|
|
120
|
+
leadingUnderscore: "allow",
|
|
121
|
+
trailingUnderscore: "forbid",
|
|
106
122
|
},
|
|
107
123
|
{
|
|
108
124
|
selector: "typeLike",
|
|
109
125
|
format: ["PascalCase"],
|
|
126
|
+
leadingUnderscore: "allow",
|
|
127
|
+
trailingUnderscore: "forbid",
|
|
110
128
|
},
|
|
111
129
|
{
|
|
112
130
|
selector: ["objectLiteralProperty", "objectLiteralMethod"],
|