3.9.0 • Published 3 years ago

@zilahir/eslint-config v3.9.0

Weekly downloads
74
License
MIT
Repository
github
Last release
3 years ago

eslint-config

These are my personal configurations for ESLint. They are based on Airbnb's ESLint configurations.

Base configuration

  1. Install the required packages:
npx install-peerdeps --dev eslint-config-airbnb-base
npm i --save--dev @zilahir/eslint-config

# If you are using TypeScript, also run the following:
npm  i --save-dev @typescript-eslint/eslint-plugin @typescript-eslint/parser
  1. Create a .eslintrc.yml file with the following content in your project root:
root: true

extends:
  - "@zilahir/eslint-config/base"
  # OR
  - "@zialhir/eslint-config/base-typescript"

env:
  browser: true
  1. Add a linting script to your package.json file:
{
  "scripts": {
    "lint:js": "eslint --fix .",
    // OR
    "lint:ts": "eslint --ext .ts --fix ."
  }
}

React configuration

  1. Install the required packages:
npx install-peerdeps --dev eslint-config-airbnb
yarn add --dev --tilde @samuelmeuli/eslint-config

# If you are using TypeScript, also run the following:
yarn add --dev @typescript-eslint/eslint-plugin @typescript-eslint/parser
  1. Create a .eslintrc.yml file with the following content in your project root:
root: true

extends:
  - "@zilahir/eslint-config/react"
  # OR
  - "@zilahir/eslint-config/react-typescript"

env:
  browser: true
  node: true
  1. Add a linting script to your package.json file:
{
  "scripts": {
    "lint:js": "eslint --ext .js,.jsx --fix .",
    // OR
    "lint:ts": "eslint --ext .ts,.tsx --fix ."
  }
}
3.9.0

3 years ago

3.0.2

4 years ago

3.0.1

4 years ago

3.0.0

4 years ago

2.2.3

4 years ago

2.2.1

4 years ago

2.2.2

4 years ago

2.1.9

4 years ago

2.1.2

4 years ago

2.2.0

4 years ago

2.1.1

4 years ago

2.1.4

4 years ago

2.1.3

4 years ago

2.1.6

4 years ago

2.1.5

4 years ago

2.1.8

4 years ago

2.1.7

4 years ago

2.1.0

4 years ago

2.0.0

4 years ago

1.0.1

5 years ago

1.0.0

5 years ago