@warungpintar/eslint-config
v0.1.1
Published
Warung Pintar ESLint config.
Downloads
2
Readme
@warungpintar/eslint-config
Warung Pintar ESLint config.
Installation
ESLint
Install eslint
and @warungpintar/eslint-config
using your favourite package manager:
# npm
npm install --save-dev eslint @warungpintar/eslint-config
# yarn
yarn add --dev eslint @warungpintar/eslint-config
Then, in your .eslintrc
file, extend the config.
{
"extends": ["@warungpintar/eslint-config"]
}
A note about Prettier
This ESLint config also includes the Prettier plugin for ESLint. To make this config work, make sure you also have Prettier configured by installing the
@warungpintar/prettier-config
package.
React/React Native
If you're working on a React project, extend @warungpintar/eslint-config/react
instead.
{
"extends": ["@warungpintar/eslint-config/react"]
}
Similar thing for React Native projects, but with @warungpintar/eslint-config/react-native
.
{
"extends": ["@warungpintar/eslint-config/react-native"]
}
Installing canary versions
To try out a bleeding-edge version of our configs, you can add the @canary
tag in your install script:
# npm
npm install --save-dev @warungpintar/eslint-config@canary
# yarn
yarn add --dev @warungpintar/eslint-config@canary
Note: The canary version is more unstable and includes config changes that might be breaking. Please take note when including it in your projects.