0
0
mirror of https://github.com/semver/semver.git synced 2025-08-22 22:08:33 +00:00

Merge pull request #578 from alexandrtovmach/patch/linter

feat: Added linter and workflow; Fixed linter warnings
This commit is contained in:
André Arko 2020-06-18 12:38:53 -07:00 committed by GitHub
commit db63f83a25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 1991 additions and 48 deletions

14
.github/workflows/checks.yml vendored Normal file
View File

@ -0,0 +1,14 @@
name: Check chagnes
on: [pull_request]
jobs:
checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: "12.x"
- run: npm ci
- run: npm run lint

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
node_modules/

19
.remarkrc Normal file
View File

@ -0,0 +1,19 @@
{
"plugins": [
"remark-frontmatter",
"remark-preset-lint-node",
"remark-lint-mdash-style",
["remark-lint-fenced-code-flag", false],
["remark-lint-first-heading-level", false],
["remark-lint-maximum-line-length", false],
["remark-lint-no-file-name-articles", false],
["remark-lint-no-literal-urls", false],
["remark-lint-no-trailing-spaces", false],
["remark-lint-no-undefined-references", false],
["remark-lint-prohibited-strings", false],
["remark-lint-no-shortcut-reference-link", false],
["remark-lint-unordered-list-marker-style", "-"],
["remark-lint-heading-style", "setext"],
["remark-lint-code-block-style", "fenced"]
]
}

1879
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

33
package.json Normal file
View File

@ -0,0 +1,33 @@
{
"name": "semver-spec",
"version": "2.0.0",
"description": "Semantic Versioning Specification",
"main": "semver.md",
"scripts": {
"lint": "remark -qf semver.md",
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/semver/semver.git"
},
"keywords": [
"semver",
"semantic",
"versioning",
"specification",
"spec"
],
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/semver/semver/issues"
},
"homepage": "https://github.com/semver/semver#readme",
"devDependencies": {
"remark-cli": "^8.0.0",
"remark-frontmatter": "^2.0.0",
"remark-lint-mdash-style": "^1.1.1",
"remark-preset-lint-node": "^1.16.0"
}
}

View File

@ -48,7 +48,6 @@ I call this system "Semantic Versioning." Under this scheme, version numbers
and the way they change convey meaning about the underlying code and what has and the way they change convey meaning about the underlying code and what has
been modified from one version to the next. been modified from one version to the next.
Semantic Versioning Specification (SemVer) Semantic Versioning Specification (SemVer)
------------------------------------------ ------------------------------------------
@ -130,7 +129,7 @@ Example: 1.0.0-alpha < 1.0.0-alpha.1 < 1.0.0-alpha.beta < 1.0.0-beta <
BackusNaur Form Grammar for Valid SemVer Versions BackusNaur Form Grammar for Valid SemVer Versions
-------------------------------------------------- --------------------------------------------------
```
<valid semver> ::= <version core> <valid semver> ::= <version core>
| <version core> "-" <pre-release> | <version core> "-" <pre-release>
| <version core> "+" <build> | <version core> "+" <build>
@ -192,7 +191,7 @@ BackusNaur Form Grammar for Valid SemVer Versions
| "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n"
| "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x"
| "y" | "z" | "y" | "z"
```
Why Use Semantic Versioning? Why Use Semantic Versioning?
---------------------------- ----------------------------
@ -227,7 +226,6 @@ Versioning is to declare that you are doing so and then follow the rules. Link
to this website from your README so others know the rules and can benefit from to this website from your README so others know the rules and can benefit from
them. them.
FAQ FAQ
--- ---
@ -352,8 +350,7 @@ cofounder of GitHub.
If you'd like to leave feedback, please [open an issue on If you'd like to leave feedback, please [open an issue on
GitHub](https://github.com/semver/semver/issues). GitHub](https://github.com/semver/semver/issues).
License License
------- -------
[Creative Commons - CC BY 3.0](https://creativecommons.org/licenses/by/3.0/) [Creative Commons CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)