@springworks/tslint-config
v3005.0.0
Published
TSLint config for Springworks
Downloads
80
Readme
@springworks/tslint-config
TSLint config for Springworks
yarn add @springworks/tslint-config
Installation
The following peer dependencies needs to be installed: prettier
, tslint
, typescript
and @springworks/prettier-config
.
You can add all of them like this:
yarn add -D prettier tslint typescript @springworks/prettier-config @springworks/tslint-config
Configure TSLint
Create a tslint.json
file with
{
"extends": ["@springworks/tslint-config"]
}
Configure Prettier
Create a .prettierrc.js
file in the root of your project with the following content:
module.exports = require(' @springworks/prettier-config');
echo "module.exports = require(' @springworks/prettier-config');" > .prettierrc.js
It is a good idea to tell prettier to ignore the package.json
file since installing dependencies will reformat this file.
Create a .prettierignore
file with package.json
in it
echo "package.json" > .prettierignore