@cherepanov.pavel/shareable-config 1.0.1 → 1.0.3
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
CHANGED
|
@@ -51,7 +51,17 @@ import {
|
|
|
51
51
|
jsConfig,
|
|
52
52
|
tsConfig,
|
|
53
53
|
vueConfig,
|
|
54
|
-
} from '@
|
|
54
|
+
} from '@cherepanov.pavel/shareable-config/tools/eslint-config/index.js';
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Before:
|
|
58
|
+
```js
|
|
59
|
+
import baseConfig from './tools/stylelint-config/config.js';
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
After:
|
|
63
|
+
```js
|
|
64
|
+
import baseConfig from '@cherepanov.pavel/shareable-config/tools/stylelint-config/config.js';
|
|
55
65
|
```
|
|
56
66
|
|
|
57
67
|
5. **Override rules via the `override` function in your own configs where needed.**
|
|
@@ -70,12 +80,12 @@ import {
|
|
|
70
80
|
|
|
71
81
|
After installing the package, run:
|
|
72
82
|
```sh
|
|
73
|
-
npx -p "@
|
|
83
|
+
npx -p "@cherepanov.pavel/shareable-config" set-env
|
|
74
84
|
```
|
|
75
85
|
|
|
76
86
|
Then run:
|
|
77
87
|
```sh
|
|
78
|
-
npx -p "@
|
|
88
|
+
npx -p "@cherepanov.pavel/shareable-config" get-all
|
|
79
89
|
```
|
|
80
90
|
|
|
81
91
|
or run any other command if you want to update partially.
|
package/package.json
CHANGED
|
@@ -1,63 +1,64 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cherepanov.pavel/shareable-config",
|
|
3
3
|
"description": "setup for new repositories",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"devEngines": {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
7
|
+
"packageManager": {
|
|
8
|
+
"name": "npm",
|
|
9
|
+
"version": "12.0.2"
|
|
10
|
+
},
|
|
11
|
+
"runtime": {
|
|
12
|
+
"name": "node",
|
|
13
|
+
"version": "26.7.0"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
16
|
"repository": {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "https://github.com/Cherepanov-Pavel/shareable-config"
|
|
19
|
+
},
|
|
20
20
|
"files": [
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
21
|
+
"env.json5",
|
|
22
|
+
"env.json5.set.js",
|
|
23
|
+
".editorconfig",
|
|
24
|
+
".editorconfig-get.js",
|
|
25
|
+
".gitattributes",
|
|
26
|
+
".gitattributes-get.js",
|
|
27
|
+
".gitignore",
|
|
28
|
+
".gitignore-get.js",
|
|
29
|
+
".vscode/",
|
|
30
|
+
"tools/",
|
|
31
|
+
"utils/",
|
|
32
|
+
"jsconfig.json"
|
|
33
|
+
],
|
|
34
|
+
"bin": {
|
|
35
|
+
"set-env": "./env.json5.set.js",
|
|
36
|
+
"get-all": "./.get-all.js",
|
|
37
|
+
"get-editorconfig": "./.editorconfig-get.js",
|
|
38
|
+
"get-gitattributes": "./.gitattributes-get.js",
|
|
39
|
+
"get-gitignore": "./.gitignore-get.js",
|
|
40
|
+
"get-extensions": "./.vscode/extensions.json-get.js",
|
|
41
|
+
"get-settings": "./.vscode/settings.json-get.js",
|
|
42
|
+
"get-code-snippets": "./.vscode/.code-snippets-get.js"
|
|
43
|
+
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@eslint/compat": "
|
|
46
|
-
"@stylistic/eslint-plugin": "
|
|
47
|
-
"@stylistic/stylelint-plugin": "
|
|
48
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
49
|
-
"@typescript-eslint/parser": "^8.
|
|
50
|
-
"eslint": "^10.
|
|
51
|
-
"eslint-plugin-vue": "^10.
|
|
52
|
-
"fs-extra": "^11.
|
|
53
|
-
"
|
|
45
|
+
"@eslint/compat": "2.1.0",
|
|
46
|
+
"@stylistic/eslint-plugin": "5.10.0",
|
|
47
|
+
"@stylistic/stylelint-plugin": "5.2.1",
|
|
48
|
+
"@typescript-eslint/eslint-plugin": "^8.66.0",
|
|
49
|
+
"@typescript-eslint/parser": "^8.66.0",
|
|
50
|
+
"eslint": "^10.8.1",
|
|
51
|
+
"eslint-plugin-vue": "^10.10.0",
|
|
52
|
+
"fs-extra": "^11.4.0",
|
|
53
|
+
"globals": "^17.9.0",
|
|
54
|
+
"jiti": "^2.7.0",
|
|
54
55
|
"json5": "^2.2.3",
|
|
55
|
-
"postcss-html": "^
|
|
56
|
-
"stylelint": "^
|
|
57
|
-
"stylelint-config-standard": "^
|
|
58
|
-
"stylelint-config-standard-scss": "^
|
|
59
|
-
"stylelint-config-standard-vue": "^
|
|
60
|
-
"stylelint-order": "^
|
|
61
|
-
"vue-eslint-parser": "^10.4.
|
|
56
|
+
"postcss-html": "^2.0.0",
|
|
57
|
+
"stylelint": "^17.14.1",
|
|
58
|
+
"stylelint-config-standard": "^40.0.0",
|
|
59
|
+
"stylelint-config-standard-scss": "^17.0.0",
|
|
60
|
+
"stylelint-config-standard-vue": "^2.0.0",
|
|
61
|
+
"stylelint-order": "^8.1.1",
|
|
62
|
+
"vue-eslint-parser": "^10.4.1"
|
|
62
63
|
}
|
|
63
64
|
}
|
|
@@ -5,7 +5,7 @@ export const possibleProblemRules = {
|
|
|
5
5
|
'vue/attributes-order': [ERROR],
|
|
6
6
|
'vue/block-lang': [OFF],
|
|
7
7
|
'vue/block-order': [ERROR, {
|
|
8
|
-
order: ['
|
|
8
|
+
order: ['script', 'template', 'style'],
|
|
9
9
|
}],
|
|
10
10
|
'vue/component-api-style': [ERROR, ['script-setup']],
|
|
11
11
|
'vue/component-definition-name-casing': [ERROR, 'PascalCase'],
|