@ankhorage/devtools 1.3.2 → 1.3.4
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.
|
@@ -53,7 +53,7 @@ export const defaultRestrictedImports = [
|
|
|
53
53
|
export function createConfig(options) {
|
|
54
54
|
const normalized = normalizeOptions(options);
|
|
55
55
|
const profile = resolveEslintProfile(options);
|
|
56
|
-
return tseslint.config({ ignores: [...defaultIgnores, ...normalized.additionalIgnores] }, js.configs.recommended, ...createTypeCheckedConfigs(normalized), createBaseConfig(normalized), ...createProfileConfigs(profile, normalized.files), ...normalized.overrides, ...(normalized.includePrettier ? [prettierConfig] : []));
|
|
56
|
+
return tseslint.config({ ignores: [...defaultIgnores, ...normalized.additionalIgnores] }, { ...js.configs.recommended, files: normalized.files }, ...createTypeCheckedConfigs(normalized), createBaseConfig(normalized), ...createProfileConfigs(profile, normalized.files), ...normalized.overrides, ...(normalized.includePrettier ? [prettierConfig] : []));
|
|
57
57
|
}
|
|
58
58
|
function normalizeOptions(options) {
|
|
59
59
|
return {
|
|
@@ -103,6 +103,7 @@ function createBaseConfig(options) {
|
|
|
103
103
|
}
|
|
104
104
|
function createTypeScriptRules() {
|
|
105
105
|
return {
|
|
106
|
+
'no-unused-vars': 'off',
|
|
106
107
|
'@typescript-eslint/no-non-null-assertion': 'error',
|
|
107
108
|
'@typescript-eslint/prefer-readonly': 'error',
|
|
108
109
|
'@typescript-eslint/prefer-optional-chain': 'error',
|
package/package.json
CHANGED