An extension of eslint-config-standard, made for TypeScript.
npm install eslint-config-standard-ts[![License][license-img]][license-url]
[![NPM Downloads][downloads-img]][downloads-url]
[![NPM Version][version-img]][version-url]
[![Dependency Status][dependency-img]][dependency-url]
[![devDependency Status][devdependency-img]][devdependency-url]
[![Code Style][style-img]][style-url]
> An extension of eslint-config-standard without peer dependencies, made for TypeScript.
``shell
$ npm install eslint eslint-config-standard-ts --save-dev
Usage
In your eslint config:
`javascript
// .eslintrc.js
module.exports = {
extends: 'standard-ts',
parserOptions: {
project: './tsconfig.json'
}
}
`Example command line usage for ESLint v7:
`shell
$ npx eslint .
`Motivation
Due to a known limitation in ESLint. Many ESLint shareable config require a large number of peer dependencies. This leads to many inconveniences for developers to use.
My idea is to ignore these problems 😅, and install these peer dependencies directly.
Because I think these problems no longer exist in modern npm.
So this module is just a dependencies wrapper, internal use of eslint-config-standard-with-typescript and its peer dependencies.
Related
- zce/eslint-config-standardx - An extension of eslint-config-standard without peer dependencies, made for JavaScript.
Contributing
1. Fork it on GitHub!
2. Clone the fork to your own machine.
3. Checkout your feature branch:
git checkout -b my-awesome-feature
4. Commit your changes to your own branch: git commit -am 'Add some feature'
5. Push your work back up to your fork: git push -u origin my-awesome-feature`> NOTE: Be sure to merge the latest from "upstream" before making a pull request!
[license-img]: https://img.shields.io/github/license/zce/eslint-config-standard-ts
[license-url]: https://github.com/zce/eslint-config-standard-ts/blob/master/LICENSE
[downloads-img]: https://img.shields.io/npm/dm/eslint-config-standard-ts
[downloads-url]: https://npmjs.org/package/eslint-config-standard-ts
[version-img]: https://img.shields.io/npm/v/eslint-config-standard-ts
[version-url]: https://npmjs.org/package/eslint-config-standard-ts
[dependency-img]: https://img.shields.io/david/zce/eslint-config-standard-ts
[dependency-url]: https://david-dm.org/zce/eslint-config-standard-ts
[devdependency-img]: https://img.shields.io/david/dev/zce/eslint-config-standard-ts
[devdependency-url]: https://david-dm.org/zce/eslint-config-standard-ts?type=dev
[style-img]: https://img.shields.io/badge/code_style-standard-brightgreen
[style-url]: https://standardjs.com