Changes to configurations for 6.0.0 #6014
Replies: 11 comments 16 replies
-
I think this is a good style to enforce and most of the time having a duplicate is a bug.
Some codebases do use redundant constituents as a way of documenting possible values.
This rule was explicitly added to the recommended set in v3.0.0 - #1423 π LGTM - no commentβπ
|
Beta Was this translation helpful? Give feedback.
-
Hello, I was directed here from eslint/eslint#16557 (reply in thread) about feedback on the defaults. Looking at the configuration we have in our app, there are two rules that I would change from the table above:
Other than these, I'm on board with the changes to remove rules that have been deemed too opinionated or obsoleted by a code formatter. Thank-you for all the work you are doing on TS-ESLint integration. |
Beta Was this translation helpful? Give feedback.
-
Are there any specific criteria for |
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
Absolutely, apologies for the noise. |
Beta Was this translation helpful? Give feedback.
-
Where is |
Beta Was this translation helpful? Give feedback.
-
I'm testing the delta but it doesn't seem to be applying the new rules in some cases. For example, when I comment out my existing
|
Beta Was this translation helpful? Give feedback.
-
Would this be a good opportunity to change the default of |
Beta Was this translation helpful? Give feedback.
-
Noting a change from #7110: we're going to keep |
Beta Was this translation helpful? Give feedback.
-
#7110 was merged into the |
Beta Was this translation helpful? Give feedback.
-
Just discovered that the default where completely changed for |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Edit: see #7130 for small touchups to these changes
Overview
Similar to what @bradzacher did for 5.0.0 (in #3746), I'm going to put forward the new recommended set ahead of time. We're looking for feedback from the community before we go ahead and make the changes.
These new configuration values are what we are planning on releasing with the v6 major version as part of its breaking changes. You can read more about v6 in the Announcing typescript-eslint v6 beta blog post. The original plan for changing the configs was discussed in #6019.
π Please - give v6 a try, and give us feedback on the these new configuration values! Here or in the typescript-eslint Discord's
v6
channel. We'll cross-post any important discussions here for visibility.Table Key
Recommendations Table
adjacent-overload-signatures
array-type
await-thenable
ban-ts-comment
ban-tslint-comment
ban-types
brace-style
class-literal-property-style
comma-dangle
comma-spacing
consistent-generic-constructors
consistent-indexed-object-style
consistent-type-assertions
consistent-type-definitions
consistent-type-exports
consistent-type-imports
default-param-last
dot-notation
explicit-function-return-type
explicit-member-accessibility
explicit-module-boundary-types
func-call-spacing
indent
init-declarations
keyword-spacing
lines-between-class-members
lines-around-comment
member-delimiter-style
member-ordering
method-signature-style
naming-convention
no-array-constructor
no-base-to-string
no-confusing-non-null-assertion
no-confusing-void-expression
no-dupe-class-members
no-duplicate-enum-values
no-duplicate-imports
no-duplicate-type-constituents
no-dynamic-delete
no-empty-function
no-empty-interface
no-explicit-any
no-extra-non-null-assertion
no-extra-parens
no-extra-semi
no-extraneous-class
no-floating-promises
no-for-in-array
no-implicit-any-catch
no-implied-eval
no-inferrable-types
no-invalid-this
no-invalid-void-type
allowAsThisParameter
totrue
no-loop-func
no-loss-of-precision
no-magic-numbers
no-meaningless-void-operator
no-misused-new
no-misused-promises
no-mixed-enums
no-namespace
no-non-null-asserted-nullish-coalescing
no-non-null-asserted-optional-chain
no-non-null-assertion
no-parameter-properties
no-redeclare
no-redundant-type-constituents
no-require-imports
no-restricted-imports
no-shadow
no-this-alias
no-throw-literal
no-type-alias
no-unnecessary-boolean-literal-compare
no-unnecessary-condition
no-unnecessary-qualifier
no-unnecessary-type-arguments
no-unnecessary-type-assertion
no-unnecessary-type-constraint
no-unsafe-argument
no-unsafe-assignment
no-unsafe-call
no-unsafe-declaration-merging
no-unsafe-enum-comparison
no-unsafe-member-access
no-unsafe-return
no-unused-expressions
no-unused-vars
no-use-before-define
no-useless-constructor
no-useless-empty-export
no-var-requires
non-nullable-type-assertion-style
object-curly-spacing
padding-line-between-statements
parameter-properties
prefer-as-const
prefer-enum-initializers
prefer-for-of
prefer-function-type
prefer-includes
prefer-literal-enum-member
prefer-namespace-keyword
prefer-nullish-coalescing
false
prefer-optional-chain
prefer-readonly
prefer-readonly-parameter-types
prefer-reduce-type-parameter
prefer-regexp-exec
prefer-return-this-type
prefer-string-starts-ends-with
prefer-ts-expect-error
promise-function-async
quotes
require-array-sort-compare
ignoreStringArrays
require-await
restrict-plus-operands
checkCompoundAssignments
restrict-template-expressions
allowAny
return-await
semi
sort-type-constituents
sort-type-union-intersection-members
space-before-blocks
space-before-function-paren
space-infix-ops
strict-boolean-expressions
switch-exhaustiveness-check
triple-slash-reference
type-annotation-spacing
typedef
unbound-method
unified-signatures
Beta Was this translation helpful? Give feedback.
All reactions