
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
@tokens-studio/configs
Advanced tools
The official configs for Tokens Studio, such as Prettier, ESLint, TSConfig etc.
This repository contains the default Tokens Studio configs for developing in TypeScript, whether that's Node or Browser:
@tokens-studio/configs/eslint
@tokens-studio/configs/prettier
@tokens-studio/configs/typescript
Important: ESLint v9 has quite a lot of breaking changes because it's using the "flat config", see migration guidelines.
You may get a warning for ESLint's React auto detect version setting, because React may not be installed. Since the React specific rules are only relevant when you are using this in a React project, don't worry about the warning if you're not.
We use ESLint v9 Flat config, which is the modern way to use, extend and share ESLint.
We are currently stuck with CJS config because of react and react-hooks plugins being CJS-only.
const studioConfig = require('@tokens-studio/configs/eslint');
module.exports = [
...studioConfig,
{
rules: {
// overrides here
},
},
];
There is almost no valid reason for extending our Prettier settings. Please discuss changing our settings with the rest of the team first.
If you absolutely must for some reason, make sure to provide a comment as to why:
import sharedConfig from '@tokens-studio/configs/prettier';
export default {
...sharedConfig,
// absolutely needed in this project because the JS parser does not support semicolons
semi: false,
};
Read more about Prettier's philosophy, in a nutshell its goal is to avoid pointless discussions about subjective taste about code formatting, which is why it's best to "just pick something" and go auto-pilot from there.
The reason we override the useTabs and singleQuotes is because it has objective benefits with regards to working with HTML attributes (uses double quotes) inside JS files (templating) and tabs has major a11y benefits and allows developers to standardize the tabs yet have their editors change the tab display width to their preference.
{
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "@tokens-studio/configs/typescript"
}
These configs rely on various dependencies e.g. the ESLint config contains plugins / rules configurations that rely on dependencies. They have been configured as peerDependencies, latest NPM should install those by default if missing, but allow to easily use compatible local installations if you have those.
It is recommended to explicitly add eslint
, prettier
and typescript
as devDependencies if you use their binaries in your package,
this is less "magic" than relying on the fact that NPM happens to install peerDependencies when they are missing.
0.2.4
FAQs
The official configs for Tokens Studio, such as Prettier, ESLint, TSConfig etc.
The npm package @tokens-studio/configs receives a total of 149 weekly downloads. As such, @tokens-studio/configs popularity was classified as not popular.
We found that @tokens-studio/configs demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 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
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.