
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
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 993 weekly downloads. As such, eslint-config-tamia popularity was classified as not 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.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.