Skip to content

Commit 6273a75

Browse files
committed
Fixed Node 16 update
1 parent 4187f9f commit 6273a75

7 files changed

Lines changed: 1364 additions & 66 deletions

File tree

.eslintrc

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
"plugin:prettier/recommended",
1414
"prettier"
1515
],
16+
"plugins": [
17+
"import"
18+
],
1619
"parserOptions": {
1720
"project": "tsconfig.json",
1821
"sourceType": "module"
@@ -25,6 +28,7 @@
2528
"no-constant-condition": 0,
2629
"no-useless-escape": 0,
2730
"no-console": "error",
31+
"require-yield": 0,
2832
"eqeqeq": ["error", "smart"],
2933
"spaced-comment": [
3034
"warn",
@@ -46,6 +50,34 @@
4650
"ignoreConsecutiveComments": true
4751
}
4852
],
53+
"import/order": [
54+
"error",
55+
{
56+
"groups": [
57+
"type",
58+
"builtin",
59+
"external",
60+
"internal",
61+
"index",
62+
"sibling",
63+
"parent",
64+
"object"
65+
],
66+
"pathGroups": [
67+
{
68+
"pattern": "@",
69+
"group": "internal"
70+
},
71+
{
72+
"pattern": "@/**",
73+
"group": "internal"
74+
}
75+
],
76+
"pathGroupsExcludedImportTypes": [
77+
"type"
78+
]
79+
}
80+
],
4981
"@typescript-eslint/no-namespace": 0,
5082
"@typescript-eslint/no-explicit-any": 0,
5183
"@typescript-eslint/explicit-module-boundary-types": 0,
@@ -82,6 +114,12 @@
82114
"leadingUnderscore": "allow",
83115
"trailingUnderscore": "allowSingleOrDouble"
84116
},
117+
{
118+
"selector": "function",
119+
"format": ["camelCase", "PascalCase"],
120+
"leadingUnderscore": "allow",
121+
"trailingUnderscore": "allowSingleOrDouble"
122+
},
85123
{
86124
"selector": "variable",
87125
"format": ["camelCase", "UPPER_CASE", "PascalCase"],

.gitlab-ci.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ lint:
1111
interruptible: true
1212
script:
1313
- >
14-
nix-shell -I nixpkgs=./pkgs.nix --packages nodejs --run '
15-
npm install;
14+
nix-shell --run '
1615
npm run lint;
1716
'
1817
@@ -21,7 +20,6 @@ test:
2120
interruptible: true
2221
script:
2322
- >
24-
nix-shell -I nixpkgs=./pkgs.nix --packages nodejs --run '
25-
npm install;
23+
nix-shell --run '
2624
npm run test;
2725
'

0 commit comments

Comments
 (0)