@rambler-tech/eslint-config

0.13.1 • Public • Published

Shared ESLint config

Install

npm install -D eslint @rambler-tech/eslint-config

or

yarn add -D eslint @rambler-tech/eslint-config

Usage

Included base configs:

  • @rambler-tech/eslint-config - base JavaScript
  • @rambler-tech/eslint-config/semi - base with semicolons and trailing commas

Included special configs:

  • @rambler-tech/eslint-config/ts - TypeScript
  • @rambler-tech/eslint-config/react - React
  • @rambler-tech/eslint-config/next - Next.js

Example .eslintrc.json for React project:

{
  "extends": [
    "@rambler-tech/eslint-config",
    "@rambler-tech/eslint-config/react"
  ]
}

Example .eslintrc.json for TypeScript project:

{
  "extends": [
    "@rambler-tech/eslint-config",
    "@rambler-tech/eslint-config/ts"
  ]
}

Example .eslintrc.json for TypeScript React project:

{
  "extends": [
    "@rambler-tech/eslint-config",
    "@rambler-tech/eslint-config/react",
    "@rambler-tech/eslint-config/ts"
  ]
}

Example .eslintrc.json for TypeScript Next.js project:

{
  "extends": [
    "@rambler-tech/eslint-config",
    "@rambler-tech/eslint-config/next",
    "@rambler-tech/eslint-config/ts"
  ]
}

Note that the @rambler-tech/eslint-config/ts should be second to last in the list since it includes @typescript-eslint/parser

Readme

Keywords

none

Package Sidebar

Install

npm i @rambler-tech/eslint-config

Weekly Downloads

21

Version

0.13.1

License

MIT

Unpacked Size

33.2 kB

Total Files

10

Last publish

Collaborators

  • andrepolischuk
  • rambler-ui-bot