@ivuorinen/markdownlint-config 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
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,64 @@
1
+ # @ivuorinen/markdownlint-config <!-- omit in toc -->
2
+
3
+ [![npm package][npm-badge]][npm-link]
4
+ [![license MIT][license-badge]][license-link]
5
+ [![code style][style-badge]][style-link]
6
+
7
+ > ivuorinen's shareable configuration for [`MarkdownLint`][markdownlint-link].
8
+
9
+ ## Table of Contents <!-- omit in toc -->
10
+
11
+ - [Installation](#installation)
12
+ - [Documentations](#documentations)
13
+ - [Contributing](#contributing)
14
+ - [Changelog](#changelog)
15
+ - [License](#license)
16
+
17
+ ## Installation
18
+
19
+ Install `this config` as a _`devDependencies`_:
20
+
21
+ ```sh
22
+ # npm
23
+ npm install @ivuorinen/markdownlint-config --save-dev
24
+
25
+ # Yarn
26
+ yarn add @ivuorinen/markdownlint-config --dev
27
+ ```
28
+
29
+ After installing it, a _`.markdownlint.json`_ file will be created automatically in the project's root folder with the following configuration:
30
+
31
+ ```json
32
+ {
33
+ "extends": "@ivuorinen/markdownlint-config"
34
+ }
35
+ ```
36
+
37
+ ## Documentations
38
+
39
+ Read the [MarkdownLint docs][markdownlint-docs-link] for more information.
40
+
41
+ ## Contributing
42
+
43
+ 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].
44
+
45
+ ## Changelog
46
+
47
+ See [CHANGELOG][changelog-link] for a human-readable history of changes.
48
+
49
+ ## License
50
+
51
+ Distributed under the MIT License. See [LICENSE][license-link] for more information.
52
+
53
+ [changelog-link]: ./CHANGELOG.md
54
+ [markdownlint-docs-link]: https://github.com/DavidAnson/markdownlint
55
+ [markdownlint-link]: https://github.com/DavidAnson/markdownlint
56
+ [contributing-link]: https://github.com/ivuorinen/.github/blob/main/CONTRIBUTING.md
57
+ [issue-link]: https://github.com/ivuorinen/base-configs/issues
58
+ [license-badge]: https://img.shields.io/github/license/ivuorinen/base-configs?style=flat-square&labelColor=292a44&color=663399
59
+ [license-link]: ./LICENSE
60
+ [npm-badge]: https://img.shields.io/npm/v/@ivuorinen/markdownlint-config?style=flat-square&labelColor=292a44&color=663399
61
+ [npm-link]: https://www.npmjs.com/package/@ivuorinen/markdownlint-config
62
+ [pull-request-link]: https://github.com/ivuorinen/base-configs/pulls
63
+ [style-badge]: https://img.shields.io/badge/code_style-ivuorinen%E2%80%99s-663399.svg?labelColor=292a44&style=flat-square
64
+ [style-link]: https://github.com/ivuorinen/base-configs
package/index.json ADDED
@@ -0,0 +1,5 @@
1
+ {
2
+ "default": true,
3
+ "MD013": false,
4
+ "MD033": false
5
+ }
package/package.json ADDED
@@ -0,0 +1,44 @@
1
+ {
2
+ "name": "@ivuorinen/markdownlint-config",
3
+ "version": "0.1.0",
4
+ "description": "ivuorinen's shareable configuration for markdownlint.",
5
+ "author": {
6
+ "name": "Ismo Vuorinen",
7
+ "url": "https://github.com/ivuorinen"
8
+ },
9
+ "bugs": {
10
+ "url": "https://github.com/ivuorinen/base-configs/issues"
11
+ },
12
+ "engines": {
13
+ "node": ">= 12",
14
+ "npm": ">= 6",
15
+ "yarn": ">=1.20.0"
16
+ },
17
+ "files": [
18
+ "index.json",
19
+ "scripts/*"
20
+ ],
21
+ "homepage": "https://github.com/ivuorinen/base-configs/tree/main/packages/markdownlint-config#readme",
22
+ "keywords": [
23
+ "markdownlint-config",
24
+ "markdownlint",
25
+ "config",
26
+ "ivuorinen"
27
+ ],
28
+ "license": "MIT",
29
+ "main": "index.json",
30
+ "publishConfig": {
31
+ "access": "public"
32
+ },
33
+ "repository": {
34
+ "type": "git",
35
+ "url": "https://github.com/ivuorinen/base-configs.git"
36
+ },
37
+ "scripts": {
38
+ "postinstall": "node scripts/postinstall.js"
39
+ },
40
+ "dependencies": {
41
+ "markdownlint-cli": "0.32.2"
42
+ },
43
+ "gitHead": "0b2b89ca98caac7995c4c2a3662f0d338043938b"
44
+ }
@@ -0,0 +1,14 @@
1
+ 'use strict'
2
+
3
+ const fs = require('fs')
4
+ const path = require('path')
5
+
6
+ const filePath = path.join(process.env.INIT_CWD, '.markdownlint.json')
7
+
8
+ const fileConfigObject = {
9
+ extends: '@ivuorinen/markdownlint-config'
10
+ }
11
+
12
+ if (!fs.existsSync(filePath)) {
13
+ fs.writeFileSync(filePath, JSON.stringify(fileConfigObject, undefined, 2))
14
+ }