You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment, we're using one of the restrict-to-esNNNN presets, which are really great. However, when using TypeScript, there are a lot of things that tsc transpiles correctly regardless of target, so we end up "canceling" a set of rules that are perfectly fine with TypeScript:
## ES2020# Disallow nullish coalescing operators# https://eslint-plugin-es.mysticatea.dev/rules/no-nullish-coalescing-operators.html# This is correctly transpiled by TypeScriptes/no-nullish-coalescing-operators: off# Disallow optional chaining# https://eslint-plugin-es.mysticatea.dev/rules/no-optional-chaining.html# This is correctly transpiled by TypeScriptes/no-optional-chaining: off## ES2019# Disallow optional catch binding# https://eslint-plugin-es.mysticatea.dev/rules/no-optional-catch-binding.html# This is correctly transpiled by TypeScriptes/no-optional-catch-binding: off## ES2018# Disallow async iteration# https://eslint-plugin-es.mysticatea.dev/rules/no-async-iteration.html# This is correctly transpiled by TypeScriptes/no-async-iteration: off# Disallow rest/spread properties# https://eslint-plugin-es.mysticatea.dev/rules/no-rest-spread-properties.html# This is correctly transpiled by TypeScriptes/no-rest-spread-properties: off## ES2017# Disallow async function declarations# https://eslint-plugin-es.mysticatea.dev/rules/no-async-functions.html# This is correctly transpiled by TypeScriptes/no-async-functions: off# Disallow trailing commas in parameter/argument lists# https://eslint-plugin-es.mysticatea.dev/rules/no-trailing-function-commas.html# This is correctly transpiled by TypeScriptes/no-trailing-function-commas: off
It would be really nice if there was an extra preset to load at the end that cancels those rule correctly, similarly to how eslint-config-prettier turns off all rules that are unnecessary:
At the moment, we're using one of the
restrict-to-esNNNN
presets, which are really great. However, when using TypeScript, there are a lot of things thattsc
transpiles correctly regardless of target, so we end up "canceling" a set of rules that are perfectly fine with TypeScript:It would be really nice if there was an extra preset to load at the end that cancels those rule correctly, similarly to how
eslint-config-prettier
turns off all rules that are unnecessary:The text was updated successfully, but these errors were encountered: