43.0.1 • Published 1 year ago

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

Weekly downloads
42,288
License
MIT
Repository
github
Last release
1 year 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-kiteslint-config-vbgstitch-nodewmc-prettier-lintervisual-interface-pojectvscode-lintv3-echartsvicente015-eslint-config@dorakemon/eslint-config-dorakemon@cryb/eslint-config@d0rtal/eslint-config@dipcode/eslint-config@dollardojo/eslint-config-dollardojo@boennemann/eslint-config@pedroapy/eslint-config-baseeslint-config-xmtp-web@cv9t/eslint-config@iszf-microfrontends/eslint-config@sergeyzwezdin/eslint-config@sergeyzwezdin/eslint-config-nodestitch-server-sdktedi-component-librarydemo-lib-v0@developpeurdurable/nx-workspace-plugintlg-manager-testtor-manager@speira/lint@antoniowingert/eslint-config@argo-design/argo-lint@appwise/vue-eslint-config@amplitude/typescript@attachments/eslint-plugin@astriel-division/eslint-config@alex-taxiera/eslint-config-ts@akijoey/eslint-config@aliksend/linter@ayloncarrijo/eslint-config@ayuhito/eslint-config@bestchatbots/eslint-config@carlosvillu/lint@carlosvillu/lint-classicmanager@brickdoc/eslint-plugin@cbnb/front-standard@chempo/ec-linter@chempo/eslint-config-ts@21epub/configs@ace-ex/eslint-config@abo-academy/kernel@bensjoberg/ts-standard@devtemplates/eslint-preset-typescript@danielsepulveda/eslint-configylkj-uiyjrcli-envyidun-i18n-clixrenginezenlintwebpages-packer-browser-vue3ts-standardts-standard-eslint-flat-config@finema/eslint-config@finema/eslint-config-node@felipe-ds-lima/eslint-config@fbi-js/factory-node@dxsixpc/configs@eckode/cli@eckode/webpack@hidden-umbrella/eslint-config@ifanrx/eslint-config-standard@ifanrx/eslint-config-standard-ts@fedevlab/eslint-config@fission-codes/eslint-config@ekwal/eslint-config-ts@ellreka/configs@estarossa/eslint-quicksetup@evergreen-smart-power/eslint-config@gez/lint@gluwa/eslint-config-react-ts
43.0.1

1 year ago

43.0.0

2 years ago

42.0.0

2 years ago

41.0.0

2 years ago

40.0.0

2 years ago

39.1.1

2 years ago

39.1.0

2 years ago

38.0.0

2 years ago

39.0.0

2 years ago

38.1.0

2 years ago

36.0.1

2 years ago

36.0.0

2 years ago

37.0.0

2 years ago

36.1.0

2 years ago

36.1.1

2 years ago

35.0.0

2 years ago

34.0.1

2 years ago

29.0.0

2 years ago

32.0.0

2 years ago

28.0.0

2 years ago

31.0.0

2 years ago

27.0.0

2 years ago

27.0.1

2 years ago

30.0.0

2 years ago

34.0.0

2 years ago

33.0.0

2 years ago

26.0.0

2 years ago

25.0.0

2 years ago

24.0.0

3 years ago

23.0.0

3 years ago

22.0.0

3 years ago

21.0.1

4 years ago

20.0.0

4 years ago

19.0.1

5 years ago

19.0.0

5 years ago

18.0.2

5 years ago

18.0.1

5 years ago

18.0.0

5 years ago

17.0.0

5 years ago

16.0.0

5 years ago

15.0.1

5 years ago

15.0.0

5 years ago

14.0.0

5 years ago

13.0.0

5 years ago

12.0.1

5 years ago

12.0.0

5 years ago

11.0.1

6 years ago

11.0.0

6 years ago

10.0.0

6 years ago

9.0.0

6 years ago

8.0.0

6 years ago

7.1.0

6 years ago

7.0.0

6 years ago

6.0.0

7 years ago

5.0.0

7 years ago

4.0.0

7 years ago

3.0.0

7 years ago

2.0.1

8 years ago

2.0.0

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago