eslint-config-rafflebox
v0.2.0
Published
## Installation
Readme
Rafflebox ESLint
Installation
yarn add --dev eslint-config-rafflebox
Add .eslintrc to project root
{
"extends": "eslint-config-rafflebox/config-backend"
}Add .prettierrc to project root
{
"printWidth": 120,
"singleQuote": true
}Add .editorconfig to project root
# http://editorconfig.org
root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
max_line_length = 120
[*.md]
max_line_length = 0
trim_trailing_whitespace = false
[COMMIT_EDITMSG]
max_line_length = 0Add scripts for linting and formatting to package.json
"scripts": {
"lint": "eslint .",
"format": "prettier --write \"**/*.{ts,js,json,md}\"",
"format:check": "prettier --debug-check \"**/*.{ts,js,json,md}\""
}Publishing
- Update the version in package.json
- Commit your changes
npm pack --dry-runto see what will be publishednpm publish- Create a release on GitHub. Use the version as the tag and release name. For example for version
1.0.0the tag and release name would bev1.0.0.
