Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
eslint-config-protect-me-from-my-stupidity
Advanced tools
An opinionated ESLint configuration that shall protect you from your stupidity when writing JavaScript.
An opinionated configuration for ESLint that shall protect you from your stupidity when writing JavaScript.
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 | Usage |
---|---|
and/from-writing-stupid-vue-components | Introduces additional rules for Vue components. At the moment any Vue 3.0 rules that involve deprecating Vue 2.0 feature are turned off. |
and/from-writing-stupid-node-applications | Introduces additional rules for Node applications. |
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. |
but/let-my-node-applications-look-stupid | Stops all code style checks for Node applications. |
This project configures ESLint to parse JavaScript with the following in mind by default:
Note: This project makes no other assumption about your JavaScript environment, you must configure that yourself. See https://eslint.org/docs/user-guide/configuring#specifying-environments.
This project currently includes configuration for the following plugins:
| Plugin | Required dependency |
| ---------------------------------------------------------------------------- ----------- | --------------------------------------------- |
| eslint-plugin-import | Yes |
| eslint-plugin-promise | Yes |
| @stylistic/eslint-plugin-js | Yes |
| eslint-plugin-vue | Only when using vue
related configuration. |
| eslint-plugin-node | Only when using node
related configuration. |
Note: You will have to install the above plugins yourself as they are peer dependencies.
This project follows a semantic versioning policy that aims not to surprise you.
Note: It is advised that you only take patch versions using tilde ranges.
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 --save-dev
Finally, if you get offended by my use of the word stupid. It is just a joke.
10.0.0 - 2024-01-08
vue/no-unused-emit-declarations
rule on, ensuring that all emit declarations are used.vue/v-if-else-key
rule on, ensuring that repeated components rendered within the same conditional scope have a key assigned to them.@stylistic/eslint-plugin-js
is now a required peer dependency. This now powers the stylistic rules previously defined by eslint
.max-depth
rule configuration, increasing the maximum allowed depth to 4
.eslint
version to 8.56.0
.eslint-plugin-import
version to 2.29.1
.eslint-plugin-vue
version to 9.19.2
.FAQs
An opinionated ESLint configuration that shall protect you from your stupidity when writing JavaScript.
The npm package eslint-config-protect-me-from-my-stupidity receives a total of 52 weekly downloads. As such, eslint-config-protect-me-from-my-stupidity popularity was classified as not popular.
We found that eslint-config-protect-me-from-my-stupidity demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.