
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
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.21.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 | 4.2.0 |
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@10.0.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.16.2 | 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.
14.0.0 - 2025-03-07
vue/no-import-compiler-macros
rule on in the Vue configuration extension; disallowing the importing of compiler macros.vue/no-implicit-coercion
rule on in the Vue configuration extension matching the no-implicit-coercion
rule in the base configuration.eslint
version to 9.21.0
.@stylistic/eslint-plugin-js
version to 4.2.0
.eslint-plugin-vue
version to 10.0.0
.eslint-plugin-n
version to 17.16.2
.no-continue
rule off in the base configuration; allowing the use of the continue
statement.vue/no-v-for-template-key
, vue/no-v-model-argument
, vue/valid-model-definition
and vue/valid-v-bind-sync
rules from the Vue configuration extension as they are deprecated.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 58 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 1 open source maintainer 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.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.