0.0.3 • Published 10 months ago

eslint-plugin-interface-prefix-control-svt v0.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
10 months ago

Eslint plugin for controlling the names of ts "interfaces"

Hello friend, if your project needs to track ts interface prefixes, this plugin is for you. There is no autofix in it, there is only a message about a violation of the spelling rule.

npm version

Rules:

eslint-plugin-interface-prefix-control-svt supports one rule:

  • enforcing prefixing

Enforcing prefixes

  • Interfaces should start with the letter I
ValidInvalid
interface IProps { className: "string"; }interface Props { className: "string"; }

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

install eslint-plugin-interface-prefix-control-svt:

npm i -D eslint-plugin-interface-prefix-control-svt

Usage

Add interface-prefix-control-svt to the plugins section of your .eslintrc/.eslintrc.js configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": ["interface-prefix-control-svt"]
}

Then configure the rules you want to use under the rules section.

{
    "rules": {
        "interface-prefix-control-svt/prefix-control": "warn" //or "error"
    }
}
0.0.3

10 months ago

0.0.2

10 months ago

0.0.1

10 months ago

0.0.0

10 months ago