Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@mizdra/eslint-config-mizdra
Advanced tools
ESLint config for @mizdra
npm i -D @mizdra/eslint-config-mizdra eslint
module.exports = {
root: true,
extends: ['@mizdra/mizdra', '@mizdra/mizdra/+react', '@mizdra/mizdra/+prettier'],
parserOptions: { ecmaVersion: 2021 },
env: { es2021: true, node: true, browser: true, jest: true },
rules: {
// Write your favorite rules
},
overrides: [
// For TypeScript
{
files: ['*.ts', '*.tsx', '*.cts', '*.mts'],
extends: ['@mizdra/mizdra/+typescript', '@mizdra/mizdra/+prettier'],
rules: {
// Write your favorite rules for TypeScript
},
},
],
};
// @ts-check
import { FlatCompat } from '@eslint/eslintrc';
import js from '@eslint/js';
import globals from 'globals';
const __dirname = new URL('.', import.meta.url).pathname;
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all,
});
/** @type {import('eslint').Linter.FlatConfig[]} */
export default [
{ ignores: ['**/dist'] },
...compat.extends('@mizdra/mizdra', '@mizdra/mizdra/+react'),
{
languageOptions: {
ecmaVersion: 2021,
globals: { ...globals.node, ...globals.browser, ...globals.jest },
},
rules: {
// Write your favorite rules
},
},
...compat.config({
overrides: [
{
// For TypeScript
files: ['*.ts', '*.tsx', '*.cts', '*.mts'],
extends: ['@mizdra/mizdra/+typescript.js'],
rules: {
// Write your favorite rules for TypeScript
},
},
],
}),
...compat.extends('@mizdra/mizdra/+prettier'),
];
When eslint-config-mizdra
is installed the following packages are installed as its dependencies
for usability. The installed version is always the latest.
@typescript-eslint/eslint-plugin
@typescript-eslint/parser
eslint-config-prettier
eslint-plugin-import
eslint-plugin-react
eslint-plugin-react-hooks
Uninstall eslint-config-mizdra
and then reinstall it. It will then switch to the latest built-in 3rd-party packages.
npm un @mizdra/eslint-config-mizdra
npm i -D @mizdra/eslint-config-mizdra
Use the overrides
field for npm and pnpm, or the resolutions
field for yarn.
// package.json
{
"overrides": {
"@typescript-eslint/parser": "^4.0.0"
}
}
In npm and pnpm, you can also match the version written in dependencies
.
// package.json
{
"dependencies": {
"@typescript-eslint/parser": "^4.0.0"
},
"overrides": {
"@typescript-eslint/parser": "$@typescript-eslint/parser"
}
}
FAQs
ESLint config for @mizdra
The npm package @mizdra/eslint-config-mizdra receives a total of 277 weekly downloads. As such, @mizdra/eslint-config-mizdra popularity was classified as not popular.
We found that @mizdra/eslint-config-mizdra 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.