@d-kuehn/eslint-config 5.7.0 → 5.8.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 +15 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -69,7 +69,9 @@ var GLOB_STORYBOOK = "**/*.stories.{ts,tsx,js,jsx,mjs,cjs}";
|
|
|
69
69
|
var GLOB_HTML = "**/*.htm?(l)";
|
|
70
70
|
var GLOBS_TESTS = [
|
|
71
71
|
`**/*.spec.${GLOB_SRC_EXT}`,
|
|
72
|
+
`**/*.spec-d.${GLOB_SRC_EXT}`,
|
|
72
73
|
`**/*.test.${GLOB_SRC_EXT}`,
|
|
74
|
+
`**/*.test-d.${GLOB_SRC_EXT}`,
|
|
73
75
|
`**/*.bench.${GLOB_SRC_EXT}`,
|
|
74
76
|
`**/*.benchmark.${GLOB_SRC_EXT}`
|
|
75
77
|
];
|
|
@@ -837,6 +839,19 @@ var typescript = async (options = {}) => {
|
|
|
837
839
|
"@typescript-eslint/no-unsafe-member-access": "off",
|
|
838
840
|
"@typescript-eslint/no-unsafe-return": "off",
|
|
839
841
|
"@typescript-eslint/no-unused-expressions": ["error", { allowTernary: true }],
|
|
842
|
+
"@typescript-eslint/no-use-before-define": [
|
|
843
|
+
"error",
|
|
844
|
+
{
|
|
845
|
+
allowNamedExports: false,
|
|
846
|
+
classes: true,
|
|
847
|
+
enums: true,
|
|
848
|
+
functions: true,
|
|
849
|
+
ignoreTypeReferences: true,
|
|
850
|
+
// ref: https://github.com/typescript-eslint/typescript-eslint/issues/1262#issuecomment-558496933
|
|
851
|
+
typedefs: false,
|
|
852
|
+
variables: true
|
|
853
|
+
}
|
|
854
|
+
],
|
|
840
855
|
...options?.rules && options.rules
|
|
841
856
|
}
|
|
842
857
|
}
|