eslint-config-ts-strict
v1.4.2
Published
Very strict ESLint config for projects using TypeScript, React and Prettier
Downloads
2,253
Maintainers
Readme
ts-strict-eslint-config
Strongly opinionated ESLint config for projects using TypeScript, React and Prettier.
Installation
Install my-project with npm
or yarn
npm i eslint-config-ts-strict
yarn add eslint-config-ts-strict --dev
Usage/Examples
After installing the package, you can use it in your ESLint configuration file by extending the ts-strict configuration:
{
"extends": ["ts-strict", "plugin:prettier/recommended"],
"parserOptions": {
"project": "./tsconfig.json",
"ecmaVersion": "latest"
}
}
configuration
The ts-strict
configuration extends the following ESLint configurations:
eslint:recommended
plugin:@typescript-eslint/recommended
plugin:@typescript-eslint/recommended-requiring-type-checking
plugin:import/recommended
plugin:import/typescript
plugin:jsx-a11y/recommended
It also includes additional rules to enforce strict coding standards. The individual rule sets are located in the rules/
directory and can be extended separately if desired.
Contributing
Contributions are always welcome!
If you find a bug or have a suggestion for improvement, please open an issue or submit a pull request.