JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 203
  • Score
    100M100P100Q95137F
  • License ISC

ESlint configuration for Flitto projects

Package Exports

  • eslint-config-flitto-typescript

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

Readme

eslint-config-flitto-typescript

Flitto Typescript Style Guide

Get Started

1. Installing packages

npm install --save-dev \
  typescript@^4 \
  eslint@^7.32.1 \
  eslint-plugin-import@^2.22.1 \
  eslint-plugin-node@^11.1.0 \
  eslint-plugin-promise@^5.0.0 \
  @typescript-eslint/eslint-plugin@^4.0.1 \
  eslint-config-flitto-typescript@latest

Most of the packages need to be installed as Peer Dependency of eslint-config-standard-with-typescript package.

This list of dependencies is(same with eslint-config-standard-with-typescript):

  • TypeScript, which you may already have installed
  • ESLint
  • 3 Peer dependencies of eslint-config-standard @typescript-eslint/eslint-plugin; ESLint rules for TypeScript.
  • This package

2. Create Eslint configuration file

Create .eslintrc.js file at the top of the project directory like below.

module.exports = {
  "extends": "flitto-typescript",
  "rules": {}
}

Configuration On WebStorm

  1. Open Preferences ( + ,)
  2. Language & Frameworksjavascript CodeQuality toolsEslint
  3. Select Manual ESLint Configuration
    • ESLint package: /{project_path}/node_modules/eslint
    • Configuration file: /{project_path}/.eslintrc.js
  4. (Optional) check Run eslint --fix on save
  5. Click OK

Rules

Flags