
Security News
Cloudflare Introduces a Faster TypeScript Compiler Written in Rust
Cloudflare introduces tsrs, a Rust port of TypeScript’s compiler promising faster checks and lower memory use, with the TypeScript team’s help.
@m4ttheweric/eslint-plugin-unflag
Advanced tools
``` pnpm add -D @m4ttheweric/eslint-plugin-unflag ```
pnpm add -D @m4ttheweric/eslint-plugin-unflag
import tseslint from 'typescript-eslint';
import unflag from '@m4ttheweric/eslint-plugin-unflag';
export default tseslint.config({
files: ['src/**/*.{ts,tsx}'],
languageOptions: {
parser: tseslint.parser,
parserOptions: { ecmaFeatures: { jsx: true } },
},
plugins: { unflag },
rules: {
'unflag/no-raw-config-reads': ['error', {
restricted: [{ importSource: '../rawConfig' }, { importSource: './rawConfig' }],
allowIn: ['**/features/**', '**/App.tsx', '**/rawConfig.ts'],
}],
'unflag/require-unready-for-deferred-reads': 'error',
},
});
@m4ttheweric/eslint-plugin-unflag ships two rules.
unflag/no-raw-config-reads restricts raw config imports/reads to the
modules you allow (typically the *.features.ts files and nothing else), so
a stray flags['some-flag'] read or raw config import creeping into a
component gets caught by the linter instead of a reviewer. restricted
entries are either { importSource } (bans an import specifier) or
{ objectPattern } (bans a dotted member-access chain, e.g.
window.__FLAGS__.foo); allowIn is a picomatch glob allowlist, defaulting
to ['**/*.features.ts', '**/features/**'] when omitted.
unflag/require-unready-for-deferred-reads catches the defineFeatures
mistake that only throws at runtime: a feature whose reads names a
deferredInput input but declares no unready fallback. It also flags the
opposite, dead config -- an unready on a feature that reads no deferred
input -- unless inputs contains a spread, since an unseen spread key could
be deferred. It takes no options and only recognizes defineFeatures /
deferredInput imported (any local alias) from @m4ttheweric/unflag.
See @m4ttheweric/unflag
for the library this rule enforces.
FAQs
``` pnpm add -D @m4ttheweric/eslint-plugin-unflag ```
We found that @m4ttheweric/eslint-plugin-unflag 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.

Security News
Cloudflare introduces tsrs, a Rust port of TypeScript’s compiler promising faster checks and lower memory use, with the TypeScript team’s help.

Security News
The PHP Foundation says Chainguard broke a security embargo ahead of critical RCE patches, as leaks disrupted the coordinated release.

Security News
PHP releases emergency patches for two critical RCE vulnerabilities as agencies urge organizations to take unpatched sites offline.