@toptal/davinci-syntax 11.1.0 → 11.1.3-alpha-fx-force-push-alpha-package.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/package.json +6 -4
- package/src/configs/.eslintrc +3 -1
- package/dist-package/package.json +0 -81
- package/src/__tests__/__snapshots__/eslint.test.ts.snap +0 -1102
- package/src/__tests__/eslint.test.ts +0 -309
- package/src/__tests__/no-relative-packages.test.js +0 -102
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 11.1.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1102](https://github.com/toptal/davinci/pull/1102) [`cf2e0b30`](https://github.com/toptal/davinci/commit/cf2e0b305a00c9b9a5686838ea11f7d62bba5c00) Thanks [@denieler](https://github.com/denieler)! - Fix packages internal dependencies to bump main @toptal/davinci package every time any internal package changed.
|
|
8
|
+
|
|
9
|
+
## 11.1.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#1085](https://github.com/toptal/davinci/pull/1085) [`c53f046e`](https://github.com/toptal/davinci/commit/c53f046e189da499fd7d7cfbea901405e1c80f9a) Thanks [@LashaJini](https://github.com/LashaJini)! - Add eslint rule to auto-remove unused imports.
|
|
14
|
+
|
|
3
15
|
## 11.1.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toptal/davinci-syntax",
|
|
3
|
-
"version": "11.1.
|
|
3
|
+
"version": "11.1.3-alpha-fx-force-push-alpha-package.6+0e7138f7",
|
|
4
4
|
"description": "Lint and prettier support",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@stylelint/postcss-css-in-js": "^0.37.2",
|
|
34
|
-
"@toptal/davinci-cli-shared": "
|
|
35
|
-
"@toptal/eslint-plugin-davinci": "
|
|
34
|
+
"@toptal/davinci-cli-shared": "1.5.1-alpha-fx-force-push-alpha-package.45+0e7138f7",
|
|
35
|
+
"@toptal/eslint-plugin-davinci": "4.0.1-alpha-fx-force-push-alpha-package.45+0e7138f7",
|
|
36
36
|
"@typescript-eslint/eslint-plugin": "^4.17.0",
|
|
37
37
|
"@typescript-eslint/parser": "^4.28.3",
|
|
38
38
|
"eslint": "^7.29.0",
|
|
@@ -51,6 +51,7 @@
|
|
|
51
51
|
"eslint-plugin-react": "^7.27.1",
|
|
52
52
|
"eslint-plugin-react-hooks": "^4.2.0",
|
|
53
53
|
"eslint-plugin-todo-plz": "^1.2.0",
|
|
54
|
+
"eslint-plugin-unused-imports": "1.1.5",
|
|
54
55
|
"husky": "^4.3.0",
|
|
55
56
|
"lint-staged": "^10.5.4",
|
|
56
57
|
"postcss-syntax": "^0.36.2",
|
|
@@ -77,5 +78,6 @@
|
|
|
77
78
|
"npm run lint:path",
|
|
78
79
|
"prettier"
|
|
79
80
|
]
|
|
80
|
-
}
|
|
81
|
+
},
|
|
82
|
+
"gitHead": "0e7138f7b9f0c8f22ba0ada9c6ed8143834ee642"
|
|
81
83
|
}
|
package/src/configs/.eslintrc
CHANGED
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
"jest",
|
|
15
15
|
"cypress",
|
|
16
16
|
"eslint-plugin-no-inline-styles",
|
|
17
|
+
"eslint-plugin-unused-imports",
|
|
17
18
|
"todo-plz",
|
|
18
19
|
"import",
|
|
19
20
|
"node"
|
|
@@ -301,7 +302,8 @@
|
|
|
301
302
|
// TODO: should be switched to error in the next major version (5.x) of syntax package
|
|
302
303
|
"no-inline-styles/no-inline-styles": "warn",
|
|
303
304
|
"curly": ["error", "all"],
|
|
304
|
-
"todo-plz/ticket-ref": ["warn", { "commentPattern": "TODO:\\s(.|\\n|\\r)*\\[(\\w+-[0-9]+[,\\s]*)+\\].*" }]
|
|
305
|
+
"todo-plz/ticket-ref": ["warn", { "commentPattern": "TODO:\\s(.|\\n|\\r)*\\[(\\w+-[0-9]+[,\\s]*)+\\].*" }],
|
|
306
|
+
"unused-imports/no-unused-imports": "warn"
|
|
305
307
|
},
|
|
306
308
|
"overrides": [
|
|
307
309
|
// Aggregated Jest/Pact/Cypress files
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@toptal/davinci-syntax",
|
|
3
|
-
"version": "11.1.0",
|
|
4
|
-
"description": "Lint and prettier support",
|
|
5
|
-
"publishConfig": {
|
|
6
|
-
"access": "public"
|
|
7
|
-
},
|
|
8
|
-
"keywords": [
|
|
9
|
-
"lint"
|
|
10
|
-
],
|
|
11
|
-
"author": "Toptal",
|
|
12
|
-
"homepage": "https://github.com/toptal/davinci/tree/master/packages/syntax#readme",
|
|
13
|
-
"license": "ISC",
|
|
14
|
-
"main": "src/index.js",
|
|
15
|
-
"bin": {
|
|
16
|
-
"davinci-syntax": "bin/davinci-syntax.js"
|
|
17
|
-
},
|
|
18
|
-
"repository": {
|
|
19
|
-
"type": "git",
|
|
20
|
-
"url": "git+https://github.com/toptal/davinci.git"
|
|
21
|
-
},
|
|
22
|
-
"scripts": {
|
|
23
|
-
"build:package": "../../bin/build-package.js",
|
|
24
|
-
"prepublishOnly": "../../bin/prepublish.js",
|
|
25
|
-
"lint:path": "eslint --ext=.js,.jsx,.ts,.tsx --color --fix",
|
|
26
|
-
"lint": "yarn run lint:path .",
|
|
27
|
-
"test": "echo \"Error: run tests from root\" && exit 1"
|
|
28
|
-
},
|
|
29
|
-
"bugs": {
|
|
30
|
-
"url": "https://github.com/toptal/davinci/issues"
|
|
31
|
-
},
|
|
32
|
-
"dependencies": {
|
|
33
|
-
"@stylelint/postcss-css-in-js": "^0.37.2",
|
|
34
|
-
"@toptal/davinci-cli-shared": "^1.5.0",
|
|
35
|
-
"@toptal/eslint-plugin-davinci": "^4.0.0",
|
|
36
|
-
"@typescript-eslint/eslint-plugin": "^4.17.0",
|
|
37
|
-
"@typescript-eslint/parser": "^4.28.3",
|
|
38
|
-
"eslint": "^7.29.0",
|
|
39
|
-
"eslint-config-prettier": "^8.3.0",
|
|
40
|
-
"eslint-config-prettier-standard": "^4.0.1",
|
|
41
|
-
"eslint-config-standard": "^16.0.3",
|
|
42
|
-
"eslint-config-standard-jsx": "^10.0.0",
|
|
43
|
-
"eslint-plugin-cypress": "^2.12.1",
|
|
44
|
-
"eslint-plugin-import": "^2.25.2",
|
|
45
|
-
"eslint-plugin-jest": "^24.1.5",
|
|
46
|
-
"eslint-plugin-jest-formatting": "^3.0.0",
|
|
47
|
-
"eslint-plugin-no-inline-styles": "^1.0.5",
|
|
48
|
-
"eslint-plugin-node": "^11.1.0",
|
|
49
|
-
"eslint-plugin-prettier": "^4.0.0",
|
|
50
|
-
"eslint-plugin-promise": "^5.1.0",
|
|
51
|
-
"eslint-plugin-react": "^7.27.1",
|
|
52
|
-
"eslint-plugin-react-hooks": "^4.2.0",
|
|
53
|
-
"eslint-plugin-todo-plz": "^1.2.0",
|
|
54
|
-
"husky": "^4.3.0",
|
|
55
|
-
"lint-staged": "^10.5.4",
|
|
56
|
-
"postcss-syntax": "^0.36.2",
|
|
57
|
-
"prettier": "^2.3.2",
|
|
58
|
-
"prettier-config-standard": "^4.0.0",
|
|
59
|
-
"stylelint": "^14.1.0",
|
|
60
|
-
"stylelint-config-standard": "^24.0.0",
|
|
61
|
-
"stylelint-config-styled-components": "^0.1.1",
|
|
62
|
-
"stylelint-processor-styled-components": "^1.10.0"
|
|
63
|
-
},
|
|
64
|
-
"devDependencies": {
|
|
65
|
-
"json5": "^2.2.0"
|
|
66
|
-
},
|
|
67
|
-
"peerDependencies": {
|
|
68
|
-
"typescript": "^3 || ^4"
|
|
69
|
-
},
|
|
70
|
-
"husky": {
|
|
71
|
-
"hooks": {
|
|
72
|
-
"pre-commit": "lint-staged"
|
|
73
|
-
}
|
|
74
|
-
},
|
|
75
|
-
"lint-staged": {
|
|
76
|
-
"*.{js,jsx,ts,tsx}": [
|
|
77
|
-
"npm run lint:path",
|
|
78
|
-
"prettier"
|
|
79
|
-
]
|
|
80
|
-
}
|
|
81
|
-
}
|