Protect Me From My Stupidity
An opinionated configuration for ESLint that shall protect you from your stupidity when writing JavaScript.
Usage
Add this to your ESLint configuration.
{
"extends" : "protect-me-from-my-stupidity"
}
You can use configuration extensions to further cater for more specific scenarios, for example:
{
"extends" : [
"protect-me-from-my-stupidity",
"protect-me-from-my-stupidity/but/let-my-code-look-stupid"
]
}
Configuration extensions
Configuration | Usage |
---|
and/from-writing-stupid-vue-components | Introduces additional rules for Vue components. |
but/let-my-code-look-stupid | Stops all code style checks. |
but/let-me-write-stupid-tests | Loosens up some rules for writing test specifications. |
but/let-my-vue-components-look-stupid | Stops all code style checks for Vue components. |
Parser
This project configures ESLint to parse JavaScript with the following in mind:
- All features up to ECMAScript 2020 are enabled.
- JSX is enabled.
- Modules, as defined by ECMAScript 2015, are enabled.
- Global strict mode is enabled.
Note: This project makes no assumption about your JavaScript environment, you must configure that yourself. See https://eslint.org/docs/user-guide/configuring#specifying-environments.
Plugins
This project currently includes configuration for the following plugins:
Note: You will have to install the above plugins yourself as they are peer dependencies.
Semantic versioning
This project follows a semantic versioning policy that aims not to surprise you:
Patch release
- Updating an existing rule that will result in ESLint reporting fewer errors.
Minor release
- Updating an existing rule that will result in ESLint reporting different or more errors.
- Adding a new rule.
Major release
- Removing support for an old version of ESLint.
- Adding support for a new plugin.
- Removing support for an old version of an existing plugin.
- Adding a new configuration.
Note: It is advised that you only take patch versions using tilde ranges.
Getting started
This project is available through the Node Package Manager (NPM), so you can install it like so:
npm install eslint-config-protect-me-from-my-stupidity
Disclaimer
Finally, if you get offended by my use of the word stupid. It is just a joke.