1.1.1 • Published 4 years ago

@txava/eslint-config v1.1.1

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
4 years ago

Description

ESLint configuration for personal projects. It is mainly formed of airbnb + TypeScript + Mocha. Uses prettier for formatting only, ESLint won't report formatting errors as they are suppposed to be handled by prettier.

Meant to be used along with: @txava/prettier-config

Installation

yarn add -D @txava/eslint-config

Peer dependencies

{
    "eslint": ">= 6",
    "prettier": "~2.2.1"
}

Example

yarn add eslint@>=7 eslint-plugin-import@^2.22.1 eslint-plugin-mocha@^8.0.0 @txava/prettier-config@^1.0.1 prettier@~2.2.1 typescript@^4.1.3

Using the rule

As it depends on Prettier, you have to add @txava/prettier-config to the Prettier config file (cosmiconfig) like:

.prettierrc.json

"@txava/prettier-config"

Then tell eslint to use the rules by creating a .eslintrc with:

{
  "extends": [
    "@txava/eslint-config"
  ]
}