Registry / devops / patched-rulesets

patched-rulesets

JSON →
library0.16.0jsnpmunverified

patched-rulesets v0.16.0 is a collection of ESLint config presets for various plugin groups (e.g., React, TypeScript, Redux). It is designed to be used with the Patched linter and formatter but can be used standalone. It provides helpers like createConfig, getRuleSet, and configs to generate complete ESLint configurations. Differentiates from other ESLint config packs by grouping plugins into logical sets and providing patchable rulesets.

npm install patched-rulesets
INSTALL
IMPORT
SIG · PATCHED-RULESETS
P
patched-rulesets
devopsjavascriptv0.16.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

createConfig
import { createConfig } from 'patched-rulesets'
const createConfig = require('patched-rulesets').createConfig
Package is ESM-first; named import works in both ESM and CJS with default export.
getPlugin
import { getPlugins } from 'patched-rulesets'
import getPlugins from 'patched-rulesets'
getPlugins is a named export, not default.
configs
import { configs } from 'patched-rulesets'
const configs = require('patched-rulesets/configs')
configs is a named export from the main package, not a subpath.

Shows two ways to use patched-rulesets: via predefined configs or programmatically with createConfig and getPlugins.

import { createConfig, getPlugins, configs } from 'patched-rulesets'; // Using configs preset const eslintConfig = { overrides: [ { files: ['*.ts', '*.tsx'], ...configs.tsReact, }, ], }; // Or building custom config const jsReactConfig = createConfig({ pluginNames: getPlugins(['core', 'react']), }); export default eslintConfig;
Debug
Known issues
gotchaConfigs are plain objects; must be spread into an overrides entry, not used as a full config.
fix
Always use `...configs.js` inside an `overrides` block, not at top level.
affects: >=0.0.0
gotchaPlugin group 'coreES6' includes 'sort-requires' which may conflict with other import ordering rules.
fix
Use only one import ordering plugin. Omit 'coreES6' if using a different one.
affects: >=0.0.0
deprecatedNode 14 and older are not supported.
fix
Upgrade to Node 16+.
affects: >=0.15.0
Errors
Common errors & fixes
Cannot find module 'patched-rulesets'
Package not installed or not in node_modules.
fix
Run `yarn add patched-rulesets` or `npm install patched-rulesets`.
TypeError: configs.js is not a function
configs is an object, not a function; using it as a function call.
fix
Use `...configs.js` (object spread) instead of `configs.js()`.
Upgrade
Version history
0.16.0latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
34 hits · last 30 days
Bingbot
23
node
10
Amazon
1
Resources
patched-rulesets — npm install patched-rulesets · libregistry