0.0.0 • Published 2 years ago

eslint-plugin-killme v0.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

eslint-plugin-killme

관련 프로그램 설치

# 전역으로 설치되어 있는 경우 생략
npm install -g yo
npm install -g generator-eslint

mkdir eslint-plugin-killme && cd $_
yo eslint:plugin
# What is your name? killme
# What is the plugin ID? killme
# Type a short description of this plugin: killme
# Does this plugin contain custom ESLint rules? Y
# Does this plugins contain one or more processors? N

yo eslint:rule
# What is your name? killme
# Where will this rule the published? ESLint Plugin
# What is the rul ID? no-new-date
# Type a short description of this rule: killme
# Type a short example of the code that will fail: killme

rule 작성

lib/rules/no-new-rule.js

rule 테스트 작성

test/lib/rules/no-new-rule.js

배포

# NPM 계정 생성
# https://www.npmjs.com 가서 계정 생성
# 
npm publish

killme

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-killme:

npm install eslint-plugin-killme --save-dev

Usage

Add killme to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "killme"
    ]
}

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

{
    "rules": {
        "killme/rule-name": 2
    }
}

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.

0.0.0

2 years ago