
Product
Socket for Jira Is Now Available
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.
@lmc-eu/eslint-config-typescript
Advanced tools
These configuration files are suitable to lint TypeScript code.
To lint TypeScript files using ESLint and this ruleset you must
See the example .eslintrc.js file below for more details and make sure you read the Parser’s docs about its settings.
@lmc-eu/eslint-config-typescriptSuitable for linting TypeScript source files.
Together with this ruleset, you should also choose one base ruleset depending on your target platform:
@lmc-eu/eslint-config-typescript/reactReact specific overrides.
@lmc-eu/eslint-config-typescript/optionalUse this ruleset together with any of the above version-specific rulesets. Provides additional insights into potential inconsistencies in the project.
For new projects, it is recommended to enable this ruleset. For existing projects, it is only recommended for the brave.
@lmc-eu/eslint-config-typescript/styleThis ruleset includes rules which deal with how the code looks like and not how it works. It helps keeping the code clean and consistent. 🎨
A full configuration for a TypeScript on Node.js project:
// .eslintrc.js
'use strict';
module.exports = {
extends: [
'@lmc-eu/eslint-config-node/v10',
'@lmc-eu/eslint-config-node/optional',
'@lmc-eu/eslint-config-typescript',
'@lmc-eu/eslint-config-typescript/style',
],
parserOptions: {
// The project field is required in order for some TS-syntax-specific rules to function at all
// @see https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/parser#configuration
project: './tsconfig.json',
},
};
A full configuration for a TypeScript on React project:
Please note, that you need to have eslint-config-react installed as well
// .eslintrc.js
'use strict';
module.exports = {
extends: [
'@lmc-eu/react',
'@lmc-eu/react/style',
'@lmc-eu/react/optional',
'@lmc-eu/typescript',
'@lmc-eu/typescript/style',
'@lmc-eu/typescript/react',
],
parserOptions: {
// The project field is required in order for some TS-syntax-specific rules to function at all
// @see https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/parser#configuration
project: './tsconfig.json',
},
};
To actually lint .ts files, you must pass the --ext flag to ESLint:
eslint --ext ts --report-unused-disable-directives .
The vscode-eslint plugin for integrating ESLint into VSCode does not automatically parse TypeScript files. To do so, you must inform ESLint to enable on TypeScript files by adding this configuration to your settings (File > Preferences > Settings):
"eslint.validate": [
"javascript",
"javascriptreact",
{ "language": "typescript", "autoFix": true },
{ "language": "typescriptreact", "autoFix": true }
]
Notice we are adding
javascriptreactandtypescriptreactabove. It won’t harm adding those, but you can always omit these languages if not using them.
FAQs
LMC's ESLint config for TypeScript projects
The npm package @lmc-eu/eslint-config-typescript receives a total of 776 weekly downloads. As such, @lmc-eu/eslint-config-typescript popularity was classified as not popular.
We found that @lmc-eu/eslint-config-typescript demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 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.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.