@blueprintjs/eslint-plugin
Advanced tools
Comparing version 4.0.0 to 5.0.0
export * from "./no-deprecated-components"; | ||
export * from "./no-deprecated-core-components"; | ||
export * from "./no-deprecated-datetime-components"; | ||
export * from "./no-deprecated-datetime2-components"; | ||
export * from "./no-deprecated-select-components"; | ||
export * from "./no-deprecated-table-components"; |
@@ -10,4 +10,5 @@ "use strict"; | ||
tslib_1.__exportStar(require("./no-deprecated-datetime-components"), exports); | ||
tslib_1.__exportStar(require("./no-deprecated-datetime2-components"), exports); | ||
tslib_1.__exportStar(require("./no-deprecated-select-components"), exports); | ||
tslib_1.__exportStar(require("./no-deprecated-table-components"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -10,2 +10,3 @@ "use strict"; | ||
const no_deprecated_datetime_components_1 = require("./no-deprecated-datetime-components"); | ||
const no_deprecated_datetime2_components_1 = require("./no-deprecated-datetime2-components"); | ||
const no_deprecated_select_components_1 = require("./no-deprecated-select-components"); | ||
@@ -19,3 +20,9 @@ const no_deprecated_table_components_1 = require("./no-deprecated-table-components"); | ||
*/ | ||
exports.noDeprecatedComponentsRule = (0, createNoDeprecatedComponentsRule_1.createNoDeprecatedComponentsRule)("no-deprecated-components", ["@blueprintjs/core", "@blueprintjs/datetime", "@blueprintjs/select", "@blueprintjs/table"], Object.assign(Object.assign(Object.assign(Object.assign({}, no_deprecated_core_components_1.coreComponentsMigrationMapping), no_deprecated_datetime_components_1.datetimeComponentsMigrationMapping), no_deprecated_select_components_1.selectComponentsMigrationMapping), no_deprecated_table_components_1.tableComponentsMigrationMapping)); | ||
exports.noDeprecatedComponentsRule = (0, createNoDeprecatedComponentsRule_1.createNoDeprecatedComponentsRule)("no-deprecated-components", [ | ||
"@blueprintjs/core", | ||
"@blueprintjs/datetime", | ||
"@blueprintjs/datetime2", | ||
"@blueprintjs/select", | ||
"@blueprintjs/table", | ||
], Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, no_deprecated_core_components_1.coreComponentsMigrationMapping), no_deprecated_datetime_components_1.datetimeComponentsMigrationMapping), no_deprecated_datetime2_components_1.datetime2ComponentsMigrationMapping), no_deprecated_select_components_1.selectComponentsMigrationMapping), no_deprecated_table_components_1.tableComponentsMigrationMapping)); | ||
//# sourceMappingURL=no-deprecated-components.js.map |
import { TSESLint } from "@typescript-eslint/utils"; | ||
export declare const datetimeComponentsMigrationMapping: {}; | ||
export declare const datetimeComponentsMigrationMapping: { | ||
DateInput: string; | ||
DatePicker: string; | ||
DateRangeInput: string; | ||
DateRangePicker: string; | ||
}; | ||
/** | ||
@@ -4,0 +9,0 @@ * This rule is similar to "@blueprintjs/no-deprecated-components", but it only checks for usage |
@@ -9,4 +9,6 @@ "use strict"; | ||
exports.datetimeComponentsMigrationMapping = { | ||
// TODO(@adidahiya): Blueprint v6 | ||
// DateTimePicker: "DatePicker", | ||
DateInput: "DateInput3", | ||
DatePicker: "DatePicker3", | ||
DateRangeInput: "DateRangeInput3", | ||
DateRangePicker: "DateRangePicker3", | ||
}; | ||
@@ -13,0 +15,0 @@ /** |
{ | ||
"name": "@blueprintjs/eslint-plugin", | ||
"version": "4.0.0", | ||
"version": "5.0.0", | ||
"description": "ESLint rules for use with @blueprintjs packages", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -8,3 +8,4 @@ /* | ||
export * from "./no-deprecated-datetime-components"; | ||
export * from "./no-deprecated-datetime2-components"; | ||
export * from "./no-deprecated-select-components"; | ||
export * from "./no-deprecated-table-components"; |
@@ -10,2 +10,3 @@ /* | ||
import { datetimeComponentsMigrationMapping } from "./no-deprecated-datetime-components"; | ||
import { datetime2ComponentsMigrationMapping } from "./no-deprecated-datetime2-components"; | ||
import { selectComponentsMigrationMapping } from "./no-deprecated-select-components"; | ||
@@ -22,6 +23,13 @@ import { tableComponentsMigrationMapping } from "./no-deprecated-table-components"; | ||
"no-deprecated-components", | ||
["@blueprintjs/core", "@blueprintjs/datetime", "@blueprintjs/select", "@blueprintjs/table"], | ||
[ | ||
"@blueprintjs/core", | ||
"@blueprintjs/datetime", | ||
"@blueprintjs/datetime2", | ||
"@blueprintjs/select", | ||
"@blueprintjs/table", | ||
], | ||
{ | ||
...coreComponentsMigrationMapping, | ||
...datetimeComponentsMigrationMapping, | ||
...datetime2ComponentsMigrationMapping, | ||
...selectComponentsMigrationMapping, | ||
@@ -28,0 +36,0 @@ ...tableComponentsMigrationMapping, |
@@ -10,4 +10,6 @@ /* | ||
export const datetimeComponentsMigrationMapping = { | ||
// TODO(@adidahiya): Blueprint v6 | ||
// DateTimePicker: "DatePicker", | ||
DateInput: "DateInput3", | ||
DatePicker: "DatePicker3", | ||
DateRangeInput: "DateRangeInput3", | ||
DateRangePicker: "DateRangePicker3", | ||
}; | ||
@@ -14,0 +16,0 @@ |
@@ -35,3 +35,3 @@ /* | ||
ruleTester.run("no-deprecated-core-components", noDeprecatedSelectComponentsRule, { | ||
ruleTester.run("no-deprecated-select-components", noDeprecatedSelectComponentsRule, { | ||
// N.B. most other deprecated components are tested by no-deprecated-components.test.ts, this suite just tests | ||
@@ -38,0 +38,0 @@ // for more specific violations which involve certain syntax |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
206809
95
3747