@typescript-eslint/eslint-plugin
Advanced tools
Comparing version
@@ -8,5 +8,5 @@ /** | ||
files: string[]; | ||
rules: Record<string, "off" | "warn" | "error">; | ||
rules: Record<string, "error" | "off" | "warn">; | ||
}; | ||
export = config; | ||
//# sourceMappingURL=eslint-recommended-raw.d.ts.map |
"use strict"; | ||
// NOTE: this file is isolated to be shared across legacy and flat configs | ||
// it is exported via `./use-at-your-own-risk/eslint-recommended-raw` | ||
// and it has types manually defined in `./eslint-recommended-raw.d.ts` | ||
// NOTE: this file is isolated to be shared across legacy and flat configs. | ||
/** | ||
@@ -27,4 +25,4 @@ * This is a compatibility ruleset that: | ||
// TODO - remove this once we no longer support ESLint v8 | ||
'no-new-native-nonconstructor': 'off', // ts(7009) | ||
'no-new-symbol': 'off', // ts(7009) | ||
'no-new-native-nonconstructor': 'off', // ts(7009) | ||
'no-obj-calls': 'off', // ts(2349) | ||
@@ -38,8 +36,8 @@ 'no-redeclare': 'off', // ts(2451) | ||
'no-var': 'error', // ts transpiles let/const to var, so no need for vars any more | ||
'no-with': 'off', // ts(1101) & ts(2410) | ||
'prefer-const': 'error', // ts provides better types with const | ||
'prefer-rest-params': 'error', // ts provides better types with rest args over arguments | ||
'prefer-spread': 'error', // ts transpiles spread to apply, so no need for manual apply | ||
'no-with': 'off', // ts(1101) & ts(2410) | ||
}, | ||
}); | ||
module.exports = config; |
@@ -5,43 +5,3 @@ "use strict"; | ||
}; | ||
const all_1 = __importDefault(require("./configs/all")); | ||
const base_1 = __importDefault(require("./configs/base")); | ||
const disable_type_checked_1 = __importDefault(require("./configs/disable-type-checked")); | ||
const eslint_recommended_1 = __importDefault(require("./configs/eslint-recommended")); | ||
const recommended_1 = __importDefault(require("./configs/recommended")); | ||
const recommended_type_checked_1 = __importDefault(require("./configs/recommended-type-checked")); | ||
const recommended_type_checked_only_1 = __importDefault(require("./configs/recommended-type-checked-only")); | ||
const strict_1 = __importDefault(require("./configs/strict")); | ||
const strict_type_checked_1 = __importDefault(require("./configs/strict-type-checked")); | ||
const strict_type_checked_only_1 = __importDefault(require("./configs/strict-type-checked-only")); | ||
const stylistic_1 = __importDefault(require("./configs/stylistic")); | ||
const stylistic_type_checked_1 = __importDefault(require("./configs/stylistic-type-checked")); | ||
const stylistic_type_checked_only_1 = __importDefault(require("./configs/stylistic-type-checked-only")); | ||
const rules_1 = __importDefault(require("./rules")); | ||
// note - cannot migrate this to an import statement because it will make TSC copy the package.json to the dist folder | ||
const { name, version } = require('../package.json'); | ||
const configs = { | ||
all: all_1.default, | ||
base: base_1.default, | ||
'disable-type-checked': disable_type_checked_1.default, | ||
'eslint-recommended': eslint_recommended_1.default, | ||
recommended: recommended_1.default, | ||
/** @deprecated - please use "recommended-type-checked" instead. */ | ||
'recommended-requiring-type-checking': recommended_type_checked_1.default, | ||
'recommended-type-checked': recommended_type_checked_1.default, | ||
'recommended-type-checked-only': recommended_type_checked_only_1.default, | ||
strict: strict_1.default, | ||
'strict-type-checked': strict_type_checked_1.default, | ||
'strict-type-checked-only': strict_type_checked_only_1.default, | ||
stylistic: stylistic_1.default, | ||
'stylistic-type-checked': stylistic_type_checked_1.default, | ||
'stylistic-type-checked-only': stylistic_type_checked_only_1.default, | ||
}; | ||
const meta = { | ||
name, | ||
version, | ||
}; | ||
module.exports = { | ||
configs, | ||
meta, | ||
rules: rules_1.default, | ||
}; | ||
const raw_plugin_1 = __importDefault(require("./raw-plugin")); | ||
module.exports = raw_plugin_1.default.plugin; |
{ | ||
"name": "@typescript-eslint/eslint-plugin", | ||
"version": "8.29.2-alpha.2", | ||
"version": "8.29.2-alpha.3", | ||
"description": "TypeScript plugin for ESLint", | ||
@@ -9,4 +9,4 @@ "files": [ | ||
"docs", | ||
"eslint-recommended-raw.d.ts", | ||
"index.d.ts", | ||
"raw-plugin.d.ts", | ||
"rules.d.ts", | ||
@@ -28,5 +28,5 @@ "package.json", | ||
}, | ||
"./use-at-your-own-risk/eslint-recommended-raw": { | ||
"types": "./eslint-recommended-raw.d.ts", | ||
"default": "./dist/configs/eslint-recommended-raw.js" | ||
"./use-at-your-own-risk/raw-plugin": { | ||
"types": "./raw-plugin.d.ts", | ||
"default": "./dist/raw-plugin.js" | ||
} | ||
@@ -67,6 +67,6 @@ }, | ||
"@eslint-community/regexpp": "^4.10.0", | ||
"@typescript-eslint/scope-manager": "8.29.2-alpha.2", | ||
"@typescript-eslint/type-utils": "8.29.2-alpha.2", | ||
"@typescript-eslint/utils": "8.29.2-alpha.2", | ||
"@typescript-eslint/visitor-keys": "8.29.2-alpha.2", | ||
"@typescript-eslint/scope-manager": "8.29.2-alpha.3", | ||
"@typescript-eslint/type-utils": "8.29.2-alpha.3", | ||
"@typescript-eslint/utils": "8.29.2-alpha.3", | ||
"@typescript-eslint/visitor-keys": "8.29.2-alpha.3", | ||
"graphemer": "^1.4.0", | ||
@@ -82,4 +82,4 @@ "ignore": "^5.3.1", | ||
"@types/natural-compare": "*", | ||
"@typescript-eslint/rule-schema-to-typescript-types": "8.29.2-alpha.2", | ||
"@typescript-eslint/rule-tester": "8.29.2-alpha.2", | ||
"@typescript-eslint/rule-schema-to-typescript-types": "8.29.2-alpha.3", | ||
"@typescript-eslint/rule-tester": "8.29.2-alpha.3", | ||
"ajv": "^6.12.6", | ||
@@ -86,0 +86,0 @@ "cross-env": "^7.0.3", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
2492499
5.54%810
5.47%39101
5.17%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed