eslint-plugin-detect-haiku
v1.0.3
Published
俳句を禁止するプラグイン
Downloads
40
Readme
eslint-plugin-detect-haiku
俳句を禁止するプラグイン
これは クソアプリ Advent Calendar 2019の 19 日目の記事である、ビルド時に俳句を読めるプラグイン のために開発されたものです。
導入
eslint とプラグインの導入
$ yarn add -D eslint eslint-plugin-detect-haiku
設定ファイル(eslintrc など)を編集
module.exports = {
// 中略
plugins: ["detect-haiku"],
rules: {
"detect-haiku/forbid_haiku": 2
}
};
開発
モジュールインストール
$ yarn install
実行
$ yarn run start
公開前にドライラン
$ tar -tf $(npm pack)
npm に公開
$ npm publish