@raing3/eslint-config
v0.4.1
Published
Preferred linting rules for my JS packages
Readme
ESLint config

Shareable ESLint config for my JS projects.
Install
Run the following in your project directory:
npm install eslint @raing3/eslint-config --save-devUsage
Step 1. Add ESLint rules for the language being used.
Javascript:
Add the following to your ESLint config file:
{
"extends": ["@raing3/eslint-config"]
}TypeScript:
Install the TypeScript ESLint plugin:
npm install @typescript-eslint/eslint-plugin @typescript-eslint/parser --save-devAdd the following to your ESLint config file:
{
"extends": ["@raing3/eslint-config/typescript"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"projec,t": ["./tsconfig.json"]
}
}Step 2. Add ESLint rules for the frameworks/libraries being used.
React:
Install the React ESLint plugin;
npm install eslint-plugin-react --save-devAdd the following to your ESLint config file:
{
"extends": ["@raing3/eslint-config/react"],
"settings": {
"react": {
"version": "detect"
}
}
}Jest:
Install the Jest ESLint plugin:
npm install eslint-plugin-jest --save-devAdd the following to your ESLint config file:
{
"extends": ["@raing3/eslint-config/jest"],
"env": {
"jest": true
}
}