Skip to content

Commit 579d326

Browse files
authored
Fix eslint config (#71)
1 parent 40fe41a commit 579d326

File tree

4 files changed

+770
-47
lines changed

4 files changed

+770
-47
lines changed

.eslintrc.js

Lines changed: 0 additions & 37 deletions
This file was deleted.

eslint.config.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
const js = require("@eslint/js");
22
const jest = require('eslint-plugin-jest');
3+
const ts = require('typescript-eslint');
34

45
const ckjsSpecificSettings = {
56
languageOptions: {
@@ -32,7 +33,7 @@ const ckjsSpecificJestSettings = {
3233
}
3334
};
3435

35-
module.exports = [
36+
module.exports = ts.config(
3637
{
3738
...js.configs.recommended,
3839
files: ["lib/**/*.js", "test/promisified/**/*.js"],
@@ -50,5 +51,9 @@ module.exports = [
5051
{
5152
...ckjsSpecificJestSettings,
5253
files: ["test/promisified/**/*.js"]
53-
}
54-
];
54+
},
55+
...ts.configs.recommended.map((config) => ({
56+
...config,
57+
ignores: ["**/*.js"],
58+
})),
59+
);

0 commit comments

Comments
 (0)