0.3.2 • Published 5 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:ruleCreate sandbox
Sandbox means environment that running ESLint as actual.
yarn gen:sandboxThen, you can run ESLint.
yarn sandboxRelease
This package use shipjs.
- You should add file
.envat project's root. Then, add token of your GitHub's.
GITHUB_TOKEN=token_is_here- Run
yarn releaseand 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