Skip to content

Commit

Permalink
switching from tslint (deprecated) to eslint (#463)
Browse files Browse the repository at this point in the history
* - switching from tslint (deprecated) to eslint

Co-authored-by: Anton Gilgur <4970083+agilgur5@users.noreply.github.com>
  • Loading branch information
ezolenko and agilgur5 committed Sep 26, 2023
1 parent fc85376 commit 592ed5c
Show file tree
Hide file tree
Showing 9 changed files with 13,601 additions and 5,313 deletions.
11 changes: 11 additions & 0 deletions .eslintrc.cjs
@@ -0,0 +1,11 @@
/* eslint-env node */
module.exports = {
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
root: true,
ignorePatterns: ['dist/**', 'node_modules/**', 'build-self/**', '*.js', "__tests__/integration/fixtures/errors/**"],
rules: {
"@typescript-eslint/no-explicit-any": "off", // these are explicit, so they are intentional
}
};
2 changes: 1 addition & 1 deletion __tests__/fixtures/context.ts
Expand Up @@ -18,4 +18,4 @@ export function makeContext(): PluginContext & RollupContext {
info: jest.fn(returnText),
debug: jest.fn(returnText),
} as unknown as PluginContext & RollupContext;
};
}
1 change: 1 addition & 0 deletions __tests__/tslib.spec.ts
Expand Up @@ -14,6 +14,7 @@ test("tslib", async () => {
jest.unmock("tslib/package.json");

const { tslibVersion, tslibSource } = await import("../src/tslib");
// eslint-disable-next-line @typescript-eslint/no-var-requires
expect(tslibVersion).toEqual(require("tslib/package.json").version);

const tslibES6 = await fs.readFile(require.resolve("tslib/tslib.es6.js"), "utf8");
Expand Down

0 comments on commit 592ed5c

Please sign in to comment.