Registry /
type-stubs / eslint-config-typescript-shareable
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'),
};
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.
fixInstall the missing plugin: npm install eslint-plugin-import --save-dev
Error: Cannot find module 'stylelint-config-recommended'
Missing peer dependency.
fixInstall: 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.
fixEnsure 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.
fixCreate .stylelintrc.js with 'extends': ['eslint-config-typescript-shareable/stylelint']
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