43.0.1 • Published 3 months ago

eslint-config-standard-with-typescript v43.0.1

Weekly downloads
42,288
License
MIT
Repository
github
Last release
3 months ago

Build Status JavaScript Style Guide npm

An ESLint shareable config for TypeScript that is based on eslint-config-standard and has TypeScript specific rules from @typescript-eslint/eslint-plugin.

Peer dependencies

This package specifies the following peerDependencies:

Yes, this is a large number of peerDependencies. This is due to a known limitation in ESLint.

@typescript-eslint dependencies

This package has @typescript-eslint/parser in dependencies.
And it has @typescript-eslint/eslint-plugin in peerDependencies.
Both are specified as ranges. It's probably safest for the installed versions of these packages to be the same. This can be achieved by:

  1. Pin (exact version) the @typescript-eslint/eslint-plugin in package.json.
  2. Have a package-lock.json which locks the version of the @typescript-eslint/parser sub-dependency.

And both pin/lock to the same version.

Yarn

Yarn does not automatically install peerDependencies, so if that's what you're using, install them manually. Here is an example, but use it only for reference, because your decisions regarding version ranges and range specifiers may vary.

yarn add --dev \
  typescript@\* \
  eslint@^8.0.1 \
  eslint-plugin-promise@^6.0.0 \
  eslint-plugin-import@^2.25.2 \
  eslint-plugin-n@^15.0.0 \
  @typescript-eslint/eslint-plugin@^6.4.0 \
  eslint-config-standard-with-typescript@latest

Example config

Here is an example .eslintrc.js. Pay close attention to the files property, because it determines which files are linted.

module.exports = {
  overrides: [
    {
      files: ['*.js', '*.jsx', '*.ts', '*.tsx'],
      extends: 'standard-with-typescript'
    }
  ],
}

Note: the config exported by this package sets parserOptions.project = true. Read about the project option here.

There are some more parserOptions you may care about.

Example command line usage:

$ npx eslint .
wmc-eslintyindun-test-xyjtest-xyj-xutlg-managereslint-ts-config@thomatools/lazylintsenn-node-linter@kopplin/eslint-config@liuhq8796/eslint-config-wonderful-element@infinitebrahmanuniverse/nolb-eslint-config-s@yomarsanchez/eslint-config-seek@speedingplanet/eslint-config-typescriptlucasaugustscode-eslint-configla-eslint-config@tackpay/eslint-config-tsquickestrainklinglog@everything-registry/sub-chunk-1607eslint-config-wishket@amadeulinhares/eslint-configtehik-tedi-componentsaliksend-lintervbg_eslintnorylord-kitnorylord-ui-kiteslint-config-vbgstitch-nodeeslint-config-bb8ddeslint-config-baadaleslint-config-bhdouglasseslint-config-blockabceslint-config-bkpkdemo-lib-v0@d0rtal/eslint-config@cryb/eslint-config@dipcode/eslint-configelint-preset-kw@danielsepulveda/eslint-configcsc-config-widgetcontentful-migrate-bse@cowtech/eslint-config@cv9t/eslint-config@developpeurdurable/nx-workspace-plugin@devtemplates/eslint-preset-typescript@dollardojo/eslint-config-dollardojo@dorakemon/eslint-config-dorakemoncurrencylinteslint-config-monaverseeslint-config-inferno-appeslint-config-standart-typescripteslint-config-standart-typescript-partykeslint-config-startupjseslint-config-standard-vue-tseslint-config-standard-oneeslint-config-standard-react-tseslint-config-standard-tseslint-config-standard-typescripteslint-config-txo-typescripteslint-config-zimueslint-config-stlatoeslint-config-synnaxlabseslint-config-thealexpatineslint-config-tedeslint-config-tidgieslint-config-resourgeeslint-config-resourge-typescripteslint-config-sqveeslint-config-clario-style-guideeslint-config-captegoeslint-config-d8eslinteslint-config-onhandeslint-config-scalecoreeslint-config-jammeryhq-node-tseslint-config-jk-tseslint-config-jkarczmeslint-config-ipfseslint-config-nodetseslint-config-tuileslint-config-xavdideslint-config-woutereslint-config-xmtp-webeslint-plugin-standard-craeslint-config-flitto-typescripteslint-config-gymboxx-typescripteslint-config-hazem-alabiadeslint-config-ess-coding-standardseslint-config-extension-createeslint-config-palauaandsonseslint-config-kfeslinteslint-config-microfeeslint-config-profitbossess.coding-standardseslint-plugin-brother-test-plugintlg-manager-test@sergeyzwezdin/eslint-config@sergeyzwezdin/eslint-config-nodestitch-server-sdktedi-component-library@tilted-tm/eslint-configzenlint
43.0.1

3 months ago

43.0.0

4 months ago

42.0.0

4 months ago

41.0.0

4 months ago

40.0.0

5 months ago

39.1.1

7 months ago

39.1.0

7 months ago

38.0.0

8 months ago

39.0.0

8 months ago

38.1.0

8 months ago

36.0.1

9 months ago

36.0.0

10 months ago

37.0.0

9 months ago

36.1.0

9 months ago

36.1.1

9 months ago

35.0.0

11 months ago

34.0.1

1 year ago

29.0.0

1 year ago

32.0.0

1 year ago

28.0.0

1 year ago

31.0.0

1 year ago

27.0.0

1 year ago

27.0.1

1 year ago

30.0.0

1 year ago

34.0.0

1 year ago

33.0.0

1 year ago

26.0.0

1 year ago

25.0.0

1 year ago

24.0.0

1 year ago

23.0.0

2 years ago

22.0.0

2 years ago

21.0.1

3 years ago

20.0.0

3 years ago

19.0.1

4 years ago

19.0.0

4 years ago

18.0.2

4 years ago

18.0.1

4 years ago

18.0.0

4 years ago

17.0.0

4 years ago

16.0.0

4 years ago

15.0.1

4 years ago

15.0.0

4 years ago

14.0.0

4 years ago

13.0.0

4 years ago

12.0.1

4 years ago

12.0.0

4 years ago

11.0.1

4 years ago

11.0.0

4 years ago

10.0.0

5 years ago

9.0.0

5 years ago

8.0.0

5 years ago

7.1.0

5 years ago

7.0.0

5 years ago

6.0.0

5 years ago

5.0.0

5 years ago

4.0.0

6 years ago

3.0.0

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago