3.1.2 • Published 3 years ago
@stockvio/eslint-config v3.1.2
@stockvio/eslint-config
Prettier & Typescript ready config for ESLint, along with a few rules to match Stockvio's coding standards and style.
Usage
Be sure to have eslint, typescript and prettier installed first
Install the config:
$ yarn add -D @stockvio/eslint-config
# or
$ npm intall --save-dev @stockvio/eslint-config
Then, add @stockvio to the extends
array in your .eslintrc.*
file. Make sure to put it last, so it gets the chance to override other configs.
{
"extends": [
"some-other-config-you-use",
"@stockvio"
]
}
React
If using with ReactJS, you will need to install the React plugin as well:
$ yarn add -D eslint-plugin-react
Last, you will need to make a few additions your eslint config. It should look like this:
{
"extends": ["@stockvio"],
"env": {
"browser": true
},
"plugins": ["react"]
}