Skip to content

Commit 17c22ad

Browse files
authored
chore(release): publish v1.0.1 to NPM and GitHub
* chore(eslint-plugin-jsdoc): udate to latest * ci(travis): update configuration tasks 1. Remove failing Greenkeeper lockfile tasks, as they cause Travis-CI builds to fail. 2. Remove env.secret key from config * docs(community): update documentation 1. Add links to PULL_REQUEST_TEMPLATE.md QA user guides 2. Format all markdown files 3. Show dotenv-extended example 4. Demo loading variables to authenticate GH-13,GH-14,GH-15
1 parent 7a71637 commit 17c22ad

File tree

11 files changed

+293
-22
lines changed

11 files changed

+293
-22
lines changed

.github/CONTRIBUTING.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@
624624
| [[email protected]](https://github.com/standard/eslint-config-standard) | JavaScript Standard Style - ESLint Shareable Config | 11.0.0 | MIT | dev |
625625
| [[email protected]](https://github.com/xojs/eslint-config-xo#readme) | ESLint shareable config for XO | 0.20.1 | MIT | dev |
626626
| [[email protected]](https://github.com/benmosher/eslint-plugin-import) | Import with sanity. | 2.11.0 | MIT | dev |
627-
| [[email protected].2](https://github.com/gajus/eslint-plugin-jsdoc#readme) | JSDoc linting rules for ESLint. | 3.6.2 | BSD-3-Clause | dev |
627+
| [[email protected].3](https://github.com/gajus/eslint-plugin-jsdoc#readme) | JSDoc linting rules for ESLint. | 3.6.3 | BSD-3-Clause | dev |
628628
| [[email protected]](https://github.com/azeemba/eslint-plugin-json#readme) | Lint JSON files | 1.2.0 | ISC | dev |
629629
| [[email protected]](https://github.com/mozfreddyb/eslint-plugin-no-unsafe-innerhtml/) | custom ESLint rule to disallows unsafe innerHTML, outerHTML and insertAdjacentHTML | 1.0.16 | MPL-2.0 | dev |
630630
| [[email protected]](https://github.com/mysticatea/eslint-plugin-node#readme) | Additional ESLint's rules for Node.js | 6.0.1 | MIT | dev |
@@ -642,6 +642,7 @@
642642
| [lec@^1.0.1](https://github.com/iShafayet/lec) | Command Line Wrapper for Line Ending Corrector (An utility that makes sure your files have consistent line endings) | 1.0.1 | MIT | dev |
643643
| [[email protected]](https://github.com/okonet/lint-staged#readme) | Lint files staged by git | 7.0.4 | MIT | dev |
644644
| [[email protected]](https://lodash.com/) | The modern build of lodash’s `_.isUndefined` as a module. | 3.0.1 | MIT | dev |
645+
| [[email protected]](https://lodash.com/) | The lodash method `_.set` exported as a module. | 4.3.2 | MIT | dev |
645646
| [[email protected]](https://github.com/DavidWells/markdown-magic#readme) | Automatically update markdown files with content from external sources | 0.1.21 | MIT | dev |
646647
| [[email protected]](https://github.com/camacho/markdown-magic-dependency-table#readme) | Generate table of information about dependencies automatically in markdown | 1.3.2 | MIT | dev |
647648
| [[email protected]](https://github.com/camacho/markdown-magic-install-command#readme) | Print install command for markdown file | 1.3.1 | MIT | dev |

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 256 additions & 5 deletions
Large diffs are not rendered by default.

.github/assets/img/logo-jest.png

-2.87 KB
Loading

.github/config/.eslintrc.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ plugins:
3535
- xss
3636
extends:
3737
- eslint:all
38-
- eslint-config-standard
3938
globals:
4039
document: false
4140
navigator: false
@@ -441,6 +440,20 @@ rules:
441440
scanjs-rules/property_localStorage: error
442441
scanjs-rules/property_mgmt: error
443442
scanjs-rules/property_sessionStorage: error
443+
444+
security/detect-unsafe-regex: 1
445+
security/detect-buffer-noassert: 1
446+
security/detect-child-process: 1
447+
security/detect-disable-mustache-escape: 1
448+
security/detect-eval-with-expression: 1
449+
security/detect-no-csrf-before-method-override: 1
450+
security/detect-non-literal-fs-filename: 1
451+
security/detect-non-literal-regexp: 1
452+
security/detect-non-literal-require: 1
453+
security/detect-object-injection: 1
454+
security/detect-possible-timing-attacks: 1
455+
security/detect-pseudoRandomBytes: 1
456+
444457
unicorn/catch-error-name:
445458
- error
446459
- name: err

.github/config/sonar-project.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ sonar.sourceEncoding=UTF-8
3030
sonar.organization=commonality
3131
sonar.projectKey=readme-inspector
3232
sonar.projectName=readme-inspector
33-
sonar.projectVersion=1.0.0
33+
sonar.projectVersion=1.0.1
3434

3535
# =====================================================
3636
# Meta-data for the project

.travis.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,12 @@ git:
2424
depth: 1
2525
before_install:
2626
- "[[ $(node -v) =~ ^v9.*$ ]] || npm install -g npm@latest"
27-
- npm install -g greenkeeper-lockfile@1
2827
before_script:
29-
- greenkeeper-lockfile-update
3028
- npm dedupe
3129
script:
3230
- npm run test:config
3331
- npm test
3432
after_script:
35-
- greenkeeper-lockfile-upload
3633
- npm run posttest:ci:coverage:codacy
3734
- sonar-scanner -Dproject.settings=./.github/config/sonar-project.properties -Dsonar.organization=$SONAR_ORGANIZATION
3835
-Dsonar.login=$SONAR_COMMONALITY_TOKEN -X
@@ -45,6 +42,3 @@ jobs:
4542
skip_cleanup: true
4643
script:
4744
- npx travis-deploy-once "npx semantic-release"
48-
env:
49-
global:
50-
secure: VFXeKWEb3ji3GXHQ4u0GLmyqnuVDHfe3dvP/6AD00Dzf25iox4kC4Ru2an7UPca7q19rB35RVXY3mYCIvC6IYRZO611HwI8/zZlUQVmz4KOGYCGXZpc9ylHzQUwwPq+5DyMHWKwDLsWvlm4IziPYURPIrc33CagrqMuAijyf0SVdZVRVZXQXlQ39YNxhnjqGP6ezOhvjlV22Be97HNo3R+18wnMTIdStOfayKHRTF7akEMWrrugZTUga3aJDflTBREfGrkkiyfOEfu8rR1wuWbgSVLC38c3y/3di5jmj6qH8c/Tqgt2FJEDEC+iXeIOb9a4imgsNdhz4raYe/sdcCvC/cqdR6Q8dKWTEm3p0waam4pA8tReFg8JHF0Jfu3rXi+JroF6ZbIB4223Ez73L715rrGwnNvepWoXqkT4NqAvPTxgmowr2I4BZnCjauO1u9yLuZaP6xkFFDiZh9GsuCtQRSeDgrNxRMiKCCsyEgoVNoFIILvAFiC2cJdS8/tRZGV6hSaFef4WmOEtBxJh0O8vYiZH/X8B/MX0IME6pN703k9z5WpTFZvUEhqYHPfE8+TiL6dm1jwgg1RIreu8V3fqb5o37C5XQLDXERmGY2y/u6wR8KkBs4XIMQ9RwuF2+KeVoQBJgqDmNnohVNrOXMpZfmMaPxl3TgrqYFpxYrzY=

CHANGELOG.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,7 @@ All notable changes to this project will be documented in this file. See [standa
2323
> You can use your README to answer other questions, like how you handle
2424
> contributions, what the goals of the project are, and information about
2525
> licenses and attribution. If you don’t want to accept contributions, or
26-
> your project is not yet ready for production, write this information down.
27-
>
28-
> "Starting An Open Source Project." Open Source Guides.
29-
> N. p., 2018. Web. 12 Apr. 2018.
26+
> your project is not yet ready for production, write this information down. <sup><a href="#ref-1" title="View reference.">[1]</a></sup>
3027
3128
**Public API**
3229

@@ -52,4 +49,9 @@ All notable changes to this project will be documented in this file. See [standa
5249

5350
([e04a07a](https://github.com/commonality/readme-inspector/commit/e04a07a)), closes [#1](https://github.com/commonality/readme-inspector/issues/1)
5451

52+
## References
53+
54+
<a name="ref-1"></a>
55+
**[1]** _Starting an Open Source Project._ (2018). _Open Source Guides._ Retrieved 15 April 2018, from <https://opensource.guide/starting-a-project/#writing-a-readme>
56+
5557
[octicon-quote]: https://cdnjs.cloudflare.com/ajax/libs/octicons/4.4.0/svg/quote.svg

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ $ npm install --save readme-inspector
7272
7373
---
7474
75-
<details><summary>Click here for detailed <samp>.env</samp> variable initialization instructions</summary><p>
75+
<details><summary>Click here for detailed <samp>.env</samp> variable initialization instructions</summary><pre>
7676
7777
<!-- AUTO-GENERATED-CONTENT:START (CODE:src=./lib/.env.schema) -->
7878
<!-- The below code snippet is automatically added from ./lib/.env.schema -->
@@ -102,7 +102,7 @@ GITHUB_ACCESS_TOKEN=
102102
```
103103
<!-- AUTO-GENERATED-CONTENT:END -->
104104
105-
</p></details>
105+
</pre></details>
106106
107107
---
108108
@@ -192,10 +192,15 @@ The `readmeInspector` module detects whether or not a README document exists at
192192
193193
> ```javascript
194194
> // Token (https://github.com/settings/tokens)
195+
> // Load your GH_TOKEN or GITHUB_ACCESS_TOKEN from
196+
> // environment variables:
197+
> const dotenvExtended = require('dotenv-extended')
198+
> const envConfig = dotenvExtended.config()
199+
>
195200
> const readmeInspector = require('readme-inspector')
196201
>
197202
> readmeInspector.authenticate({
198-
> token: 'secrettoken123',
203+
> token: envConfig.GH_TOKEN,
199204
> type: 'token'
200205
> })
201206
> ```

lib/.env.defaults

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,6 @@ GA_README_INSPECTOR="UA-117338111-1"
1515

1616
# ReadmeScore
1717
API_ENDPOINT_README_SCORE="http://readme-score-api.herokuapp.com/score.json?url=&human_breakdown=false&force=false"
18+
19+
# Codacy code coverage
20+
CODACY_PROJECT_TOKEN=$CODACY_PROJECT_TOKEN_README_INSPECTOR

lib/__tests__/index.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* eslint node/no-unpublished-require:0 */
2+
/* eslint security/detect-object-injection:0 */
23
/* eslint no-console:0 */
34
/* eslint max-len:0 */
45
const nullReadmeInfo = require('./__fixtures__/null-readme-info.json')

0 commit comments

Comments
 (0)