@springworks/tslint-config

3005.0.0 • Public • Published

@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

Readme

Keywords

none

Package Sidebar

Install

npm i @springworks/tslint-config

Weekly Downloads

54

Version

3005.0.0

License

none

Unpacked Size

20.7 kB

Total Files

6

Last publish

Collaborators

  • springworksdev
  • springworksprime