0.3.2 • Published 4 years ago

@hrbrain/eslint-plugin v0.3.2

Weekly downloads
97
License
Apache-2.0
Repository
github
Last release
4 years ago

ESLint plugin for HRBrain

npm version LICENSE Apache-2.0

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.

  1. You should add file .env at project's root. Then, add token of your GitHub's.
GITHUB_TOKEN=token_is_here
  1. Run yarn release and answer the some question from prompt.
  2. 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