JSPM

@flitz/dev-config

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

Shared configuration files for tools like ESLint and TypeScript.

Package Exports

  • @flitz/dev-config

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 (@flitz/dev-config) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

npm

@flitz/dev-config

Shared ESLint and tsconfig.json files for flitz.

meme

Install

Run

npm install --save-dev eslint @flitz/dev-config

from the folder, where your package.json is stored.

Usage

ESLint

Once the @flitz/dev-config package is installed, you can use it by specifying @flitz/dev-config in the extends section of your ESLint configuration.

Create a .eslintrc.js file in the root folder of your project and use the following skeleton:

module.exports = {
  "extends": "@flitz/dev-config",
  "rules": {
    // Additional, per-project rules...
  }
}

As optional feature, you can add script entry, called lint e.g., to your package.json:

{
    "scripts": {
        "lint": "eslint -c .eslintrc.js --ext .ts <mySrcFolder>"
    }
}

tsconfig.json

{
  "extends": "@flitz/dev-config",
  "compilerOptions": {
  }
}

You can overwrite any compiler options.

License

MIT © Marcel Kloubert