Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

switching from tslint (deprecated) to eslint #463

Merged
merged 5 commits into from Sep 26, 2023
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 11 additions & 0 deletions .eslintrc.cjs
agilgur5 marked this conversation as resolved.
Show resolved Hide resolved
@@ -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",
ezolenko marked this conversation as resolved.
Show resolved Hide resolved
}
};
ezolenko marked this conversation as resolved.
Show resolved Hide resolved
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