@ivuorinen/base-configs 1.0.0
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/.browserslistrc +1 -0
- package/.commitlintrc.json +3 -0
- package/.editorconfig +17 -0
- package/.github/CODEOWNERS +1 -0
- package/.github/SECURITY.md +11 -0
- package/.github/labels.yml +88 -0
- package/.github/renovate.json +4 -0
- package/.github/workflows/codeql-analysis.yml +46 -0
- package/.github/workflows/pr.yml +50 -0
- package/.github/workflows/publish.yml +76 -0
- package/.github/workflows/stale.yml +26 -0
- package/.markdownlint.json +13 -0
- package/.markdownlintignore +1 -0
- package/.nvmrc +1 -0
- package/.prettierignore +2 -0
- package/.prettierrc.json +1 -0
- package/.releaserc.json +3 -0
- package/.simple-git-hooks.json +3 -0
- package/.stylelintrc.json +3 -0
- package/.yamlignore +1 -0
- package/.yarnclean +45 -0
- package/.yarnrc.yml +1 -0
- package/CHANGELOG.md +912 -0
- package/LICENSE +21 -0
- package/README.md +104 -0
- package/eslint.config.mjs +12 -0
- package/package.json +64 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023 Ismo Vuorinen
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
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
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
# @ivuorinen/base-configs <!-- omit in toc -->
|
|
2
|
+
|
|
3
|
+
[![npm package][npm-badge]][npm-link] [![license MIT][license-badge]][license-link] [![ivuorinen's Code Style][style-badge]][style-link]
|
|
4
|
+
|
|
5
|
+
This is a meta package for all my base configs.
|
|
6
|
+
|
|
7
|
+
The main reason for this package is to make it easier to use these configs in other projects, and to update them all at once. No more pull requests to update all the configs one at a time!
|
|
8
|
+
|
|
9
|
+
[![license MIT][license-badge]][license-link] [![ivuorinen's Code Style][style-badge]][style-link]
|
|
10
|
+
|
|
11
|
+
> A collection of base configs for code quality and linting tools. Heavily based on `@demartini/base-configs`
|
|
12
|
+
|
|
13
|
+
## Table of Contents <!-- omit in toc -->
|
|
14
|
+
|
|
15
|
+
- [Usage](#usage)
|
|
16
|
+
- [Available Configurations](#available-configurations)
|
|
17
|
+
- [Badge](#badge)
|
|
18
|
+
- [Contributing](#contributing)
|
|
19
|
+
- [Changelog](#changelog)
|
|
20
|
+
- [License](#license)
|
|
21
|
+
|
|
22
|
+
## Usage
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
# npm
|
|
26
|
+
npm install @ivuorinen/base-configs --save-dev
|
|
27
|
+
|
|
28
|
+
# yarn
|
|
29
|
+
yarn add @ivuorinen/base-configs --dev
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Available Configurations
|
|
33
|
+
|
|
34
|
+
| Tool | Package | Version |
|
|
35
|
+
|-------------------------------------------|----------------------------------------------------|---------------------------------------------------------------------------------------|
|
|
36
|
+
| [Browserslist][browserslist-link] | [@ivuorinen/browserslist-config][pkg-browserlist] | [![@ivuorinen/browserslist-config][browserslist-badge]][browserslist-npm] |
|
|
37
|
+
| [CommitLint][commitlint-link] | [@ivuorinen/commitlint-config][pkg-commitlint] | [![@ivuorinen/commitlint-config][commitlint-badge]][commitlint-npm] |
|
|
38
|
+
| [ESLint][eslint-link] | [@ivuorinen/eslint-config][pkg-eslint] | [![@ivuorinen/eslint-config][eslint-badge]][eslint-npm] |
|
|
39
|
+
| [MarkdownLint][markdownlint-link] | [@ivuorinen/markdownlint-config][pkg-markdownlint] | [![@ivuorinen/markdownlint-config][markdownlint-badge]][markdownlint-npm] |
|
|
40
|
+
| [Prettier][prettier-link] | [@ivuorinen/prettier-config][pkg-prettier] | [![@ivuorinen/prettier-config][prettier-badge]][prettier-npm] |
|
|
41
|
+
| [semantic-release][semantic-release-link] | [@ivuorinen/semantic-release-config][pkg-src] | [![@ivuorinen/semantic-release-config][semantic-release-badge]][semantic-release-npm] |
|
|
42
|
+
| [stylelint][stylelint-link] | [@ivuorinen/stylelint-config][pkg-stylelint] | [![@ivuorinen/stylelint-config][stylelint-badge]][stylelint-npm] |
|
|
43
|
+
|
|
44
|
+
[pkg-browserlist]: https://www.npmjs.com/package/@ivuorinen/browserlist-config
|
|
45
|
+
[pkg-commitlint]: https://www.npmjs.com/package/@ivuorinen/commitlint-config
|
|
46
|
+
[pkg-eslint]: https://www.npmjs.com/package/@ivuorinen/eslint-config
|
|
47
|
+
[pkg-markdownlint]: https://www.npmjs.com/package/@ivuorinen/markdownlint-config
|
|
48
|
+
[pkg-prettier]: https://www.npmjs.com/package/@ivuorinen/prettier-config
|
|
49
|
+
[pkg-src]: https://www.npmjs.com/package/@ivuorinen/semantic-release-config
|
|
50
|
+
[pkg-stylelint]: https://www.npmjs.com/package/@ivuorinen/stylelint-config
|
|
51
|
+
|
|
52
|
+
## Badge
|
|
53
|
+
|
|
54
|
+
Show the world that you are using ivuorinen's code style in your project by including the badge in your readme.
|
|
55
|
+
|
|
56
|
+
[](https://github.com/ivuorinen/base-configs)
|
|
57
|
+
|
|
58
|
+
```md
|
|
59
|
+
[](https://github.com/ivuorinen/base-configs)
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## Contributing
|
|
63
|
+
|
|
64
|
+
If you are interested in helping contribute, please take a look at our [contribution guidelines][contributing-link] and open an [issue][issue-link] or [pull request][pull-request-link].
|
|
65
|
+
|
|
66
|
+
## Changelog
|
|
67
|
+
|
|
68
|
+
See [CHANGELOG][changelog-link] for a human-readable history of changes.
|
|
69
|
+
|
|
70
|
+
## License
|
|
71
|
+
|
|
72
|
+
Distributed under the MIT License. See [LICENSE][license-link] for more information.
|
|
73
|
+
|
|
74
|
+
[changelog-link]: ./CHANGELOG.md
|
|
75
|
+
[contributing-link]: https://github.com/ivuorinen/.github/blob/main/CONTRIBUTING.md
|
|
76
|
+
[issue-link]: https://github.com/ivuorinen/base-configs/issues
|
|
77
|
+
[license-badge]: https://img.shields.io/github/license/ivuorinen/base-configs?style=flat-square&labelColor=292a44&color=663399
|
|
78
|
+
[license-link]: ./LICENSE
|
|
79
|
+
[pull-request-link]: https://github.com/ivuorinen/base-configs/pulls
|
|
80
|
+
[style-badge]: https://img.shields.io/badge/code_style-ivuorinen%E2%80%99s-663399.svg?labelColor=292a44&style=flat-square
|
|
81
|
+
[style-link]: https://github.com/ivuorinen/base-configs
|
|
82
|
+
[browserslist-badge]: https://img.shields.io/npm/v/@ivuorinen/browserslist-config?style=flat-square&labelColor=292a44&color=663399
|
|
83
|
+
[browserslist-link]: https://github.com/browserslist/browserslist
|
|
84
|
+
[browserslist-npm]: https://www.npmjs.com/package/@ivuorinen/browserslist-config
|
|
85
|
+
[commitlint-badge]: https://img.shields.io/npm/v/@ivuorinen/commitlint-config?style=flat-square&labelColor=292a44&color=663399
|
|
86
|
+
[commitlint-link]: https://github.com/conventional-changelog/commitlint
|
|
87
|
+
[commitlint-npm]: https://www.npmjs.com/package/@ivuorinen/commitlint-config
|
|
88
|
+
[eslint-badge]: https://img.shields.io/npm/v/@ivuorinen/eslint-config?style=flat-square&labelColor=292a44&color=663399
|
|
89
|
+
[eslint-link]: https://github.com/eslint/eslint
|
|
90
|
+
[eslint-npm]: https://www.npmjs.com/package/@ivuorinen/eslint-config
|
|
91
|
+
[markdownlint-badge]: https://img.shields.io/npm/v/@ivuorinen/markdownlint-config?style=flat-square&labelColor=292a44&color=663399
|
|
92
|
+
[markdownlint-link]: https://github.com/DavidAnson/markdownlint
|
|
93
|
+
[markdownlint-npm]: https://www.npmjs.com/package/@ivuorinen/markdownlint-config
|
|
94
|
+
[prettier-badge]: https://img.shields.io/npm/v/@ivuorinen/prettier-config?style=flat-square&labelColor=292a44&color=663399
|
|
95
|
+
[prettier-link]: https://github.com/prettier/prettier
|
|
96
|
+
[prettier-npm]: https://www.npmjs.com/package/@ivuorinen/prettier-config
|
|
97
|
+
[semantic-release-badge]: https://img.shields.io/npm/v/@ivuorinen/semantic-release-config?style=flat-square&labelColor=292a44&color=663399
|
|
98
|
+
[semantic-release-link]: https://github.com/semantic-release/semantic-release
|
|
99
|
+
[semantic-release-npm]: https://www.npmjs.com/package/@ivuorinen/semantic-release-config
|
|
100
|
+
[stylelint-badge]: https://img.shields.io/npm/v/@ivuorinen/stylelint-config?style=flat-square&labelColor=292a44&color=663399
|
|
101
|
+
[stylelint-link]: https://github.com/stylelint/stylelint
|
|
102
|
+
[stylelint-npm]: https://www.npmjs.com/package/@ivuorinen/stylelint-config
|
|
103
|
+
[npm-badge]: https://img.shields.io/npm/v/@ivuorinen/base-configs?style=flat-square&labelColor=292a44&color=663399
|
|
104
|
+
[npm-link]: https://www.npmjs.com/package/@ivuorinen/base-configs
|
package/package.json
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ivuorinen/base-configs",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "ivuorinen's shareable configurations meta package",
|
|
6
|
+
"author": {
|
|
7
|
+
"name": "Ismo Vuorinen",
|
|
8
|
+
"url": "https://github.com/ivuorinen"
|
|
9
|
+
},
|
|
10
|
+
"bugs": {
|
|
11
|
+
"url": "https://github.com/ivuorinen/base-configs/issues"
|
|
12
|
+
},
|
|
13
|
+
"contributors": [
|
|
14
|
+
{
|
|
15
|
+
"name": "Base Configs Contributors",
|
|
16
|
+
"url": "https://github.com/ivuorinen/base-configs/graphs/contributors"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"engines": {
|
|
20
|
+
"node": ">=20"
|
|
21
|
+
},
|
|
22
|
+
"publishConfig": {
|
|
23
|
+
"access": "public"
|
|
24
|
+
},
|
|
25
|
+
"homepage": "https://github.com/ivuorinen/base-configs#readme",
|
|
26
|
+
"keywords": [
|
|
27
|
+
"commitlint",
|
|
28
|
+
"config",
|
|
29
|
+
"eslint",
|
|
30
|
+
"lint",
|
|
31
|
+
"markdownlint",
|
|
32
|
+
"prettier",
|
|
33
|
+
"semantic-release",
|
|
34
|
+
"stylelint"
|
|
35
|
+
],
|
|
36
|
+
"license": "MIT",
|
|
37
|
+
"repository": {
|
|
38
|
+
"type": "git",
|
|
39
|
+
"url": "https://github.com/ivuorinen/base-configs.git"
|
|
40
|
+
},
|
|
41
|
+
"scripts": {
|
|
42
|
+
"commitlint": "./node_modules/.bin/commitlint --from HEAD~1 --to HEAD --verbose",
|
|
43
|
+
"eslint:fix": "./node_modules/.bin/eslint '**/*.{js,tsx,ts,mjs,cjs}' --fix",
|
|
44
|
+
"eslint:report": "./node_modules/.bin/eslint '**/*.{js,tsx,ts,mjs,cjs}'",
|
|
45
|
+
"fix": "./node_modules/.bin/run-s prettier:fix eslint:fix markdownlint:fix",
|
|
46
|
+
"markdownlint:fix": "./node_modules/.bin/markdownlint '**/*.md' --fix",
|
|
47
|
+
"markdownlint:report": "./node_modules/.bin/markdownlint '**/*.md'",
|
|
48
|
+
"prettier:fix": "./node_modules/.bin/prettier '**/*.{js,tsx,ts,json,mjs,cjs}' '.*.{js,mjs,cjs,json}' --write",
|
|
49
|
+
"prettier:report": "./node_modules/.bin/prettier '**/*.{js,tsx,ts,json,mjs,cjs}' '.*.{js,mjs,cjs,json}' --check"
|
|
50
|
+
},
|
|
51
|
+
"devDependencies": {
|
|
52
|
+
"@ivuorinen/browserslist-config": "^1.0.0",
|
|
53
|
+
"@ivuorinen/commitlint-config": "^1.0.0",
|
|
54
|
+
"@ivuorinen/eslint-config": "^1.0.0",
|
|
55
|
+
"@ivuorinen/markdownlint-config": "^1.0.0",
|
|
56
|
+
"@ivuorinen/prettier-config": "^1.0.0",
|
|
57
|
+
"@ivuorinen/semantic-release-config": "^1.0.0",
|
|
58
|
+
"@types/node": "*",
|
|
59
|
+
"npm-run-all2": "^8.0.4",
|
|
60
|
+
"simple-git-hooks": "^2.13.1",
|
|
61
|
+
"typescript": ">=4.2.0"
|
|
62
|
+
},
|
|
63
|
+
"packageManager": "yarn@4.12.0"
|
|
64
|
+
}
|