@solvro/config 1.0.0 → 1.0.2
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/README.md +2 -2
- package/eslint/_base.js +0 -1
- package/eslint/next.js +11 -0
- package/package.json +6 -6
- package/prettier/index.js +12 -1
- package/eslint/rules/comments.js +0 -11
package/README.md
CHANGED
@@ -6,8 +6,8 @@
|
|
6
6
|
<a aria-label="License" href="https://github.com/Solvro/lib-web-solvro-config/blob/main/LICENSE.md">
|
7
7
|
<img alt="" src="https://img.shields.io/npm/l/@solvro/config.svg?style=flat-square&labelColor=000000">
|
8
8
|
</a>
|
9
|
-
<a aria-label="CI status" href="https://github.com/Solvro/lib-web-solvro-config/actions/workflows/
|
10
|
-
<img alt="" src="https://img.shields.io/github/actions/workflow/status/Solvro/lib-web-solvro-config/
|
9
|
+
<a aria-label="CI status" href="https://github.com/Solvro/lib-web-solvro-config/actions/workflows/ci.yml?query=event%3Apush+branch%3Amain">
|
10
|
+
<img alt="" src="https://img.shields.io/github/actions/workflow/status/Solvro/lib-web-solvro-config/ci.yml?event=push&branch=main&style=flat-square&labelColor=000000">
|
11
11
|
</a>
|
12
12
|
|
13
13
|
## Wprowadzenie
|
package/eslint/_base.js
CHANGED
@@ -12,7 +12,6 @@ module.exports = {
|
|
12
12
|
"plugin:import/recommended",
|
13
13
|
"prettier",
|
14
14
|
require.resolve("./rules/best-practice"),
|
15
|
-
require.resolve("./rules/comments"),
|
16
15
|
require.resolve("./rules/es6"),
|
17
16
|
require.resolve("./rules/import"),
|
18
17
|
require.resolve("./rules/possible-errors"),
|
package/eslint/next.js
CHANGED
@@ -4,4 +4,15 @@ requirePackage("next", "@next/eslint-plugin-next");
|
|
4
4
|
|
5
5
|
module.exports = {
|
6
6
|
extends: ["plugin:@next/next/recommended"],
|
7
|
+
overrides: [
|
8
|
+
{
|
9
|
+
files: [
|
10
|
+
"**/pages/**/*.{js,ts,jsx,tsx}",
|
11
|
+
"**/app/**/{loading,layout,page,template}.{js,ts,jsx,tsx}",
|
12
|
+
],
|
13
|
+
rules: {
|
14
|
+
"import/no-default-export": "off",
|
15
|
+
},
|
16
|
+
},
|
17
|
+
],
|
7
18
|
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@solvro/config",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.2",
|
4
4
|
"description": "Solvro's engineering style guide",
|
5
5
|
"homepage": "https://github.com/Solvro/lib-web-solvro-config#readme",
|
6
6
|
"bugs": {
|
@@ -37,13 +37,13 @@
|
|
37
37
|
},
|
38
38
|
"prettier": "./prettier",
|
39
39
|
"dependencies": {
|
40
|
-
"@rushstack/eslint-patch": "^1.
|
41
|
-
"@
|
40
|
+
"@rushstack/eslint-patch": "^1.10.4",
|
41
|
+
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
|
42
|
+
"@typescript-eslint/eslint-plugin": "^7.18.0",
|
42
43
|
"@typescript-eslint/parser": "^7.18.0",
|
43
44
|
"eslint-config-prettier": "^9.1.0",
|
44
45
|
"eslint-import-resolver-alias": "^1.1.2",
|
45
46
|
"eslint-import-resolver-typescript": "^3.6.3",
|
46
|
-
"eslint-plugin-eslint-comments": "^3.2.0",
|
47
47
|
"eslint-plugin-import": "^2.31.0",
|
48
48
|
"eslint-plugin-jest": "^27.9.0",
|
49
49
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
@@ -54,7 +54,8 @@
|
|
54
54
|
"eslint-plugin-tsdoc": "^0.4.0",
|
55
55
|
"eslint-plugin-unicorn": "^56.0.1",
|
56
56
|
"eslint-plugin-vitest": "^0.3.26",
|
57
|
-
"prettier-plugin-packagejson": "^2.5.6"
|
57
|
+
"prettier-plugin-packagejson": "^2.5.6",
|
58
|
+
"prettier-plugin-tailwindcss": "^0.6.9"
|
58
59
|
},
|
59
60
|
"devDependencies": {
|
60
61
|
"@commitlint/cli": "^19.6.0",
|
@@ -64,7 +65,6 @@
|
|
64
65
|
"husky": "^9.1.7",
|
65
66
|
"lint-staged": "^15.2.10",
|
66
67
|
"prettier": "^3.4.1",
|
67
|
-
"prettier-plugin-organize-imports": "^4.1.0",
|
68
68
|
"semantic-release": "^23.1.1",
|
69
69
|
"typescript": "^5.7.2"
|
70
70
|
},
|
package/prettier/index.js
CHANGED
@@ -9,10 +9,21 @@ const overridableDefaults = {
|
|
9
9
|
tabWidth: 2,
|
10
10
|
printWidth: 80,
|
11
11
|
useTabs: false,
|
12
|
+
arrowParens: "always",
|
13
|
+
trailingComma: "all",
|
14
|
+
semi: true,
|
15
|
+
quoteProps: "as-needed",
|
12
16
|
};
|
13
17
|
|
14
18
|
module.exports = {
|
15
19
|
...overridableDefaults,
|
16
20
|
singleQuote: false,
|
17
|
-
plugins: [
|
21
|
+
plugins: [
|
22
|
+
"prettier-plugin-packagejson",
|
23
|
+
"@trivago/prettier-plugin-sort-imports",
|
24
|
+
"prettier-plugin-tailwindcss",
|
25
|
+
],
|
26
|
+
importOrderSeparation: true,
|
27
|
+
importOrderSortSpecifiers: true,
|
28
|
+
importOrder: ["^@assets/(.*)$", "<THIRD_PARTY_MODULES>", "^@/(.*)$", "^[./]"],
|
18
29
|
};
|
package/eslint/rules/comments.js
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
module.exports = {
|
2
|
-
plugins: ["eslint-comments"],
|
3
|
-
rules: {
|
4
|
-
/**
|
5
|
-
* Require comments on ESlint disable directives.
|
6
|
-
*
|
7
|
-
* 🚫 Not fixable - https://mysticatea.github.io/eslint-plugin-eslint-comments/rules/require-description.html
|
8
|
-
*/
|
9
|
-
"eslint-comments/require-description": "error",
|
10
|
-
},
|
11
|
-
};
|