@ms-cloudpack/eslint-plugin-deprecated
v0.1.4
Published
ESLint rule banning usage of deprecated APIs
Keywords
Readme
@ms-cloudpack/eslint-plugin-deprecated
Fork of eslint-plugin-etc's no-deprecated rule with updated dependencies.
This plugin requires type information (see setup instructions) and only works with flat config.
Rules
@ms-cloudpack/no-deprecated
Forbids the use of deprecated APIs.
Options:
ignoredSelectors(optional): Ignore deprecated APIs matching these selectors, using esquery syntax.
Configs
The plugin exports two configs:
base: Just define the pluginrecommended: Define the plugin and enable@ms-cloudpack/no-deprecatedwith empty options
Usage:
import defineConfig from 'eslint/config';
import cloudpack from '@ms-cloudpack/eslint-plugin-deprecated';
export default defineConfig(
// ... typed linting setup and other configs ...
// https://typescript-eslint.io/linting/typed-linting
cloudpack.configs.recommended, // or .base
);