tslint-config-springworks
TSLint configuration for Springworks. Should be similar to https://github.com/Springworks/eslint-config-springworks.
Installation
The following peer dependencies needs to be installed: prettier
, tslint
and typescript
.
You can add all of them like this:
yarn add -D prettier tslint typescript @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/tslint-config/prettier.config');
echo "module.exports = require('@springworks/tslint-config/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