1.0.5 • Published 3 months ago

@hamster-bot/eslint-config v1.0.5

Weekly downloads
-
License
CC-BY-NC-4.0
Repository
github
Last release
3 months ago

eslint-config

Common ESLint configuration used in Hamster

Install

npm i --save-dev eslint @hamster-bot/eslint-config
# Or use yarn
yarn add --dev eslint @hamster-bot/eslint-config

If you are using TypeScript as well, you need to install typescript-eslint plugin and eslint-import-resolver-typescript.

npm i --save-dev @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint-import-resolver-typescript
# Or use yarn
yarn add --dev @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint-import-resolver-typescript

Usage

Create an eslint configuration file like .eslintrc.json and append the following:

{
  "extends": [
    "@hamster-bot"
  ]
}

TypeScript user should use @hamster-bot/eslint-config/typescript:

{
  "extends": [
    "@hamster-bot/eslint-config/typescript"
  ]
}

License

Creative Commons License

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.

1.0.5

3 months ago

1.0.4

3 months ago

1.0.3

3 months ago

1.0.1

2 years ago

1.0.0

2 years ago