0.6.1 • Published 6 years ago
eslint-config-biq v0.6.1
eslint-config-biq
Settings for ESLint and Prettier
Installing
- Install everything needed by the config (or install just individual packages you need):
npx install-peerdeps --dev eslint-config-biq- Create a
.eslintrcfile in the root of your project's directory..eslintrcshould look like this:
{
"extends": [
"biq"
]
}Alternatively, yout can put it in package.json under the property "eslintConfig":.
- 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"