ESLint shareable config for TypeScript projects
MIT License
typescript-eslint
v7 by @tclindner in https://github.com/tclindner/eslint-config-typescript-tc/pull/775
>=18.18.0
>=4.7.4
for typescript
^8.56.0
for eslint
Full Changelog: https://github.com/tclindner/eslint-config-typescript-tc/compare/v8.3.0...v9.0.0
Published by tclindner about 1 year ago
Full Changelog: https://github.com/tclindner/eslint-config-typescript-tc/compare/v8.2.0...v8.3.0
Published by tclindner about 1 year ago
Full Changelog: https://github.com/tclindner/eslint-config-typescript-tc/compare/v8.1.0...v8.2.0
Published by tclindner over 1 year ago
@typescript-eslint/no-non-null-assertion
for test files by @tclindner in https://github.com/tclindner/eslint-config-typescript-tc/pull/675
Full Changelog: https://github.com/tclindner/eslint-config-typescript-tc/compare/v8.0.0...v8.1.0
Published by tclindner over 1 year ago
@typescript-eslint/eslint-plugin
v6.0.0 support by @tclindner in https://github.com/tclindner/eslint-config-typescript-tc/pull/664
@typescript-eslint/*@6.x.x
by @tclindner in https://github.com/tclindner/eslint-config-typescript-tc/pull/669
@typescript-eslint/recommended
, @typescript-eslint/stylistic
, and @typescript-eslint/strict
to rule set.@typescript-eslint/eslint-plugin
v6.0.0 requires the .eslintrc.js file to include parserOptions
to be set with a valid tsconfig file. See the README
and/or @typescript-eslint/eslint-plugin
for more details.@typescript-eslint/parser
and @typescript-eslint/eslint-plugin
peerDep range to ^v6.0.0
eslint-plugin-unicorn
must be v48.0.1
+ for this config package to workFull Changelog: https://github.com/tclindner/eslint-config-typescript-tc/compare/v7.0.0...v8.0.0
Published by tclindner over 1 year ago
@typescript-eslint/eslint-plugin
v6.0.0 support by @tclindner in https://github.com/tclindner/eslint-config-typescript-tc/pull/664
@typescript-eslint/*@6.x.x
by @tclindner in https://github.com/tclindner/eslint-config-typescript-tc/pull/669
@typescript-eslint/recommended
, @typescript-eslint/stylistic
, and @typescript-eslint/strict
to rule set.@typescript-eslint/eslint-plugin
v6.0.0 requires the .eslintrc.js file to include parserOptions
to be set with a valid tsconfig file. See the README
and/or @typescript-eslint/eslint-plugin
for more details.@typescript-eslint/parser
and @typescript-eslint/eslint-plugin
peerDep range to ^v6.0.0
eslint-plugin-unicorn
must be v48.0.1
+ for this config package to workFull Changelog: https://github.com/tclindner/eslint-config-typescript-tc/compare/v7.0.0...v8.0.0-beta.1
Published by tclindner over 1 year ago
Full Changelog: https://github.com/tclindner/eslint-config-typescript-tc/compare/v6.0.0...v7.0.0
Published by tclindner over 2 years ago
Full Changelog: https://github.com/tclindner/eslint-config-typescript-tc/compare/v5.0.0...v6.0.0
Published by tclindner almost 3 years ago
eslint
^8.0.0
and @typescript-eslint/parser
^5.5.0
Full Changelog: https://github.com/tclindner/eslint-config-typescript-tc/compare/v4.1.0...v5.0.0
Published by tclindner about 3 years ago
Full Changelog: https://github.com/tclindner/eslint-config-typescript-tc/compare/v4.0.0...v4.1.0
Published by tclindner about 3 years ago
no-explicit-any
will now throw an error instead of a warning. (#209)Published by tclindner over 3 years ago
Published by tclindner over 3 years ago
Published by tclindner over 3 years ago
variables
and parameters
(#85)Published by tclindner over 3 years ago
Use @typescript-eslint/parser
for '.ts', '.tsx', '.d.ts'
files
Update import/resolver
and import/extensions
to include TypeScript files
Added the following rules:
@typescript-eslint/array-type
- Set to array
.@typescript-eslint/consistent-type-definitions
- Set to interface
.@typescript-eslint/explicit-function-return-type
- off
for non-TS files. error
for TS files.@typescript-eslint/method-signature-style
@typescript-eslint/naming-convention
default
: camelCase
variable
: camelCase
or UPPER_CASE
typeLike
(class, interface, typeAlias, enum, typeParameter): PascalCase
enumMember
: PascalCase
@typescript-eslint/no-dynamic-delete
@typescript-eslint/prefer-enum-initializers
@typescript-eslint/prefer-optional-chain
@typescript-eslint/prefer-ts-expect-error
Switched to @typescript-eslint
variants of default ESLint rules:
lines-between-class-members
=> @typescript-eslint/lines-between-class-members
no-dupe-class-members
=> @typescript-eslint/no-dupe-class-members
no-empty-function
=> @typescript-eslint/no-empty-function
no-loop-func
=> @typescript-eslint/no-loop-func
no-redeclare
=> @typescript-eslint/no-redeclare
no-shadow
=> @typescript-eslint/no-shadow
no-array-constructor
=> @typescript-eslint/no-array-constructor
no-unused-expressions
=> @typescript-eslint/no-unused-expressions
no-use-before-define
=> @typescript-eslint/no-use-before-define
no-useless-constructor
=> @typescript-eslint/no-useless-constructor
no-unused-vars
=> @typescript-eslint/no-unused-vars
Add ts
and tsx
support to import/extensions
and import/no-extraneous-dependencies
.
Turn off the following ESLint rules in favor of the TypeScript compiler.
constructor-super
getter-return
no-const-assign
no-dupe-args
no-dupe-keys
no-func-assign
no-new-symbol
no-obj-calls
no-this-before-super
no-undef
no-unreachable
no-unsafe-negation
valid-typeof
import/named
import/no-unresolved
Published by tclindner about 4 years ago
First release, yay ๐