Skip to content
This repository was archived by the owner on Sep 27, 2023. It is now read-only.

Commit 174fb12

Browse files
authored
Merge pull request #47 from BuffettCode/development
Release v7
2 parents e20474a + deccf4f commit 174fb12

File tree

85 files changed

+15161
-459
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+15161
-459
lines changed

.eslintrc.js

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ module.exports = {
88
'plugin:@typescript-eslint/recommended',
99
'plugin:@typescript-eslint/eslint-recommended',
1010
'plugin:prettier/recommended',
11+
'plugin:import/recommended',
12+
'plugin:import/typescript',
1113
'prettier/@typescript-eslint'
1214
],
1315
globals: {
@@ -19,7 +21,16 @@ module.exports = {
1921
ecmaVersion: 2018,
2022
sourceType: 'module'
2123
},
22-
plugins: ['@typescript-eslint'],
23-
rules: {},
24-
ignorePatterns: ['dist/', 'node_modules/']
24+
plugins: ['@typescript-eslint', 'import'],
25+
rules: {
26+
"import/order": [2, { "alphabetize": { "order": "asc" } }]
27+
},
28+
ignorePatterns: ['dist/', 'node_modules/'],
29+
settings: {
30+
"import/resolver": {
31+
typescript: {
32+
alwaysTryTypes: true
33+
}
34+
}
35+
}
2536
}

jest.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
module.exports = {
2-
preset: 'ts-jest'
2+
preset: 'ts-jest',
3+
moduleNameMapper: {
4+
'~/(.*)': '<rootDir>/src/$1'
5+
}
36
}

0 commit comments

Comments
 (0)