1.0.0 • Published 4 years ago
eslint-config-base-ts v1.0.0
eslint-config-base-diametra-ts
The Diametra-Labs ESLint configuration preset is intended for react projects that are written only with typescript. It offers a very flexible configuration. This preset is not meant to kill your productivity, just worry about coding : )
Features
using typescript-eslint best practices
with prettier support, thanks to eslint-plugin-prettier. We take care of formatting the code for you 👌
with react, react-hooks
Installation
including ECMAScript 6+
Install the package with
npm install eslint-config-base-diametra-ts --save-dev
# or
yarn add eslint-config-base-diametra-ts -D
Usage
Now add the config to either your package.json
:
{
"eslintConfig": {
"extends": "eslint-config-base-diametra-ts"
}
}
to your .eslintrc
:
{
"extends": "eslint-config-base-diametra-ts"
}
or .eslintrc.js
:
module.exports = {
extends: 'eslint-config-base-diametra-ts',
}
Assumptions
This ESLint configuration comes with some fundamental assumptions:
- react and/or node environment
- browser and/or node environment
- parser: typescript (used @typescript-eslint/parser)
Maintainers
1.0.0
4 years ago