Skip to content

Commit 0d9714d

Browse files
authored
Merge pull request #186 from dorny/update-dependencies
Update all dependencies to latest versions
2 parents 8848447 + aba461c commit 0d9714d

14 files changed

Lines changed: 33828 additions & 42043 deletions

File tree

.eslintignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
dist/
22
lib/
3-
node_modules/
3+
node_modules/
4+
jest.config.js

.eslintrc.json

Lines changed: 85 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,89 @@
11
{
2-
"plugins": ["jest", "@typescript-eslint"],
3-
"extends": ["plugin:github/recommended"],
4-
"parser": "@typescript-eslint/parser",
5-
"parserOptions": {
6-
"ecmaVersion": 9,
7-
"sourceType": "module",
8-
"project": "./tsconfig.json"
2+
"plugins": ["import", "jest", "@typescript-eslint"],
3+
"extends": ["plugin:github/recommended"],
4+
"parser": "@typescript-eslint/parser",
5+
"parserOptions": {
6+
"ecmaVersion": 9,
7+
"sourceType": "module",
8+
"project": "./tsconfig.json"
9+
},
10+
"rules": {
11+
"i18n-text/no-en": "off",
12+
"eslint-comments/no-use": "off",
13+
"import/no-namespace": "off",
14+
"no-shadow": "off",
15+
"no-unused-vars": "off",
16+
"prefer-template": "off",
17+
"@typescript-eslint/no-unused-vars": ["error", {"varsIgnorePattern": "^_"}],
18+
"@typescript-eslint/explicit-member-accessibility": ["error", {"accessibility": "no-public"}],
19+
"@typescript-eslint/no-require-imports": "error",
20+
"@typescript-eslint/array-type": "error",
21+
"@typescript-eslint/await-thenable": "error",
22+
"@typescript-eslint/ban-ts-comment": "error",
23+
"camelcase": "off",
24+
"@typescript-eslint/consistent-type-assertions": "error",
25+
"@typescript-eslint/explicit-function-return-type": ["error", {"allowExpressions": true}],
26+
"@typescript-eslint/func-call-spacing": ["error", "never"],
27+
"@typescript-eslint/no-array-constructor": "error",
28+
"@typescript-eslint/no-empty-interface": "error",
29+
"@typescript-eslint/no-explicit-any": "error",
30+
"@typescript-eslint/no-extraneous-class": "error",
31+
"@typescript-eslint/no-for-in-array": "error",
32+
"@typescript-eslint/no-inferrable-types": "error",
33+
"@typescript-eslint/no-misused-new": "error",
34+
"@typescript-eslint/no-namespace": "error",
35+
"@typescript-eslint/no-non-null-assertion": "warn",
36+
"@typescript-eslint/no-unnecessary-qualifier": "error",
37+
"@typescript-eslint/no-unnecessary-type-assertion": "error",
38+
"@typescript-eslint/no-useless-constructor": "error",
39+
"@typescript-eslint/no-var-requires": "error",
40+
"@typescript-eslint/prefer-for-of": "warn",
41+
"@typescript-eslint/prefer-function-type": "warn",
42+
"@typescript-eslint/prefer-includes": "error",
43+
"@typescript-eslint/prefer-string-starts-ends-with": "error",
44+
"@typescript-eslint/promise-function-async": "error",
45+
"@typescript-eslint/require-array-sort-compare": "error",
46+
"@typescript-eslint/restrict-plus-operands": "error",
47+
"semi": "off",
48+
"@typescript-eslint/semi": ["error", "never"],
49+
"@typescript-eslint/type-annotation-spacing": "error",
50+
"@typescript-eslint/unbound-method": "error"
51+
},
52+
"env": {
53+
"node": true,
54+
"es6": true,
55+
"jest/globals": true
56+
},
57+
"settings": {
58+
"import/parsers": {
59+
"@typescript-eslint/parser": [".ts", ".tsx"]
960
},
10-
"rules": {
11-
"camelcase": "off",
12-
"eslint-comments/no-use": "off",
13-
"import/no-namespace": "off",
14-
"no-shadow": "off",
15-
"no-unused-vars": "off",
16-
"prefer-template": "off",
17-
"semi": [ "error", "never"],
18-
"@typescript-eslint/explicit-member-accessibility": ["error", {"accessibility": "no-public"}],
19-
"@typescript-eslint/array-type": "error",
20-
"@typescript-eslint/await-thenable": "error",
21-
"@typescript-eslint/ban-ts-comment": "error",
22-
"@typescript-eslint/consistent-type-assertions": "error",
23-
"@typescript-eslint/explicit-function-return-type": ["error", {"allowExpressions": true}],
24-
"@typescript-eslint/func-call-spacing": ["error", "never"],
25-
"@typescript-eslint/no-array-constructor": "error",
26-
"@typescript-eslint/no-empty-interface": "error",
27-
"@typescript-eslint/no-explicit-any": "error",
28-
"@typescript-eslint/no-extraneous-class": "error",
29-
"@typescript-eslint/no-for-in-array": "error",
30-
"@typescript-eslint/no-inferrable-types": "error",
31-
"@typescript-eslint/no-misused-new": "error",
32-
"@typescript-eslint/no-namespace": "error",
33-
"@typescript-eslint/no-require-imports": "error",
34-
"@typescript-eslint/no-shadow": "error",
35-
"@typescript-eslint/no-non-null-assertion": "warn",
36-
"@typescript-eslint/no-unnecessary-qualifier": "error",
37-
"@typescript-eslint/no-unnecessary-type-assertion": "error",
38-
"@typescript-eslint/no-unused-vars": ["error", {"varsIgnorePattern": "^_"}],
39-
"@typescript-eslint/no-useless-constructor": "error",
40-
"@typescript-eslint/no-var-requires": "error",
41-
"@typescript-eslint/prefer-for-of": "warn",
42-
"@typescript-eslint/prefer-function-type": "warn",
43-
"@typescript-eslint/prefer-includes": "error",
44-
"@typescript-eslint/prefer-string-starts-ends-with": "error",
45-
"@typescript-eslint/promise-function-async": "error",
46-
"@typescript-eslint/require-array-sort-compare": "error",
47-
"@typescript-eslint/restrict-plus-operands": "error",
48-
"@typescript-eslint/semi": ["error", "never"],
49-
"@typescript-eslint/type-annotation-spacing": "error",
50-
"@typescript-eslint/unbound-method": "error"
51-
},
52-
"env": {
53-
"node": true,
54-
"es6": true,
55-
"jest/globals": true
61+
"import/resolver": {
62+
"typescript": {
63+
"alwaysTryTypes": true, // always try to resolve types under `<root>@types` directory even it doesn't contain any source code, like `@types/unist`
64+
65+
// Choose from one of the "project" configs below or omit to use <root>/tsconfig.json by default
66+
67+
// use <root>/path/to/folder/tsconfig.json
68+
"project": "path/to/folder",
69+
70+
// Multiple tsconfigs (Useful for monorepos)
71+
72+
// use a glob pattern
73+
"project": "packages/*/tsconfig.json",
74+
75+
// use an array
76+
"project": [
77+
"packages/module-a/tsconfig.json",
78+
"packages/module-b/tsconfig.json"
79+
],
80+
81+
// use an array of glob patterns
82+
"project": [
83+
"packages/*/tsconfig.json",
84+
"other-packages/*/tsconfig.json"
85+
]
86+
}
5687
}
5788
}
89+
}

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v2
17+
- run: node --version
1718
- run: npm ci
1819
- run: npm run build
1920
- run: npm run format-check

0 commit comments

Comments
 (0)