🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

react-redux-typescript-scripts

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-redux-typescript-scripts

Shared dev-tools configuration files based on "react-redux-typescript-guide"

Source
npmnpm
Version
1.2.2
Version published
Weekly downloads
97
-44.57%
Maintainers
1
Weekly downloads
 
Created
Source

react-redux-typescript-scripts đź› 

Shared dev-tools configuration files based on react-redux-typescript-guide

For now you can find tslint and tsconfig configurations, but I'm willing to add more tools and scripts in the future e.g. jest, babel, eslint, npm scripts etc.

Table of Contents

Installation

This module is distributed via npm package and should be installed as one of your project's devDependencies:

npm i -D react-redux-typescript-scripts

Usage

You can find usage instructions for each tool in it's onw section below.

tsconfig.json

{
  "include": ["./src"],
  "extends": "./node_modules/react-redux-typescript-scripts/tsconfig.json",
  "compilerOptions": {
    // you can further customize options here
  }
}

TSLint

Following configs are available to extend (you can use one or all by declaring an array in extends config property):

  • react-redux-typescript-scripts/tslint-recommended.json - best default config - based on recommended tslint built-in config.
  • react-redux-typescript-scripts/tslint-react.json- for react projects - based on tslint-react.

tslint.json

{
  "extends": [
    "react-redux-typescript-scripts/tslint-recommended.json", 
    "react-redux-typescript-scripts/tslint-react.json"
  ],
  "rules": {
    // you can further customize options here
  }
}

ESLint

create-react-app

This will fully integrate @typescript-eslint config to your create-react-app:

{
  "eslintConfig": {
    "extends": [
      "react-app",
      "react-redux-typescript-scripts/eslint.js"
    ],
    "rules": {
      // you can further customize options here
    }
  }
}

LICENSE

MIT

Keywords

react-redux-typescript-guide

FAQs

Package last updated on 14 Apr 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts