1.0.0 • Published 3 years ago

eslint-config-thrive v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Install

Peer Dependencies

yarn add eslint-plugin-unicorn --dev --exact

ESLint Configs

yarn add eslint-config-thrive --dev --exact

add .eslintConfig field to package.json

// ...
"eslintConfig": {
  "extends": "thrive"
},
"eslintIgnore": [
  "build",
  "coverage"
],
// ...

Configurations

This package includes 1 guaranteed file for shared rules.

🚧 There are legacy-* files being created for older configurations. They do not exist yet here as a stable export, beware.

This package also may contain experimental files that use rules or overrides considered experimental. These do NOT adhere to semantic versioning (SEMVER). They may be added to or removed at any point without warning and without considerations for regression.

React Applications

  • thrive/react
  • thrive/react-experimental (may or may not be available)

You NEED to also run yarn add eslint-config-react-app eslint-plugin-jsx-a11y --dev --exact

.editorconfig file in project root

root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
max_line_length = 120
trim_trailing_whitespace = true

[*.md]

[COMMIT_EDITMSG]
max_line_length = 0
trim_trailing_whitespace = false

[*.{yml,yaml}]
indent_size = 2

[docker-compose.yml]
indent_size = 4