Skip to content

Commit 592ed5c

Browse files
ezolenkoagilgur5
andauthored
switching from tslint (deprecated) to eslint (#463)
* - switching from tslint (deprecated) to eslint Co-authored-by: Anton Gilgur <4970083+agilgur5@users.noreply.github.com>
1 parent fc85376 commit 592ed5c

File tree

9 files changed

+13601
-5313
lines changed

9 files changed

+13601
-5313
lines changed

.eslintrc.cjs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/* eslint-env node */
2+
module.exports = {
3+
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
4+
parser: '@typescript-eslint/parser',
5+
plugins: ['@typescript-eslint'],
6+
root: true,
7+
ignorePatterns: ['dist/**', 'node_modules/**', 'build-self/**', '*.js', "__tests__/integration/fixtures/errors/**"],
8+
rules: {
9+
"@typescript-eslint/no-explicit-any": "off", // these are explicit, so they are intentional
10+
}
11+
};

__tests__/fixtures/context.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ export function makeContext(): PluginContext & RollupContext {
1818
info: jest.fn(returnText),
1919
debug: jest.fn(returnText),
2020
} as unknown as PluginContext & RollupContext;
21-
};
21+
}

__tests__/tslib.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ test("tslib", async () => {
1414
jest.unmock("tslib/package.json");
1515

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

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

0 commit comments

Comments
 (0)