0.2.0 • Published 4 years ago

eslint-config-rafflebox v0.2.0

Weekly downloads
66
License
MIT
Repository
github
Last release
4 years ago

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 = 0

Add 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

  1. Update the version in package.json
  2. Commit your changes
  3. npm pack --dry-run to see what will be published
  4. npm publish
  5. Create a release on GitHub. Use the version as the tag and release name. For example for version 1.0.0 the tag and release name would be v1.0.0.