Registry / type-stubs / eslint-config-typescript-shareable

eslint-config-typescript-shareable

JSON →
library1.9.0jsnpmunverified

Shared ESLint, Stylelint, and Prettier configurations for TypeScript projects, version 1.9.0 (stable, last release Oct 2022). Provides consistent linting rules for TypeScript codebases including React, React Hooks, functional programming, import ordering, SCSS, and styled-components. Requires manual installation of many peer dependencies (ESLint 8, Prettier 2, TypeScript 4, etc.). Unlike single-purpose configs, this is a monorepo-style package covering both JS/TS linting and CSS linting with stylelint, aiming for opinionated uniformity across teams.

npm install eslint-config-typescript-shareable
INSTALL
IMPORT
SIG · ESLINT-CONFIG-TYPE
E
eslint-config-typescript-shareable
type-stubsjavascriptv1.9.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.

eslint-config-typescript-shareable
module.exports = { extends: ['eslint-config-typescript-shareable'] };
import { eslintConfigTypescriptShareable } from 'eslint-config-typescript-shareable';
This config is used via extends in ESLint config file, not imported directly.
stylelint-config-typescript-shareable (if available)
module.exports = { extends: ['eslint-config-typescript-shareable/stylelint'] };
const config = require('eslint-config-typescript-shareable/stylelint');
Stylelint config is a separate export path within the package.
prettier-config-typescript-shareable (if available)
module.exports = { ...require('eslint-config-typescript-shareable/prettier') };
import prettierConfig from 'eslint-config-typescript-shareable/prettier';
Prettier config is likely a JSON file, use require or spread.

This shows how to install all required peer dependencies and set up ESLint, Stylelint, and Prettier configurations by extending the shared configs from the package.

// Install all peer dependencies: npm install --save-dev eslint-config-typescript-shareable @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint eslint-plugin-functional eslint-plugin-import eslint-plugin-react eslint-plugin-react-hooks postcss postcss-scss postcss-styled postcss-syntax prettier stylelint stylelint-config-recommended stylelint-config-standard-scss stylelint-config-styled-components stylelint-processor-styled-components typescript typescript-styled-plugin // .eslintrc.js module.exports = { extends: ['eslint-config-typescript-shareable'], // Other ESLint settings... }; // .stylelintrc.js module.exports = { extends: ['eslint-config-typescript-shareable/stylelint'], }; // .prettierrc.js module.exports = { ...require('eslint-config-typescript-shareable/prettier'), };
Debug
Known issues
gotchaMissing peer dependencies will cause silent errors or unexpected behavior.
fix
Install all peer dependencies as listed in the package.json.
affects: >=1.0.0
deprecatedThe package's last release was in October 2022; updates to ESLint 9 or newer are not available.
fix
Consider migrating to more actively maintained configs like @typescript-eslint/eslint-plugin's own recommended config.
affects: >=1.0.0
breakingThe package requires Node.js >=18.0.0.
fix
Update Node.js to version 18 or higher.
affects: >=1.9.0
gotchaThe configs are very opinionated; they may override or conflict with other ESLint plugins or custom rules.
fix
Review the source configs in the repository to understand rules, and override as needed.
affects: >=1.0.0
gotchaPostCSS and stylelint plugins may have compatibility issues with newer versions of PostCSS or stylelint.
fix
Lock versions to those specified in peer dependencies or test upgrades carefully.
affects: <2.0.0
Errors
Common errors & fixes
Error: Failed to load plugin 'typescript' declared in 'eslint-config-typescript-shareable': Cannot find module 'eslint-plugin-import'
Missing peer dependency.
fix
Install the missing plugin: npm install eslint-plugin-import --save-dev
Error: Cannot find module 'stylelint-config-recommended'
Missing peer dependency.
fix
Install: npm install stylelint-config-recommended --save-dev
ESLint couldn't find the config 'eslint-config-typescript-shareable' after extending.
Config not installed or incorrect extends syntax.
fix
Ensure you have installed the package and use the string 'eslint-config-typescript-shareable' in extends array.
Error: No configuration provided for stylelint
Stylelint config file missing or not properly extended.
fix
Create .stylelintrc.js with 'extends': ['eslint-config-typescript-shareable/stylelint']
Upgrade
Version history
1.9.0latest on npm
Audit
Dependencies
@typescript-eslint/eslint-pluginrequiredRequired for TypeScript-specific ESLint rules
@typescript-eslint/parserrequiredRequired to parse TypeScript syntax
eslintrequiredCore linter engine
eslint-plugin-functionalrequiredEnables functional programming lint rules
eslint-plugin-importrequiredEnables import/export lint rules
eslint-plugin-reactrequiredEnables React-specific lint rules
eslint-plugin-react-hooksrequiredEnforce Rules of Hooks
postcssrequiredRequired for stylelint parsing
postcss-scssrequiredRequired for SCSS parsing in stylelint
postcss-styledrequiredRequired for styled-components parsing in stylelint
postcss-syntaxrequiredSyntax addon for stylelint
prettierrequiredCode formatter integration
stylelintrequiredCSS linter engine
stylelint-config-recommendedrequiredBase stylelint config
stylelint-config-standard-scssrequiredStandard SCSS config for stylelint
stylelint-config-styled-componentsrequiredStyled-components support for stylelint
stylelint-processor-styled-componentsrequiredProcessor for styled-components in stylelint
typescriptrequiredTypeScript compiler for linting
typescript-styled-pluginrequiredTypeScript plugin for styled-components
Agent activity
38 hits · last 30 days
node
34
OpenAI (training)
1
Resources
eslint-config-typescript-shareable — npm install eslint-config-typescript-shareable · libregistry