@lincy/eslint-config 5.2.0 → 5.2.2
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/dist/index.cjs +15 -4
- package/dist/index.js +15 -4
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1130,16 +1130,18 @@ async function perfectionist(options = {}) {
|
|
|
1130
1130
|
"perfectionist/sort-imports": ["error", {
|
|
1131
1131
|
groups: [
|
|
1132
1132
|
"type",
|
|
1133
|
-
|
|
1133
|
+
"builtin-type",
|
|
1134
|
+
["index-type", "parent-type", "sibling-type", "internal-type"],
|
|
1134
1135
|
"builtin",
|
|
1135
1136
|
"external",
|
|
1136
|
-
|
|
1137
|
-
["
|
|
1137
|
+
"internal",
|
|
1138
|
+
["index", "parent", "sibling"],
|
|
1138
1139
|
"side-effect",
|
|
1139
1140
|
"object",
|
|
1140
1141
|
"unknown"
|
|
1141
1142
|
],
|
|
1142
|
-
|
|
1143
|
+
internalPattern: ["~/**", "@/**"],
|
|
1144
|
+
newlinesBetween: "ignore",
|
|
1143
1145
|
order: "asc",
|
|
1144
1146
|
type: "natural"
|
|
1145
1147
|
}],
|
|
@@ -1745,6 +1747,7 @@ async function typescript(options = {}) {
|
|
|
1745
1747
|
),
|
|
1746
1748
|
"no-dupe-class-members": "off",
|
|
1747
1749
|
"no-redeclare": "off",
|
|
1750
|
+
"no-unused-expressions": "off",
|
|
1748
1751
|
"no-use-before-define": "off",
|
|
1749
1752
|
"no-useless-constructor": "off",
|
|
1750
1753
|
"ts/ban-ts-comment": ["error", { "ts-ignore": "allow-with-description" }],
|
|
@@ -1764,6 +1767,14 @@ async function typescript(options = {}) {
|
|
|
1764
1767
|
"ts/no-non-null-assertion": "off",
|
|
1765
1768
|
"ts/no-redeclare": "error",
|
|
1766
1769
|
"ts/no-require-imports": "error",
|
|
1770
|
+
"ts/no-unused-expressions": ["error", {
|
|
1771
|
+
// allowShortCircuit 设置为 true 将允许你在表达式中使用短路计算(默认值:false)
|
|
1772
|
+
allowShortCircuit: true,
|
|
1773
|
+
// allowTaggedTemplates 设置为 true 将使你能够在表达式中使用标记模板字面量(默认值:false)
|
|
1774
|
+
allowTaggedTemplates: true,
|
|
1775
|
+
// allowTernary 设置为 true 将使你能够在表达式中使用三元运算符,类似于短路计算(默认值:false)
|
|
1776
|
+
allowTernary: true
|
|
1777
|
+
}],
|
|
1767
1778
|
"ts/no-unused-vars": "off",
|
|
1768
1779
|
"ts/no-use-before-define": ["error", { classes: false, functions: false, variables: true }],
|
|
1769
1780
|
"ts/no-useless-constructor": "off",
|
package/dist/index.js
CHANGED
|
@@ -1025,16 +1025,18 @@ async function perfectionist(options = {}) {
|
|
|
1025
1025
|
"perfectionist/sort-imports": ["error", {
|
|
1026
1026
|
groups: [
|
|
1027
1027
|
"type",
|
|
1028
|
-
|
|
1028
|
+
"builtin-type",
|
|
1029
|
+
["index-type", "parent-type", "sibling-type", "internal-type"],
|
|
1029
1030
|
"builtin",
|
|
1030
1031
|
"external",
|
|
1031
|
-
|
|
1032
|
-
["
|
|
1032
|
+
"internal",
|
|
1033
|
+
["index", "parent", "sibling"],
|
|
1033
1034
|
"side-effect",
|
|
1034
1035
|
"object",
|
|
1035
1036
|
"unknown"
|
|
1036
1037
|
],
|
|
1037
|
-
|
|
1038
|
+
internalPattern: ["~/**", "@/**"],
|
|
1039
|
+
newlinesBetween: "ignore",
|
|
1038
1040
|
order: "asc",
|
|
1039
1041
|
type: "natural"
|
|
1040
1042
|
}],
|
|
@@ -1640,6 +1642,7 @@ async function typescript(options = {}) {
|
|
|
1640
1642
|
),
|
|
1641
1643
|
"no-dupe-class-members": "off",
|
|
1642
1644
|
"no-redeclare": "off",
|
|
1645
|
+
"no-unused-expressions": "off",
|
|
1643
1646
|
"no-use-before-define": "off",
|
|
1644
1647
|
"no-useless-constructor": "off",
|
|
1645
1648
|
"ts/ban-ts-comment": ["error", { "ts-ignore": "allow-with-description" }],
|
|
@@ -1659,6 +1662,14 @@ async function typescript(options = {}) {
|
|
|
1659
1662
|
"ts/no-non-null-assertion": "off",
|
|
1660
1663
|
"ts/no-redeclare": "error",
|
|
1661
1664
|
"ts/no-require-imports": "error",
|
|
1665
|
+
"ts/no-unused-expressions": ["error", {
|
|
1666
|
+
// allowShortCircuit 设置为 true 将允许你在表达式中使用短路计算(默认值:false)
|
|
1667
|
+
allowShortCircuit: true,
|
|
1668
|
+
// allowTaggedTemplates 设置为 true 将使你能够在表达式中使用标记模板字面量(默认值:false)
|
|
1669
|
+
allowTaggedTemplates: true,
|
|
1670
|
+
// allowTernary 设置为 true 将使你能够在表达式中使用三元运算符,类似于短路计算(默认值:false)
|
|
1671
|
+
allowTernary: true
|
|
1672
|
+
}],
|
|
1662
1673
|
"ts/no-unused-vars": "off",
|
|
1663
1674
|
"ts/no-use-before-define": ["error", { classes: false, functions: false, variables: true }],
|
|
1664
1675
|
"ts/no-useless-constructor": "off",
|
package/package.json
CHANGED