Skip to content

Commit 60be4b2

Browse files
authored
[NG2IM-150] Upgrade ddts to support TS 4.6 and upgrade packages (#45)
* Upgraded packages * Add new rules for prettier and for eslint * lint-staged: fist eslint, then prettier * Change version tot 3.0.0
1 parent dc7211c commit 60be4b2

File tree

5 files changed

+339
-400
lines changed

5 files changed

+339
-400
lines changed

.eslintrc.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@
3636
{
3737
"selector": "property",
3838
"format": ["camelCase", "UPPER_CASE", "PascalCase", "snake_case"],
39+
"filter": {
40+
"regex": "^[-]",
41+
"match": true
42+
},
3943
"leadingUnderscore": "allow"
4044
}
4145
],
@@ -120,6 +124,7 @@
120124
"exceptions": ["*"]
121125
}
122126
],
127+
"sort-imports": ["error", { "ignoreDeclarationSort": true }]
123128
"sort-keys": "off",
124129
"use-isnan": "error"
125130
}

.lintstagedrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"*.ts": [
3-
"prettier --write --config ./node_modules/ddts/.prettierrc.yml",
43
"eslint --fix",
4+
"prettier --write --config ./node_modules/ddts/.prettierrc.yml",
55
"sh ./node_modules/ddts/scripts/index.sh"
66
],
77
"*.scss": [

.prettierrc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ singleQuote: true
77
trailingComma: 'all'
88
bracketSpacing: true
99
arrowParens: 'always'
10+
singleAttributePerLine: true

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ddts",
3-
"version": "2.2.1",
3+
"version": "3.0.0",
44
"main": ".eslintrc.json",
55
"scripts": {
66
"postinstall": "./install-hooks"
@@ -9,15 +9,15 @@
99
"author": "Connor Harwood <[email protected]>",
1010
"license": "MIT",
1111
"dependencies": {
12-
"@typescript-eslint/eslint-plugin": "5.13.0",
13-
"@typescript-eslint/parser": "5.13.0",
14-
"eslint": "^8.10.0",
15-
"eslint-config-prettier": "^8.3.0",
16-
"eslint-plugin-ban": "^1.6.0",
17-
"eslint-plugin-import": "2.25.4",
18-
"eslint-plugin-prefer-arrow": "1.2.2",
19-
"lint-staged": "^11.2.6",
20-
"prettier": "^2.5.1",
21-
"typescript": ">=3.3.x <=4.2.x "
12+
"@typescript-eslint/eslint-plugin": "5.18.0",
13+
"@typescript-eslint/parser": "5.18.0",
14+
"eslint": "8.12.0",
15+
"eslint-config-prettier": "8.5.0",
16+
"eslint-plugin-ban": "1.6.0",
17+
"eslint-plugin-import": "2.26.0",
18+
"eslint-plugin-prefer-arrow": "1.2.3",
19+
"lint-staged": "13.0.3",
20+
"prettier": "2.7.1",
21+
"typescript": ">=3.3.x <=4.6.x "
2222
}
2323
}

0 commit comments

Comments
 (0)