@kj/tslint-rules
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

@kj/tslint-rules

This is a pretty strict tslint configuration for your project.

It comes with a base configuration and a react specific configuration.

Installation

yarn add prettier tslint typescript # Required peer dependencies
yarn add @kj/tslint-rules

In your tslint.json file add something like the following.

{
  "extends": ["@kj/tslint-rules/react"],
  "rules": {
    "no-implicit-dependencies": [
      true,
      "dev",
      [
        "jest-axe",
        "jest",
        "jest-dom",
        "react-testing-library",
        "@test-utils",
        "@storybook",
        "jest-extended",
        "prosemirror-test-builder"
      ]
    ],
    "no-empty": false,
    "no-any": false,
    "no-object-literal-type-assertion": false,
    "no-console": false,
    "max-classes-per-file": false
  }
}

The important line contains "extends": ["@kj/tslint-rules/react"].

If you don't need to support react then you can use "extends": ["@kj/tslint-rules/base"] instead.

Readme

Keywords

none

Package Sidebar

Install

npm i @kj/tslint-rules

Weekly Downloads

0

Version

2.0.1

License

MIT

Unpacked Size

26.4 kB

Total Files

7

Last publish

Collaborators

  • ifiokjr