Detalhes do pacote

@tpluscode/eslint-config

tpluscode36.3kMIT0.6.4

Slightly customized standard config.

eslint

readme (leia-me)

@tpluscode/eslint-config

Slightly customized standard config.

Installation

Newer NPM installs peer dependencies automatically

npm i --save-dev @tpluscode/eslint-config

For yarn v1 use install-peerdeps (--extra-args needed for monorepos):

npx install-peerdeps -Yd @tpluscode/eslint-config (--extra-args "-W")

If you write code in TypeScript, add:

npm i --save-dev \
    typescript \
    @typescript-eslint/eslint-plugin \
    @typescript-eslint/parser \
    eslint-import-resolver-typescript

eslint config

In a JavaScript project:

{
  "extends": [ "@tpluscode/eslint-config/js" ]
}

In a TypeScript project:

{
  "extends": [ "@tpluscode" ],
  "parserOptions": {
    "project": "./tsconfig.json"
  }
}

parserOptions.project is required for TypeScript projects unless the rule @typescript-eslint/consistent-type-exports is disabled.

changelog (log de mudanças)

Changelog

0.6.4

Patch Changes

  • a073786: Disable prefer-arrow-callback in tests (conflicts with mocha rules)

0.6.3

Patch Changes

  • c95a040: Disable func-names in tests

0.6.2

Patch Changes

  • bc2bc05: Relax some mocha rules

0.6.1

Patch Changes

  • 7ed97bd: Mocha was added dev dependency instead of prod dependency

0.6.0

Minor Changes

  • 9f0174f: Added recommended mocha rules

Patch Changes

  • ca15bcd: Allow test dev deps is tests directory (plural)

0.5.0

Minor Changes

  • 50bd0e7: Enabled rule @typescript-eslint/consistent-type-exports

0.4.9

Patch Changes

  • 1a22cee: consistent-type-imports: auto-fix only work when level is error?

0.4.8

Patch Changes

  • b3aa9ee: Enforce type-only imports where necessary

0.4.7

Patch Changes

  • 6216f41: Missing dependency

0.4.6

Patch Changes

  • 3c0ac2e: Added eslint-plugin-rdf

0.4.5

Patch Changes

  • ffd1199: Add rules to automatically remove unused imports

0.4.4

Patch Changes

  • 3edea08: allow dev deps in *.test.js

0.4.3

Patch Changes

  • e9106a0: Update eslint-plugin-require-extensions to support fix index imports and handle parametrised imports
  • cda97a1: Simplify installation instructions

0.4.2

Patch Changes

  • ee3af50: Apply overrides to .mjs too

0.4.1

Patch Changes

  • eb4771f: disable no-undef in TS files as suggested by typescript-eslint

0.4.0

Minor Changes

  • 92ac89c: Added eslint-plugin-require-extensions

0.3.4

Patch Changes

  • 191763b: Added a base config for JS-only projects

0.3.3

Patch Changes

  • d57dc1e: Standard no-redeclare would show incorrect errors about function overloads

0.3.2

Patch Changes

  • 4e98a01: Disable default no-dupe-class-members

0.3.1

Patch Changes

  • 0497e3b: Disable no-unused-expression in test files

0.3.0

Minor Changes

  • bae8ca8: Make missing imports error
  • 1e5852d: Update dependencies

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

0.2.0

Features

  • enable impor/order rule

0.1.1 (2020-09-22)

Features

  • disable default ctor rule in ts files (8f4ec82)
  • tweak import/no-extraneous-dependencies in test files (d37be96)

0.1.0 (2020-04-23)

Features

0.0.4 (2019-12-08)

Features

0.0.3 (2019-11-30)

0.0.2 (2019-11-30)

0.0.1 (2019-11-30)

Features

  • first version based on current projects (38c3443)

Bug Fixes

  • change parser option to work with vue (ae5fc4b)