@ivuorinen/config-checker 1.1.3 → 1.1.5

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
@@ -24,7 +24,7 @@ Configuration packages located in this repository use this tool to check for exi
24
24
 
25
25
  ### Real world example
26
26
 
27
- For commitlint-config you can find the usage in the [commitlint-config postinstall.js][commitlint-postinstall-link] file.
27
+ For commitlint-config you can find the usage in the [commitlint-config postinstall.cjs][commitlint-postinstall-link] file.
28
28
 
29
29
  Here's a snippet from the file:
30
30
 
@@ -44,7 +44,7 @@ if (foundConfig.length > 0) {
44
44
  ### Locations scanned
45
45
 
46
46
  | Searched configuration files |
47
- | ----------------------------------- |
47
+ |-------------------------------------|
48
48
  | `[module name]` |
49
49
  | `[module name]`rc |
50
50
  | `[module name]`rc.json |
@@ -122,13 +122,13 @@ See [CHANGELOG][changelog-link] for a human-readable history of changes.
122
122
 
123
123
  ## License
124
124
 
125
- This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details.
125
+ This project is licensed under the MIT License - see the [LICENSE.md][license-link] file for details.
126
126
 
127
127
  [changelog-link]: ./CHANGELOG.md
128
128
  [contributing-link]: https://github.com/ivuorinen/.github/blob/main/CONTRIBUTING.md
129
129
  [issue-link]: https://github.com/ivuorinen/base-configs/issues
130
130
  [license-badge]: https://img.shields.io/github/license/ivuorinen/base-configs?style=flat-square&labelColor=292a44&color=663399
131
- [license-link]: ./LICENSE
131
+ [license-link]: ./LICENSE.md
132
132
  [npm-badge]: https://img.shields.io/npm/v/@ivuorinen/config-checker?style=flat-square&labelColor=292a44&color=663399
133
133
  [npm-link]: https://www.npmjs.com/package/@ivuorinen/config-checker
134
134
  [pull-request-link]: https://github.com/ivuorinen/base-configs/pulls
@@ -2,6 +2,7 @@
2
2
 
3
3
  const fs = require('fs')
4
4
  const path = require('path')
5
+ // noinspection NpmUsedModulesInstalled
5
6
  const process = require('process')
6
7
  const configurationPaths = require('./configuration-paths')
7
8
 
@@ -7,7 +7,7 @@ const path = require('path')
7
7
  * @param {string} moduleName - The name of the module to check for.
8
8
  * @returns {string[]} - The paths to the configuration files.
9
9
  */
10
- function configurationPaths(moduleName) {
10
+ const configurationPaths = moduleName => {
11
11
  const filesPlain = [
12
12
  moduleName,
13
13
  `${moduleName}rc`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ivuorinen/config-checker",
3
- "version": "1.1.3",
3
+ "version": "1.1.5",
4
4
  "description": "Checks the commonly used configuration locations for configuration files",
5
5
  "keywords": [
6
6
  "check-config",
@@ -39,5 +39,5 @@
39
39
  "bugs": {
40
40
  "url": "https://github.com/ivuorinen/base-configs/issues"
41
41
  },
42
- "gitHead": "945220d7407c644c7567b193d62e60d676a84a66"
42
+ "gitHead": "48856d9c71d7199f53fa83dfbbeac1378e6dce0a"
43
43
  }