@infernodesign/eslint-config 1.1.0 → 1.2.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/dist/index.js +7 -11
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1931,6 +1931,12 @@ async function typescript(options = {}) {
|
|
|
1931
1931
|
"no-implied-eval": "off",
|
|
1932
1932
|
"ts/await-thenable": "error",
|
|
1933
1933
|
"ts/dot-notation": ["error", { allowKeywords: true }],
|
|
1934
|
+
"ts/promise-function-async": "error",
|
|
1935
|
+
"ts/restrict-plus-operands": "error",
|
|
1936
|
+
"ts/restrict-template-expressions": "error",
|
|
1937
|
+
"ts/return-await": ["error", "in-try-catch"],
|
|
1938
|
+
"ts/switch-exhaustiveness-check": "error",
|
|
1939
|
+
"ts/unbound-method": "error",
|
|
1934
1940
|
...isStrict ? {
|
|
1935
1941
|
"ts/no-floating-promises": "error",
|
|
1936
1942
|
"ts/no-for-in-array": "error",
|
|
@@ -1946,17 +1952,7 @@ async function typescript(options = {}) {
|
|
|
1946
1952
|
allowNullableBoolean: true,
|
|
1947
1953
|
allowNullableObject: true
|
|
1948
1954
|
}]
|
|
1949
|
-
} : {}
|
|
1950
|
-
"ts/promise-function-async": "error",
|
|
1951
|
-
"ts/restrict-plus-operands": "error",
|
|
1952
|
-
"ts/restrict-template-expressions": "error",
|
|
1953
|
-
"ts/return-await": ["error", "in-try-catch"],
|
|
1954
|
-
"ts/strict-boolean-expressions": ["error", {
|
|
1955
|
-
allowNullableBoolean: true,
|
|
1956
|
-
allowNullableObject: true
|
|
1957
|
-
}],
|
|
1958
|
-
"ts/switch-exhaustiveness-check": "error",
|
|
1959
|
-
"ts/unbound-method": "error"
|
|
1955
|
+
} : {}
|
|
1960
1956
|
};
|
|
1961
1957
|
const [pluginTs, parserTs] = await Promise.all([interopDefault(import("@typescript-eslint/eslint-plugin")), interopDefault(import("@typescript-eslint/parser"))]);
|
|
1962
1958
|
function makeParser(typeAware, files$1, ignores$1) {
|
package/package.json
CHANGED