@alexlit/lint-kit 97.0.0 → 98.0.1
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/LICENSE +11 -13
- package/README.md +91 -78
- package/package.json +8 -8
package/LICENSE
CHANGED
|
@@ -2,21 +2,19 @@ MIT License
|
|
|
2
2
|
|
|
3
3
|
Copyright (c) 2020 Alexey Litovchenko
|
|
4
4
|
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
6
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
7
|
+
the Software without restriction, including without limitation the rights to
|
|
8
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
9
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
10
|
+
subject to the following conditions:
|
|
11
11
|
|
|
12
12
|
The above copyright notice and this permission notice shall be included in all
|
|
13
13
|
copies or substantial portions of the Software.
|
|
14
14
|
|
|
15
15
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
SOFTWARE.
|
|
22
|
-
© 2020 GitHub, Inc.
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
17
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
18
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
19
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
20
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
CHANGED
|
@@ -12,93 +12,103 @@ npm i @alexlit/lint-kit -D
|
|
|
12
12
|
|
|
13
13
|
## Connection
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
15
|
+
### [Prettier](https://github.com/alex-lit/config-prettier)
|
|
16
|
+
|
|
17
|
+
`.prettierrc.js`:
|
|
18
|
+
|
|
19
|
+
```js
|
|
20
|
+
module.exports = {
|
|
21
|
+
...require('@alexlit/lint-kit/.prettierrc'),
|
|
22
|
+
};
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### [ESLint](https://github.com/alex-lit/config-eslint)
|
|
26
|
+
|
|
27
|
+
`.eslintrc.js`:
|
|
28
|
+
|
|
29
|
+
```js
|
|
30
|
+
module.exports = {
|
|
31
|
+
extends: ['./node_modules/@alexlit/lint-kit/.eslintrc.js'],
|
|
32
|
+
};
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### [StyleLint](https://github.com/alex-lit/config-stylelint)
|
|
36
|
+
|
|
37
|
+
`.stylelintrc.js`:
|
|
38
|
+
|
|
39
|
+
```js
|
|
40
|
+
module.exports = {
|
|
41
|
+
extends: ['@alexlit/lint-kit/.stylelintrc.js'],
|
|
42
|
+
|
|
43
|
+
ignoreFiles: [...require('@alexlit/lint-kit/.stylelintrc').ignoreFiles],
|
|
44
|
+
};
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### [HTMLLint](https://github.com/alex-lit/config-htmllint)
|
|
48
|
+
|
|
49
|
+
`.linthtmlrc.js`:
|
|
50
|
+
|
|
51
|
+
```js
|
|
52
|
+
module.exports = {
|
|
53
|
+
...require('@alexlit/lint-kit/.linthtmlrc'),
|
|
54
|
+
};
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
### [MarkdownLint](https://github.com/alex-lit/config-markdownlint)
|
|
58
|
+
|
|
59
|
+
`.markdownlintrc.js`:
|
|
60
|
+
|
|
61
|
+
```js
|
|
62
|
+
module.exports = {
|
|
63
|
+
...require('@alexlit/lint-kit/.markdownlintrc'),
|
|
64
|
+
};
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### [NPMLint](https://github.com/tclindner/npm-package-json-lint)
|
|
68
|
+
|
|
69
|
+
`.npmpackagejsonlintrc.json`:
|
|
70
|
+
|
|
71
|
+
```json
|
|
72
|
+
{
|
|
73
|
+
"extends": "@alexlit/lint-kit/.npmpackagejsonlintrc.json"
|
|
74
|
+
}
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
### [CommitLint](https://github.com/alex-lit/config-commitlint)
|
|
78
|
+
|
|
79
|
+
`.commitlintrc.js`:
|
|
80
|
+
|
|
81
|
+
```js
|
|
82
|
+
module.exports = {
|
|
83
|
+
extends: ['@alexlit/lint-kit/.commitlintrc.js'],
|
|
84
|
+
};
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
`.huskyrc.js`:
|
|
88
|
+
|
|
89
|
+
```js
|
|
90
|
+
module.exports = {
|
|
91
|
+
hooks: {
|
|
92
|
+
'commit-msg': 'commitlint -E HUSKY_GIT_PARAMS',
|
|
93
|
+
},
|
|
94
|
+
};
|
|
95
|
+
```
|
|
88
96
|
|
|
89
97
|
## Recipes
|
|
90
98
|
|
|
91
99
|
### Automatic launch linters and code fixes on commit
|
|
92
100
|
|
|
101
|
+
`.lintstagedrc.js`:
|
|
102
|
+
|
|
93
103
|
```js
|
|
94
|
-
// .lintstagedrc.js
|
|
95
104
|
module.exports = {
|
|
96
105
|
...require('@alexlit/lint-kit/.lintstagedrc'),
|
|
97
106
|
};
|
|
98
107
|
```
|
|
99
108
|
|
|
109
|
+
`.huskyrc.js`:
|
|
110
|
+
|
|
100
111
|
```js
|
|
101
|
-
// .huskyrc.js
|
|
102
112
|
module.exports = {
|
|
103
113
|
...require('@alexlit/lint-kit/.huskyrc'),
|
|
104
114
|
};
|
|
@@ -106,8 +116,9 @@ module.exports = {
|
|
|
106
116
|
|
|
107
117
|
### Launching linters manually
|
|
108
118
|
|
|
119
|
+
`package.json`:
|
|
120
|
+
|
|
109
121
|
```json
|
|
110
|
-
// package.json
|
|
111
122
|
"scripts": {
|
|
112
123
|
"lint": "./node_modules/@alexlit/lint-kit/scripts/lint.sh",
|
|
113
124
|
"lint:eslint": "./node_modules/@alexlit/lint-kit/scripts/lint.eslint.sh",
|
|
@@ -127,13 +138,15 @@ npm run lint fix
|
|
|
127
138
|
|
|
128
139
|
### Publishing a package
|
|
129
140
|
|
|
141
|
+
`.npmrc`:
|
|
142
|
+
|
|
130
143
|
```ini
|
|
131
|
-
# .npmrc
|
|
132
144
|
globalconfig="./node_modules/@alexlit/lint-kit/.npmrc"
|
|
133
145
|
```
|
|
134
146
|
|
|
147
|
+
`package.json`:
|
|
148
|
+
|
|
135
149
|
```json
|
|
136
|
-
// package.json
|
|
137
150
|
"scripts": {
|
|
138
151
|
"publish": "./node_modules/@alexlit/lint-kit/scripts/publish.sh",
|
|
139
152
|
"semver": "./node_modules/@alexlit/lint-kit/scripts/semver.sh",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alexlit/lint-kit",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "98.0.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Preset of configuration files and dependencies for linting web applications (designed for Vue.js with TypeScript)",
|
|
6
6
|
"keywords": [
|
|
@@ -63,17 +63,17 @@
|
|
|
63
63
|
"version": "./scripts/version.sh"
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@alexlit/config-commitlint": "^7.0.
|
|
67
|
-
"@alexlit/config-eslint": "^
|
|
66
|
+
"@alexlit/config-commitlint": "^7.0.1",
|
|
67
|
+
"@alexlit/config-eslint": "^62.0.0",
|
|
68
68
|
"@alexlit/config-htmllint": "^0.2.5",
|
|
69
69
|
"@alexlit/config-markdownlint": "^1.3.0",
|
|
70
|
-
"@alexlit/config-npmlint": "^
|
|
71
|
-
"@alexlit/config-prettier": "^
|
|
72
|
-
"@alexlit/config-stylelint": "^
|
|
70
|
+
"@alexlit/config-npmlint": "^4.0.0",
|
|
71
|
+
"@alexlit/config-prettier": "^11.0.1",
|
|
72
|
+
"@alexlit/config-stylelint": "^35.0.0",
|
|
73
73
|
"husky": "^4.3.8",
|
|
74
|
-
"lint-staged": "^13.2.
|
|
74
|
+
"lint-staged": "^13.2.3"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
|
-
"typescript": "^5.1.
|
|
77
|
+
"typescript": "^5.1.6"
|
|
78
78
|
}
|
|
79
79
|
}
|