Johnson Chu
Johnson Chu
~~1.0.14~~ 1.2.0 added the ~~`loadPluginRules`~~ convertConfig API in `@tsslint/eslint`, which is not a complete compatibility layer yet. #### Example ```ts import { defineConfig } from '@tsslint/config'; import { loadPluginRules }...
I find that the `convertConfig` API is sufficient to cover current use cases, since people mainly use TSSLint to add type-aware rules, full compatibility with ESLint config doesn't make much...
You can do this through the plugin API. ```ts import { Plugin, defineConfig } from '@tsslint/config'; export default defineConfig({ plugins: [ createIngorePlugin(/\/\/ tsslint-disable-next-line\n/g), createIngorePlugin(/\/\/ eslint-disable-next-line\n/g), ] }); function createIngorePlugin(pattern: RegExp):...
This is not yet a built-in feature, as projects migrating from ESLint may still need to support `eslint-disable-next-line` instead of `tsslint-disable-next-line`/`@tsslint-ignore`, so this syntax needs to be available configuration. I...
@tjx666 it can be disabled by `createDisableNextLinePlugin(false)`.
> ```ts > plugins: [ > createDisableNextLinePlugin( > true, > new RegExp(/\/\/\s*tslint-disable-next-line\b[ \t]*(?\S*)\b/g), > ), > createShowDocsActionPlugin(), > ], > ``` This is now available in 1.3.0.
> * type `m`, `server.connection.onDidOpenTextDocument` is executed. > 3. type `s`, `server.connection.onDidOpenTextDocument` is executed again. @nieyuyao what do type `m`, type `s` mean here?
Thank you for your report and collection of relevant information! https://github.com/vuejs/language-tools/commit/86e38db1a531b1cce24814da4a5c42aef75d987b#diff-93ac10dff6acb9af8511a96c6ef3bdabf647f4ed0a85a9fe1566a0cf320cf44aR157 is to fix the TS type of parameterless event. I have not yet come up with an alternative way...