# eslint-plugin-demo **Repository Path**: sunyalong01/eslint-plugin-demo ## Basic Information - **Project Name**: eslint-plugin-demo - **Description**: 自定义一些eslint规则 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-11-22 - **Last Updated**: 2024-11-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # eslint-plugin-testlint testlint ## Installation You'll first need to install [ESLint](https://eslint.org/): ```sh npm i eslint --save-dev ``` Next, install `eslint-plugin-testlint`: ```sh npm install eslint-plugin-testlint --save-dev ``` ## Usage In your [configuration file](https://eslint.org/docs/latest/use/configure/configuration-files#configuration-file), import the plugin `eslint-plugin-testlint` and add `testlint` to the `plugins` key: ```js import testlint from "eslint-plugin-testlint"; export default [ { plugins: { testlint } } ]; ``` Then configure the rules you want to use under the `rules` key. ```js import testlint from "eslint-plugin-testlint"; export default [ { plugins: { testlint }, rules: { "testlint/rule-name": "warn" } } ]; ``` ## Configurations TODO: Run eslint-doc-generator to generate the configs list (or delete this section if no configs are offered). ## Rules TODO: Run eslint-doc-generator to generate the rules list.