@ivuorinen/markdownlint-config 0.3.16 → 1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ivuorinen/markdownlint-config",
3
- "version": "0.3.16",
3
+ "version": "1.0.1",
4
4
  "type": "module",
5
5
  "description": "ivuorinen's shareable configuration for markdownlint.",
6
6
  "author": {
@@ -37,8 +37,11 @@
37
37
  "postinstall": "node scripts/postinstall.cjs"
38
38
  },
39
39
  "dependencies": {
40
- "@ivuorinen/config-checker": "^1.1.12",
41
- "markdownlint-cli": "^0.45.0"
40
+ "@ivuorinen/config-checker": "^2.1.1",
41
+ "markdownlint-cli": "^0.47.0"
42
42
  },
43
- "gitHead": "23d15f15743fb59c1dbe658615ef2ed51c54d230"
43
+ "packageManager": "yarn@4.12.0",
44
+ "devDependencies": {
45
+ "@ivuorinen/semantic-release-config": "^1.0.0"
46
+ }
44
47
  }
@@ -1,26 +1,26 @@
1
- 'use strict'
1
+ "use strict";
2
2
 
3
3
  /* eslint no-console: "off", n/no-process-exit: "off", no-undefined: "off" -- CLI app that gives users feedback */
4
4
 
5
- const fs = require('node:fs')
6
- const path = require('node:path')
5
+ const fs = require("node:fs");
6
+ const path = require("node:path");
7
7
  // noinspection NpmUsedModulesInstalled
8
- const process = require('node:process')
9
- const checkConfig = require('@ivuorinen/config-checker')
10
- const foundConfig = checkConfig('markdownlint')
8
+ const process = require("node:process");
9
+ const checkConfig = require("@ivuorinen/config-checker");
10
+ const foundConfig = checkConfig("markdownlint");
11
11
 
12
12
  if (foundConfig.length > 0) {
13
- console.log('markdownlint-config: Found existing markdownlint config file, skipping creation.')
14
- console.log('markdownlint-config: If you want to create a new config file, please remove the existing one.')
15
- console.log(`markdownlint-config: Found config files at: ${foundConfig.join(', ')}`)
16
- process.exit(0)
13
+ console.log("markdownlint-config: Found existing markdownlint config file, skipping creation.");
14
+ console.log("markdownlint-config: If you want to create a new config file, please remove the existing one.");
15
+ console.log(`markdownlint-config: Found config files at: ${foundConfig.join(", ")}`);
16
+ process.exit(0);
17
17
  }
18
18
 
19
- const filePath = path.join(process.env.INIT_CWD, '.markdownlint.json')
19
+ const filePath = path.join(process.env.INIT_CWD, ".markdownlint.json");
20
20
  const fileConfigObject = {
21
- extends: '@ivuorinen/markdownlint-config'
22
- }
21
+ extends: "@ivuorinen/markdownlint-config",
22
+ };
23
23
 
24
24
  if (!fs.existsSync(filePath)) {
25
- fs.writeFileSync(filePath, JSON.stringify(fileConfigObject, undefined, 2))
25
+ fs.writeFileSync(filePath, JSON.stringify(fileConfigObject, undefined, 2));
26
26
  }