THIS REPOSITORY IS NO LONGER MAINTAINED
Use https://github.com/fishbrain/eslint-config-fishbrain instead.
Rule set based on Airbnb JavaScript style guide with some extra rules for Jest tests from eslint-plugin-jest.
npm install -D eslint-config-fishbrain-base
In .eslintrc
(or whatver your ESLint config file is)
{
"extends": ["eslint-config-fishbrain-base"]
}
In addition to setting target, module, moduleResolution etc, these strictness settings are recommended.
{
"compilerOptions": {
"strict": true,
"noFallthroughCasesInSwitch": true,
"noImplicitReturns": true,
"noUnusedLocals": true,
"noUnusedParameters": true
}
}
Add this to package.json
to get correct config for prettier
"prettier": {
"singleQuote": true,
"trailingComma": "all"
}
To enable ESLint in VS Code add the following to your settings.json
:
{
"tslint.enable": false,
"eslint.validate": [
"javascript",
"typescript",
]
}
For ESLint rules for React based web projects, see: https://github.com/fishbrain/eslint-config-fishbrain
To trigger a release, merge changes into the master
branch with an updated package version. This
will trigger a Github Actions workflow to deploy a release.