Skip to content

Commit f2b071c

Browse files
committed
Upgraded to Node 16
1 parent 866b77e commit f2b071c

File tree

9 files changed

+8408
-2942
lines changed

9 files changed

+8408
-2942
lines changed

.eslintrc

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"env": {
33
"browser": true,
44
"commonjs": true,
5-
"es6": true,
5+
"es2021": true,
66
"node": true,
77
"jest": true
88
},
@@ -11,26 +11,24 @@
1111
"eslint:recommended",
1212
"plugin:@typescript-eslint/recommended",
1313
"plugin:prettier/recommended",
14-
"prettier",
15-
"prettier/@typescript-eslint"
14+
"prettier"
1615
],
1716
"plugins": [
1817
"import"
1918
],
2019
"parserOptions": {
2120
"project": "tsconfig.json",
22-
"sourceType": "module",
23-
"ecmaVersion": 2020
21+
"sourceType": "module"
2422
},
2523
"rules": {
2624
"linebreak-style": ["error", "unix"],
2725
"no-empty": 1,
28-
"no-undef": 0,
2926
"no-useless-catch": 1,
3027
"no-prototype-builtins": 1,
3128
"no-constant-condition": 0,
32-
"no-useless-escape" : 0,
29+
"no-useless-escape": 0,
3330
"no-console": "error",
31+
"require-yield": 0,
3432
"eqeqeq": ["error", "smart"],
3533
"spaced-comment": [
3634
"warn",
@@ -94,7 +92,6 @@
9492
"@typescript-eslint/no-non-null-assertion": 0,
9593
"@typescript-eslint/no-this-alias": 0,
9694
"@typescript-eslint/no-var-requires": 0,
97-
"@typescript-eslint/ban-ts-comment": 0,
9895
"@typescript-eslint/no-empty-function": 0,
9996
"@typescript-eslint/no-empty-interface": 0,
10097
"@typescript-eslint/consistent-type-imports": ["error"],
@@ -117,6 +114,12 @@
117114
"leadingUnderscore": "allow",
118115
"trailingUnderscore": "allowSingleOrDouble"
119116
},
117+
{
118+
"selector": "function",
119+
"format": ["camelCase", "PascalCase"],
120+
"leadingUnderscore": "allow",
121+
"trailingUnderscore": "allowSingleOrDouble"
122+
},
120123
{
121124
"selector": "variable",
122125
"format": ["camelCase", "UPPER_CASE", "PascalCase"],
@@ -142,6 +145,12 @@
142145
"selector": "typeProperty",
143146
"format": null
144147
}
148+
],
149+
"@typescript-eslint/ban-ts-comment": [
150+
"error",
151+
{
152+
"ts-ignore": "allow-with-description"
153+
}
145154
]
146155
}
147156
}

.gitlab-ci.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ lint:
1414
interruptible: true
1515
script:
1616
- >
17-
nix-shell -I nixpkgs=./pkgs.nix --packages nodejs --run '
18-
npm install;
17+
nix-shell --run '
1918
npm run lint;
2019
'
2120
@@ -24,7 +23,6 @@ test:
2423
interruptible: true
2524
script:
2625
- >
27-
nix-shell -I nixpkgs=./pkgs.nix --packages nodejs --run '
28-
npm install;
26+
nix-shell --run '
2927
npm run test;
3028
'

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@
1212
/tmp
1313
/docs
1414
/benches
15+
/dist/tsbuildinfo

jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { pathsToModuleNameMapper } = require('ts-jest/utils');
1+
const { pathsToModuleNameMapper } = require('ts-jest');
22
const { compilerOptions } = require('./tsconfig');
33

44
module.exports = {

0 commit comments

Comments
 (0)