@berlysia/eslint-config
> ESLint config for myself
Last updated 8 months ago by berlysia .
MIT · Original npm · Tarball · package.json
$ cnpm install @berlysia/eslint-config 
SYNC missed versions from official npm registry.

@berlysia/eslint-config

ESLint config for myself

Features

  • React
  • TypeScript
  • prettier

Install

$ yarn add --dev eslint @berlysia/eslint-config
$ npm install --save-dev eslint @berlysia/eslint-config

Config

in .eslintrc

{
  "extends": ["@berlysia/eslint-config/auto"]
}

opt-in rules for TypeScript

{
  "extends": [
    "@berlysia/eslint-config/auto"
    "@berlysia/eslint-config/typescript-with-type"
  ],
  "parserOptions": {
    "project": "./tsconfig.json"
  }
}

Manual Config

in .eslintrc

{
  "extends": [
    "@berlysia" // base
  ],
  "overrides": [
    {
      "files": [
        "*.{test,spec}.{js,ts,jsx,tsx}",
        "**/__tests__/**/*.{js,ts,jsx,tsx}"
      ],
      "extends": "@berlysia/eslint-config/jest"
    },
    {
      "files": ["*.{ts,tsx}"],
      "extends": "@berlysia/eslint-config/typescript-without-type"
    },
    {
      "files": ["*.{ts,tsx}"],
      "extends": "@berlysia/eslint-config/typescript-with-type",
      "parserOptions": {
        "project": "./tsconfig.json"
      }
    }
  ]
}

Current Tags

  • 1.2.2                                ...           latest (3 months ago)

25 Versions

  • 1.2.2                                ...           3 months ago
  • 1.2.1                                ...           4 months ago
  • 1.1.1                                ...           4 months ago
  • 1.2.0                                ...           8 months ago
  • 1.1.0                                ...           8 months ago
  • 1.0.0                                ...           8 months ago
  • 0.8.3                                ...           9 months ago
  • 0.8.2                                ...           9 months ago
  • 0.8.1                                ...           9 months ago
  • 0.8.0                                ...           9 months ago
  • 0.7.0                                ...           10 months ago
  • 0.6.1                                ...           10 months ago
  • 0.6.0                                ...           a year ago
  • 0.5.4                                ...           a year ago
  • 0.5.3                                ...           a year ago
  • 0.5.2                                ...           a year ago
  • 0.5.1                                ...           a year ago
  • 0.5.0                                ...           a year ago
  • 0.4.1                                ...           a year ago
  • 0.4.0                                ...           a year ago
  • 0.3.0                                ...           a year ago
  • 0.2.1                                ...           a year ago
  • 0.2.0                                ...           a year ago
  • 0.1.0                                ...           2 years ago
  • 0.0.1                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dev Dependencies (9)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |