@lincy/eslint-config 5.2.0 → 5.2.1
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 +9 -0
- package/dist/index.js +9 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1745,6 +1745,7 @@ async function typescript(options = {}) {
|
|
|
1745
1745
|
),
|
|
1746
1746
|
"no-dupe-class-members": "off",
|
|
1747
1747
|
"no-redeclare": "off",
|
|
1748
|
+
"no-unused-expressions": "off",
|
|
1748
1749
|
"no-use-before-define": "off",
|
|
1749
1750
|
"no-useless-constructor": "off",
|
|
1750
1751
|
"ts/ban-ts-comment": ["error", { "ts-ignore": "allow-with-description" }],
|
|
@@ -1764,6 +1765,14 @@ async function typescript(options = {}) {
|
|
|
1764
1765
|
"ts/no-non-null-assertion": "off",
|
|
1765
1766
|
"ts/no-redeclare": "error",
|
|
1766
1767
|
"ts/no-require-imports": "error",
|
|
1768
|
+
"ts/no-unused-expressions": ["error", {
|
|
1769
|
+
// allowShortCircuit 设置为 true 将允许你在表达式中使用短路计算(默认值:false)
|
|
1770
|
+
allowShortCircuit: true,
|
|
1771
|
+
// allowTaggedTemplates 设置为 true 将使你能够在表达式中使用标记模板字面量(默认值:false)
|
|
1772
|
+
allowTaggedTemplates: true,
|
|
1773
|
+
// allowTernary 设置为 true 将使你能够在表达式中使用三元运算符,类似于短路计算(默认值:false)
|
|
1774
|
+
allowTernary: true
|
|
1775
|
+
}],
|
|
1767
1776
|
"ts/no-unused-vars": "off",
|
|
1768
1777
|
"ts/no-use-before-define": ["error", { classes: false, functions: false, variables: true }],
|
|
1769
1778
|
"ts/no-useless-constructor": "off",
|
package/dist/index.js
CHANGED
|
@@ -1640,6 +1640,7 @@ async function typescript(options = {}) {
|
|
|
1640
1640
|
),
|
|
1641
1641
|
"no-dupe-class-members": "off",
|
|
1642
1642
|
"no-redeclare": "off",
|
|
1643
|
+
"no-unused-expressions": "off",
|
|
1643
1644
|
"no-use-before-define": "off",
|
|
1644
1645
|
"no-useless-constructor": "off",
|
|
1645
1646
|
"ts/ban-ts-comment": ["error", { "ts-ignore": "allow-with-description" }],
|
|
@@ -1659,6 +1660,14 @@ async function typescript(options = {}) {
|
|
|
1659
1660
|
"ts/no-non-null-assertion": "off",
|
|
1660
1661
|
"ts/no-redeclare": "error",
|
|
1661
1662
|
"ts/no-require-imports": "error",
|
|
1663
|
+
"ts/no-unused-expressions": ["error", {
|
|
1664
|
+
// allowShortCircuit 设置为 true 将允许你在表达式中使用短路计算(默认值:false)
|
|
1665
|
+
allowShortCircuit: true,
|
|
1666
|
+
// allowTaggedTemplates 设置为 true 将使你能够在表达式中使用标记模板字面量(默认值:false)
|
|
1667
|
+
allowTaggedTemplates: true,
|
|
1668
|
+
// allowTernary 设置为 true 将使你能够在表达式中使用三元运算符,类似于短路计算(默认值:false)
|
|
1669
|
+
allowTernary: true
|
|
1670
|
+
}],
|
|
1662
1671
|
"ts/no-unused-vars": "off",
|
|
1663
1672
|
"ts/no-use-before-define": ["error", { classes: false, functions: false, variables: true }],
|
|
1664
1673
|
"ts/no-useless-constructor": "off",
|
package/package.json
CHANGED