Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
eslint-config-protect-me-from-my-stupidity
Advanced tools
An opinionated ESLint configuration that shall protect you from your stupidity when writing JavaScript.
eslint-config-protect-me-from-my-stupidity
A very opinionated configuration for ESLint that shall protect you from your stupidity when writing JavaScript.
You can use this in your ESLint configuration file, like so:
import protectMeFromMyStupidity from 'eslint-config-protect-me-from-my-stupidity';
export default [
...protectMeFromMyStupidity()
];
The base configuration configures all core rules, as of 9.17.0
, and all the rules for the following plugins (which are peer dependencies):
Plugin | Minimum Version |
---|---|
eslint-plugin-promise | 7.2.1 |
eslint-plugin-import | 2.31.0 |
@stylistic/eslint-plugin-js | 2.12.1 |
ESLint is configured to parse code as the the latest version of ECMAScript and to treat all .js
, .mjs
and .jsx
files as ES modules and .cjs
files as CommonJS modules.
In addition to the base configuration you can use configuration extensions, these are available as seperate exports.
Name | Export | Required Plugins | Description |
---|---|---|---|
Node | and/from-writing-stupid-vue-components | eslint-plugin-vue@9.32.0 | Introduces additional rules for .vue component files. |
Web | and/from-writing-stupid-web-applications | - | Introduces additional rules for web code files. |
Vue | and/from-writing-stupid-node-applications | eslint-plugin-n@17.15.1 | Introduces additional rules for Node.js code files. |
Please Note: The plugins required by the configuration extensions are optional peer dependencies, so if you aren't using a configuration extension you don't need to install its required plugins.
Configuration extensions can be configured to use your own file matching patterns instead of the defaults, like so:
import andFromWritingStupidWebApplications from 'eslint-config-protect-me-from-my-stupidity/and/from-writing-stupid-web-applications';
export default [
...andFromWritingStupidWebApplications([
'src/ui/**/*.js'
])
];
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.
12.0.0 - 2025-01-07
and/from-writing-stupid-web-applications
) configuration extension.promise/prefer-catch
rule on in the base configuration.vue/slot-name-casing
rule on in the Vue configuration extension, enforcing slot names to be kebab-case.vue/restricted-component-names
rule off in the Vue configuration extension..jsx
files.eslint
version to 9.17.0
.eslint-plugin-promise
version to 7.2.1
.eslint-plugin-vue
version to 9.32.0
.eslint-plugin-n
version to 17.15.1
.@stylistic/eslint-plugin-js
version to 2.12.1
.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 200 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
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.