eslint-config-hypothesis
v2.6.0
Published
A base ESLint configuration for Hypothesis projects
Downloads
3,151
Keywords
Readme
eslint-config-hypothesis
A shareable ESLint configuration for Hypothesis frontend projects.
To use it:
Add
eslint-config-hypothesis
as a dependency to your projectAdd the config's peer dependencies (see
peerDependencies
inpackage.json
) to your project's dependenciesAdd an ESLint config file to the repository which extends the "hypothesis" config. For example, a
.eslintrc
file with the following content:{ "extends": ["hypothesis"] }
Rule notes
- All rules from
eslint:recommended
are enabled - All rules are configured to produce errors and not warnings. This is based on the principle that an issue is either worth fixing or should be ignored, and warnings just add noise
- The config assumes that you are using mocha for tests and React/Preact for any interactive UI
- Code formatting rules that are obsoleted by automated formatters are disabled. You should use Prettier to auto-format code.