
Research
/Security News
Popular Tinycolor npm Package Compromised in Supply Chain Attack Affecting 40+ Packages
Malicious update to @ctrl/tinycolor on npm is part of a supply-chain attack hitting 40+ packages across maintainers
eslint-config-tamia
Advanced tools
This package provides a shared ESLint config that I use on all my projects.
Should be used with Prettier, has no own code style rules.
We export three ESLint configurations:
Base set of rules for JavaScript. Includes:
npm install --save-dev eslint eslint-config-tamia
eslint.config.mjs
:
import tamia from 'eslint-config-tamia';
export default [...tamia];
Lints ES6+ and React. Includes:
npm install --save-dev eslint eslint-config-tamia
eslint.config.mjs
:
import tamiaReact from 'eslint-config-tamia/react';
export default [...tamiaReact];
Lints TypeScript. Includes:
npm install --save-dev eslint eslint-config-tamia
eslint.config.mjs
:
import tamiaTypeScript from 'eslint-config-tamia/typescript';
export default [...tamiaTypeScript];
Lints TypeScript and React. Includes:
npm install --save-dev eslint eslint-config-tamia eslint-plugin-jsx-a11y
eslint.config.mjs
:
import tamiaTypeScriptReact from 'eslint-config-tamia/typescript-react';
import jsxAccessibility from 'eslint-plugin-jsx-a11y';
export default [
...tamiaTypeScriptReact,
jsxAccessibility.flatConfigs.strict
];
const
, not var
.===
and !==
over ==
and !=
.Example:
function eatFood(food) {
if (food.length === 0) {
return ['No food'];
}
return food.map(dish => `No ${dish.toLowerCase()}`);
}
const food = ['Pizza', 'Burger', 'Coffee'];
console.log(eatFood(food));
See ESlint config docs for more information.
FAQs
Tâmia ESLint config
The npm package eslint-config-tamia receives a total of 1,113 weekly downloads. As such, eslint-config-tamia popularity was classified as popular.
We found that eslint-config-tamia 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
/Security News
Malicious update to @ctrl/tinycolor on npm is part of a supply-chain attack hitting 40+ packages across maintainers
Security News
pnpm's new minimumReleaseAge setting delays package updates to prevent supply chain attacks, with other tools like Taze and NCU following suit.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.