Skip to content

Commit 94db7dc

Browse files
authored
Merge pull request #338 from rmuchall/jest-eslint
Migrate to jest/eslint
2 parents cdd78ad + 9e16b99 commit 94db7dc

28 files changed

+4874
-5810
lines changed

.editorconfig

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

.eslintrc.js

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
module.exports = {
2+
root: true,
3+
env: {
4+
node: true
5+
},
6+
parser: "@typescript-eslint/parser",
7+
parserOptions: {
8+
project: ['./tsconfig.json']
9+
},
10+
plugins: [
11+
"@typescript-eslint"
12+
],
13+
extends: [
14+
"eslint:recommended",
15+
"plugin:@typescript-eslint/eslint-recommended",
16+
"plugin:@typescript-eslint/recommended",
17+
"plugin:@typescript-eslint/recommended-requiring-type-checking"
18+
],
19+
ignorePatterns: ["**/*.js"],
20+
rules: {
21+
"no-case-declarations": "off",
22+
"@typescript-eslint/no-inferrable-types": "off",
23+
"@typescript-eslint/no-non-null-assertion": "off",
24+
"@typescript-eslint/no-unused-vars": "off",
25+
"@typescript-eslint/no-explicit-any": "off",
26+
"@typescript-eslint/member-delimiter-style": "off",
27+
"@typescript-eslint/member-ordering": "error",
28+
"@typescript-eslint/unbound-method": ["error", {
29+
"ignoreStatic": true
30+
}]
31+
}
32+
};

codecov.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

gulpfile.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

gulpfile.ts

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

jest.config.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
module.exports = {
2+
modulePaths: ["<rootDir>/node_modules"],
3+
transform: {
4+
"^.+\\.tsx?$": "ts-jest"
5+
},
6+
testRegex: "(/__test__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
7+
testEnvironment: "node",
8+
moduleFileExtensions: [
9+
"ts",
10+
"tsx",
11+
"js",
12+
"jsx",
13+
"json",
14+
"node"
15+
],
16+
modulePathIgnorePatterns: [
17+
"<rootDir>/build/"
18+
],
19+
coverageReporters: [
20+
// "html",
21+
// "lcov",
22+
"text-summary"
23+
]
24+
};

0 commit comments

Comments
 (0)