0.6.1 • Published 4 years ago

eslint-config-biq v0.6.1

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

eslint-config-biq

Settings for ESLint and Prettier

Installing

  1. Install everything needed by the config (or install just individual packages you need):
npx install-peerdeps --dev eslint-config-biq
  1. Create a .eslintrc file in the root of your project's directory. .eslintrc should look like this:
{
  "extends": [
    "biq"
  ]
}

Alternatively, yout can put it in package.json under the property "eslintConfig":.

  1. You can add two scripts to your package.json to lint and/or fix:
"scripts": {
  "lint": "eslint .",
  "lint:fix": "eslint . --fix"
},

Settings

If you'd like to overwrite eslint or prettier settings, you can add the rules in your .eslintrc file like this.

{
  "extends": [
    "biq"
  ],
  "rules": {
    "no-console": "error",
    "prettier/prettier": [
      "error",
      {
        "printWidth": 120
      }
    ]
  }
}

If you'd like to use eslint for React, use biq/react with biq like this.

{
  "extends": [
    "biq", "biq/react"
  ]
}

If you'd like to use eslint for React with Redux-Saga, use biq/redux-saga with biq like this.

{
  "extends": [
    "biq",
    ...
    "biq/redux-saga"
  ]
}

If you'd like to use eslint with TypeScript, use biq/typescript with biq like this.

{
  "extends": [
    "biq",
    ...
    "biq/typescript"
  ]
}

Prettier config is exposed at: "biq/prettier.config"

0.6.1

4 years ago

0.6.0

4 years ago

0.5.0

4 years ago

0.4.0

5 years ago

0.3.0

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.8

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago