JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 12
  • Score
    100M100P100Q54549F
  • License MIT

Code Style for TypeScript

Package Exports

  • @cookielab.io/eslint-config-typescript
  • @cookielab.io/eslint-config-typescript/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@cookielab.io/eslint-config-typescript) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Cookielab's ESLint config for TypeScript

This package contains ESLint configuration for our code style.

The code-style tries to be as strict and defensive as possible to avoid unwanted side-effects and increase code readability.

Installation

First add package as dev-dependency

npm install --save-dev @cookielab.io/eslint-config-typescript

or

yarn add --dev @cookielab.io/eslint-config-typescript

Set up .eslintrc.json in your project's root to extend our package.

{
    "extends": "@cookielab.io/eslint-config-typescript"
}

Run tests

Package contains tests to ensure all available rules are explicitly set for each environment.

bin/jest

It is also checked by its own plain ESlint set of rules.

bin/lint