@elementx-ai/eslint-config 6.1.0 → 6.3.0
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 +14 -0
- package/lib/common.js +11 -9
- package/lib/typescript.js +33 -7
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
This repository adheres to semantic versioning and follows the conventions of [keepachangelog.com](http://keepachangelog.com)
|
|
4
4
|
|
|
5
|
+
## [6.3.0](https://github.com/elementx-ai/eslint-config/compare/v6.2.0...v6.3.0) (2022-11-11)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* Reduce aggressiveness of typescript naming-convention ([#9](https://github.com/elementx-ai/eslint-config/issues/9)) ([62ee964](https://github.com/elementx-ai/eslint-config/commit/62ee964113e7b0b318e2725b4831e2cb4dc4a17f))
|
|
11
|
+
|
|
12
|
+
## [6.2.0](https://github.com/spark-64/eslint-config/compare/v6.1.0...v6.2.0) (2022-08-23)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* Limit scope of trailing comma rule ([#7](https://github.com/spark-64/eslint-config/issues/7)) ([6f6f0f0](https://github.com/spark-64/eslint-config/commit/6f6f0f072e5039a436a292d0c7ad23fde3a73716))
|
|
18
|
+
|
|
5
19
|
## [6.1.0](https://github.com/spark-64/eslint-config/compare/v6.0.1...v6.1.0) (2022-08-21)
|
|
6
20
|
|
|
7
21
|
|
package/lib/common.js
CHANGED
|
@@ -74,7 +74,16 @@ module.exports = {
|
|
|
74
74
|
asyncArrow: "always",
|
|
75
75
|
},
|
|
76
76
|
],
|
|
77
|
-
"comma-dangle": [
|
|
77
|
+
"comma-dangle": [
|
|
78
|
+
"error",
|
|
79
|
+
{
|
|
80
|
+
arrays: "always-multiline",
|
|
81
|
+
objects: "always-multiline",
|
|
82
|
+
imports: "always-multiline",
|
|
83
|
+
exports: "always-multiline",
|
|
84
|
+
functions: "never",
|
|
85
|
+
},
|
|
86
|
+
],
|
|
78
87
|
"prefer-arrow/prefer-arrow-functions": [
|
|
79
88
|
"error",
|
|
80
89
|
{
|
|
@@ -100,14 +109,7 @@ module.exports = {
|
|
|
100
109
|
"error",
|
|
101
110
|
{
|
|
102
111
|
"newlines-between": "always",
|
|
103
|
-
groups: [
|
|
104
|
-
"external",
|
|
105
|
-
"builtin",
|
|
106
|
-
"internal",
|
|
107
|
-
"sibling",
|
|
108
|
-
"parent",
|
|
109
|
-
"index",
|
|
110
|
-
],
|
|
112
|
+
groups: ["external", "builtin", "internal", "sibling", "parent", "index"],
|
|
111
113
|
},
|
|
112
114
|
],
|
|
113
115
|
},
|
package/lib/typescript.js
CHANGED
|
@@ -38,19 +38,49 @@ module.exports = {
|
|
|
38
38
|
leadingUnderscore: "allow",
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
|
-
selector: ["typeLike"],
|
|
41
|
+
selector: ["typeLike", "enumMember"],
|
|
42
42
|
format: ["PascalCase"],
|
|
43
43
|
},
|
|
44
|
+
{
|
|
45
|
+
selector: ["parameter"],
|
|
46
|
+
modifiers: ["destructured"],
|
|
47
|
+
format: null,
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
selector: ["property", "objectLiteralProperty"],
|
|
51
|
+
format: null,
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
selector: [
|
|
55
|
+
"classProperty",
|
|
56
|
+
"objectLiteralProperty",
|
|
57
|
+
"typeProperty",
|
|
58
|
+
"classMethod",
|
|
59
|
+
"objectLiteralMethod",
|
|
60
|
+
"typeMethod",
|
|
61
|
+
"accessor",
|
|
62
|
+
"enumMember"
|
|
63
|
+
],
|
|
64
|
+
modifiers: ["requiresQuotes"],
|
|
65
|
+
format: null,
|
|
66
|
+
},
|
|
44
67
|
{
|
|
45
68
|
selector: ["variable"],
|
|
46
69
|
modifiers: ["const"],
|
|
47
|
-
|
|
70
|
+
types: ["function"],
|
|
71
|
+
format: ["camelCase", "PascalCase"],
|
|
48
72
|
leadingUnderscore: "allow",
|
|
49
73
|
},
|
|
50
74
|
{
|
|
51
75
|
selector: ["variable"],
|
|
52
76
|
modifiers: ["destructured"],
|
|
53
|
-
format:
|
|
77
|
+
format: null,
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
selector: ["variable"],
|
|
81
|
+
modifiers: ["const"],
|
|
82
|
+
types: ["boolean", "string", "number", "array"],
|
|
83
|
+
format: ["camelCase", "UPPER_CASE"],
|
|
54
84
|
leadingUnderscore: "allow",
|
|
55
85
|
},
|
|
56
86
|
{
|
|
@@ -59,10 +89,6 @@ module.exports = {
|
|
|
59
89
|
format: ["camelCase"],
|
|
60
90
|
leadingUnderscore: "require",
|
|
61
91
|
},
|
|
62
|
-
{
|
|
63
|
-
selector: ["interface"],
|
|
64
|
-
format: ["PascalCase"],
|
|
65
|
-
},
|
|
66
92
|
],
|
|
67
93
|
},
|
|
68
94
|
};
|