0.3.2 • Published 4 years ago
@hrbrain/eslint-plugin v0.3.2
ESLint plugin for HRBrain
Usage
npm install -D @hrbrain/eslint-plugin eslint
# or
yarn add -D @hrbrain/eslint-plugin eslint
// use plugin:
module.exports = {
parser: "@typescript-eslint/parser",
parserOptions: { sourceType: "module" },
plugins: ["@hrbrain"],
ecmaFeatures: {
jsx: true,
},
rules: {
"@hrbrain/no-multiple-named-imports": "warn",
// ...
},
};
// use config:
module.exports = {
extends: ["plugin:@hrbrain/recommended"],
};
Rules
Configs
Development
This projects use yarn
.😺
Create new rule
yarn gen:rule
Create sandbox
Sandbox means environment that running ESLint as actual.
yarn gen:sandbox
Then, you can run ESLint.
yarn sandbox
Release
This package use shipjs.
- You should add file
.env
at project's root. Then, add token of your GitHub's.
GITHUB_TOKEN=token_is_here
- Run
yarn release
and answer the some question from prompt. - Merge PR made by shipjs like this https://github.com/hrbrain/eslint-plugin/pull/24
Good!! This package is released by GitHub Actions!! Congrats!!
LICENSE (Apache-2.0)
See LICENSE