Skip to content

Commit 92c1da1

Browse files
committed
chore: add markdownlint
1 parent d90f80d commit 92c1da1

File tree

5 files changed

+160
-11
lines changed

5 files changed

+160
-11
lines changed

Diff for: .markdownlint.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"line-length": false,
3+
"ul-style": {
4+
"style": "dash"
5+
}
6+
}

Diff for: .markdownlintignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
CHANGELOG.md
2+
LICENSE
3+
node_modules

Diff for: README.md

+5-9
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,22 @@
22

33
Rules used internally by Ember.js
44

5-
65
## Installation
76

87
You'll first need to install [ESLint](http://eslint.org):
98

10-
```
11-
$ npm i eslint --save-dev
9+
```sh
10+
npm i eslint --save-dev
1211
```
1312

1413
Next, install `eslint-plugin-ember-internal`:
1514

16-
```
17-
$ npm install eslint-plugin-ember-internal --save-dev
15+
```sh
16+
npm install eslint-plugin-ember-internal --save-dev
1817
```
1918

2019
**Note:** If you installed ESLint globally (using the `-g` flag) then you must also install `eslint-plugin-ember-internal` globally.
2120

22-
2321
## Usage
2422

2523
Add `ember-internal` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix:
@@ -32,7 +30,6 @@ Add `ember-internal` to the plugins section of your `.eslintrc` configuration fi
3230
}
3331
```
3432

35-
3633
Then configure the rules you want to use under the rules section.
3734

3835
```json
@@ -43,7 +40,6 @@ Then configure the rules you want to use under the rules section.
4340
}
4441
```
4542

46-
4743
## Supported Rules
4844

4945
- `require-yuidoc-access` - Ensures that every YUIDoc comment has `@public`, `@protected` or `@private` declared
@@ -58,6 +54,7 @@ Then configure the rules you want to use under the rules section.
5854
* ```
5955
*/
6056
```
57+
6158
- `require-yuidoc-code-block-type` - Ensures that every code blocks in YUIDoc comments has a type associated, e.g.
6259

6360
```js
@@ -74,7 +71,6 @@ Then configure the rules you want to use under the rules section.
7471
*/
7572
```
7673

77-
7874
## License
7975

8076
eslint-plugin-chai-expect is licensed under the [MIT License](LICENSE).

Diff for: package.json

+3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
"main": "lib/index.js",
1212
"scripts": {
1313
"lint": "npm-run-all \"lint:*\"",
14+
"lint:docs": "markdownlint \"**/*.md\"",
15+
"lint:docs:fix": "yarn lint:docs --fix",
1416
"lint:js": "eslint .",
1517
"lint:js:fix": "yarn lint:js --fix",
1618
"test": "mocha tests --recursive"
@@ -25,6 +27,7 @@
2527
"eslint-plugin-eslint-plugin": "^3.0.0",
2628
"eslint-plugin-node": "^11.1.0",
2729
"eslint-plugin-prettier": "^3.0.0",
30+
"markdownlint-cli": "^0.28.0",
2831
"mocha": "^8.0.0",
2932
"npm-run-all": "^4.1.5",
3033
"prettier": "^2.0.0"

Diff for: yarn.lock

+143-2
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,11 @@ color-name@~1.1.4:
272272
resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2"
273273
integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==
274274

275+
commander@~8.0.0:
276+
version "8.0.0"
277+
resolved "https://registry.yarnpkg.com/commander/-/commander-8.0.0.tgz#1da2139548caef59bd23e66d18908dfb54b02258"
278+
integrity sha512-Xvf85aAtu6v22+E5hfVoLHqyul/jyxh91zvqk/ioJTQuJR7Z78n7H558vMPKanPSRgIEeZemT92I2g9Y8LPbSQ==
279+
275280
276281
version "0.0.1"
277282
resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b"
@@ -323,6 +328,11 @@ decamelize@^4.0.0:
323328
resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-4.0.0.tgz#aa472d7bf660eb15f3494efd531cab7f2a709837"
324329
integrity sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ==
325330

331+
deep-extend@^0.6.0, deep-extend@~0.6.0:
332+
version "0.6.0"
333+
resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.6.0.tgz#c4fa7c95404a17a9c3e8ca7e1537312b736330ac"
334+
integrity sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==
335+
326336
deep-is@^0.1.3:
327337
version "0.1.3"
328338
resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.3.tgz#b369d6fb5dbc13eecf524f91b070feedc357cf34"
@@ -360,6 +370,11 @@ enquirer@^2.3.5:
360370
dependencies:
361371
ansi-colors "^4.1.1"
362372

373+
entities@~2.1.0:
374+
version "2.1.0"
375+
resolved "https://registry.yarnpkg.com/entities/-/entities-2.1.0.tgz#992d3129cf7df6870b96c57858c249a120f8b8b5"
376+
integrity sha512-hCx1oky9PFrJ611mf0ifBLBRW8lUUVRlFolb5gWRfIELabBlbp9xZvrqZLZAs+NxFnbfQoeGd8wDkygjg7U85w==
377+
363378
error-ex@^1.3.1:
364379
version "1.3.2"
365380
resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.2.tgz#b4ac40648107fdcdcfae242f428bea8a14d4f1bf"
@@ -683,6 +698,11 @@ get-intrinsic@^1.0.2, get-intrinsic@^1.1.0, get-intrinsic@^1.1.1, get-intrinsic@
683698
has "^1.0.3"
684699
has-symbols "^1.0.3"
685700

701+
get-stdin@~8.0.0:
702+
version "8.0.0"
703+
resolved "https://registry.yarnpkg.com/get-stdin/-/get-stdin-8.0.0.tgz#cbad6a73feb75f6eeb22ba9e01f89aa28aa97a53"
704+
integrity sha512-sY22aA6xchAzprjyqmSEQv4UbAAzRN0L2dQB0NlN5acTTK9Don6nhoc3eAbUnpZiCANAMfd/+40kVdKfFygohg==
705+
686706
get-symbol-description@^1.0.0:
687707
version "1.0.0"
688708
resolved "https://registry.yarnpkg.com/get-symbol-description/-/get-symbol-description-1.0.0.tgz#7fdb81c900101fbd564dd5f1a30af5aadc1e58d6"
@@ -710,6 +730,18 @@ [email protected], glob@^7.1.3:
710730
once "^1.3.0"
711731
path-is-absolute "^1.0.0"
712732

733+
glob@~7.1.7:
734+
version "7.1.7"
735+
resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.7.tgz#3b193e9233f01d42d0b3f78294bbeeb418f94a90"
736+
integrity sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ==
737+
dependencies:
738+
fs.realpath "^1.0.0"
739+
inflight "^1.0.4"
740+
inherits "2"
741+
minimatch "^3.0.4"
742+
once "^1.3.0"
743+
path-is-absolute "^1.0.0"
744+
713745
globals@^13.6.0, globals@^13.9.0:
714746
version "13.18.0"
715747
resolved "https://registry.yarnpkg.com/globals/-/globals-13.18.0.tgz#fb224daeeb2bb7d254cd2c640f003528b8d0c1dc"
@@ -783,7 +815,7 @@ ignore@^4.0.6:
783815
resolved "https://registry.yarnpkg.com/ignore/-/ignore-4.0.6.tgz#750e3db5862087b4737ebac8207ffd1ef27b25fc"
784816
integrity sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==
785817

786-
ignore@^5.1.1:
818+
ignore@^5.1.1, ignore@~5.1.8:
787819
version "5.1.9"
788820
resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.1.9.tgz#9ec1a5cbe8e1446ec60d4420060d43aa6e7382fb"
789821
integrity sha512-2zeMQpbKz5dhZ9IwL0gbxSW5w0NK/MSAMtNuhgIHEPmaU3vPdKPL0UdvUCXs5SS4JAwsBxysK5sFMW8ocFiVjQ==
@@ -814,6 +846,11 @@ inherits@2:
814846
resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c"
815847
integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==
816848

849+
ini@~3.0.0:
850+
version "3.0.1"
851+
resolved "https://registry.yarnpkg.com/ini/-/ini-3.0.1.tgz#c76ec81007875bc44d544ff7a11a55d12294102d"
852+
integrity sha512-it4HyVAUTKBc6m8e1iXWvXSTdndF7HbdN713+kvLrymxTaU4AUBWrJ4vEooP+V7fexnVD3LKcBshjGGPefSMUQ==
853+
817854
internal-slot@^1.0.3:
818855
version "1.0.3"
819856
resolved "https://registry.yarnpkg.com/internal-slot/-/internal-slot-1.0.3.tgz#7347e307deeea2faac2ac6205d4bc7d34967f59c"
@@ -993,6 +1030,13 @@ js-yaml@^3.13.1:
9931030
argparse "^1.0.7"
9941031
esprima "^4.0.0"
9951032

1033+
js-yaml@^4.1.0:
1034+
version "4.1.0"
1035+
resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-4.1.0.tgz#c1fb65f8f5017901cdd2c951864ba18458a10602"
1036+
integrity sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==
1037+
dependencies:
1038+
argparse "^2.0.1"
1039+
9961040
json-parse-better-errors@^1.0.1:
9971041
version "1.0.2"
9981042
resolved "https://registry.yarnpkg.com/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz#bb867cfb3450e69107c131d1c514bab3dc8bcaa9"
@@ -1013,6 +1057,11 @@ json-stable-stringify-without-jsonify@^1.0.1:
10131057
resolved "https://registry.yarnpkg.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz#9db7b59496ad3f3cfef30a75142d2d930ad72651"
10141058
integrity sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=
10151059

1060+
jsonc-parser@~3.0.0:
1061+
version "3.0.0"
1062+
resolved "https://registry.yarnpkg.com/jsonc-parser/-/jsonc-parser-3.0.0.tgz#abdd785701c7e7eaca8a9ec8cf070ca51a745a22"
1063+
integrity sha512-fQzRfAbIBnR0IQvftw9FJveWiHp72Fg20giDrHz6TdfB12UH/uue0D3hm57UB5KgAVuniLMCaS8P1IMj9NR7cA==
1064+
10161065
levn@^0.4.1:
10171066
version "0.4.1"
10181067
resolved "https://registry.yarnpkg.com/levn/-/levn-0.4.1.tgz#ae4562c007473b932a6200d403268dd2fffc6ade"
@@ -1029,6 +1078,13 @@ line-column@^1.0.2:
10291078
isarray "^1.0.0"
10301079
isobject "^2.0.0"
10311080

1081+
linkify-it@^3.0.1:
1082+
version "3.0.3"
1083+
resolved "https://registry.yarnpkg.com/linkify-it/-/linkify-it-3.0.3.tgz#a98baf44ce45a550efb4d49c769d07524cc2fa2e"
1084+
integrity sha512-ynTsyrFSdE5oZ/O9GEf00kPngmOfVwazR5GKDq6EYfhlpFug3J2zybX56a2PRRpc9P+FuSoGNAwjlbDs9jJBPQ==
1085+
dependencies:
1086+
uc.micro "^1.0.1"
1087+
10321088
load-json-file@^4.0.0:
10331089
version "4.0.0"
10341090
resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-4.0.0.tgz#2f5f45ab91e33216234fd53adab668eb4ec0993b"
@@ -1046,6 +1102,16 @@ locate-path@^6.0.0:
10461102
dependencies:
10471103
p-locate "^5.0.0"
10481104

1105+
lodash.differencewith@~4.5.0:
1106+
version "4.5.0"
1107+
resolved "https://registry.yarnpkg.com/lodash.differencewith/-/lodash.differencewith-4.5.0.tgz#bafafbc918b55154e179176a00bb0aefaac854b7"
1108+
integrity sha512-/8JFjydAS+4bQuo3CpLMBv7WxGFyk7/etOAsrQUCu0a9QVDemxv0YQ0rFyeZvqlUD314SERfNlgnlqqHmaQ0Cg==
1109+
1110+
lodash.flatten@~4.4.0:
1111+
version "4.4.0"
1112+
resolved "https://registry.yarnpkg.com/lodash.flatten/-/lodash.flatten-4.4.0.tgz#f31c22225a9632d2bbf8e4addbef240aa765a61f"
1113+
integrity sha512-C5N2Z3DgnnKr0LOpv/hKCgKdb7ZZwafIrsesve6lmzvZIRZRGaZ/l6Q8+2W7NaT+ZwO3fFlSCzCzrDCFdJfZ4g==
1114+
10491115
lodash.merge@^4.6.2:
10501116
version "4.6.2"
10511117
resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.2.tgz#558aa53b43b661e1925a0afdfa36a9a1085fe57a"
@@ -1070,6 +1136,54 @@ lru-cache@^6.0.0:
10701136
dependencies:
10711137
yallist "^4.0.0"
10721138

1139+
1140+
version "12.0.4"
1141+
resolved "https://registry.yarnpkg.com/markdown-it/-/markdown-it-12.0.4.tgz#eec8247d296327eac3ba9746bdeec9cfcc751e33"
1142+
integrity sha512-34RwOXZT8kyuOJy25oJNJoulO8L0bTHYWXcdZBYZqFnjIy3NgjeoM3FmPXIOFQ26/lSHYMr8oc62B6adxXcb3Q==
1143+
dependencies:
1144+
argparse "^2.0.1"
1145+
entities "~2.1.0"
1146+
linkify-it "^3.0.1"
1147+
mdurl "^1.0.1"
1148+
uc.micro "^1.0.5"
1149+
1150+
markdownlint-cli@^0.28.0:
1151+
version "0.28.1"
1152+
resolved "https://registry.yarnpkg.com/markdownlint-cli/-/markdownlint-cli-0.28.1.tgz#76f1d8d50f81dce524826c93bf0f95af9cbe9397"
1153+
integrity sha512-RBKtRRBzcuAF/H5wMSzb4zvEtbUkyYNEeaDtlQkyH9SoHWPL01emJ2Wrx6NEOa1ZDGwB+seBGvE157Qzc/t/vA==
1154+
dependencies:
1155+
commander "~8.0.0"
1156+
deep-extend "~0.6.0"
1157+
get-stdin "~8.0.0"
1158+
glob "~7.1.7"
1159+
ignore "~5.1.8"
1160+
js-yaml "^4.1.0"
1161+
jsonc-parser "~3.0.0"
1162+
lodash.differencewith "~4.5.0"
1163+
lodash.flatten "~4.4.0"
1164+
markdownlint "~0.23.1"
1165+
markdownlint-rule-helpers "~0.14.0"
1166+
minimatch "~3.0.4"
1167+
minimist "~1.2.5"
1168+
run-con "~1.2.10"
1169+
1170+
markdownlint-rule-helpers@~0.14.0:
1171+
version "0.14.0"
1172+
resolved "https://registry.yarnpkg.com/markdownlint-rule-helpers/-/markdownlint-rule-helpers-0.14.0.tgz#4d0e1ae320e85559d8cbed1490934855791627bb"
1173+
integrity sha512-vRTPqSU4JK8vVXmjICHSBhwXUvbfh/VJo+j7hvxqe15tLJyomv3FLgFdFgb8kpj0Fe8SsJa/TZUAXv7/sN+N7A==
1174+
1175+
markdownlint@~0.23.1:
1176+
version "0.23.1"
1177+
resolved "https://registry.yarnpkg.com/markdownlint/-/markdownlint-0.23.1.tgz#98292b5d340d01e9c113f3d7fb3b2ccf89628dc2"
1178+
integrity sha512-iOEwhDfNmq2IJlaA8mzEkHYUi/Hwoa6Ss+HO5jkwUR6wQ4quFr0WzSx+Z9rsWZKUaPbyirIdL1zGmJRkWawr4Q==
1179+
dependencies:
1180+
markdown-it "12.0.4"
1181+
1182+
mdurl@^1.0.1:
1183+
version "1.0.1"
1184+
resolved "https://registry.yarnpkg.com/mdurl/-/mdurl-1.0.1.tgz#fe85b2ec75a59037f2adfec100fd6c601761152e"
1185+
integrity sha512-/sKlQJCBYVY9Ers9hqzKou4H6V5UWc/M59TH2dvkt+84itfnq7uFOMLpOiOS4ujvHP4etln18fmIxA5R5fll0g==
1186+
10731187
memorystream@^0.3.1:
10741188
version "0.3.1"
10751189
resolved "https://registry.yarnpkg.com/memorystream/-/memorystream-0.3.1.tgz#86d7090b30ce455d63fbae12dda51a47ddcaf9b2"
@@ -1082,6 +1196,18 @@ [email protected], minimatch@^3.0.4:
10821196
dependencies:
10831197
brace-expansion "^1.1.7"
10841198

1199+
minimatch@~3.0.4:
1200+
version "3.0.8"
1201+
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.8.tgz#5e6a59bd11e2ab0de1cfb843eb2d82e546c321c1"
1202+
integrity sha512-6FsRAQsxQ61mw+qP1ZzbL9Bc78x2p5OqNgNpnoAFLTrX8n5Kxph0CsnhmKKNXTWjXqU5L0pGPR7hYk+XWZr60Q==
1203+
dependencies:
1204+
brace-expansion "^1.1.7"
1205+
1206+
minimist@^1.2.6, minimist@~1.2.5:
1207+
version "1.2.7"
1208+
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.7.tgz#daa1c4d91f507390437c6a8bc01078e7000c4d18"
1209+
integrity sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g==
1210+
10851211
mocha@^8.0.0:
10861212
version "8.4.0"
10871213
resolved "https://registry.yarnpkg.com/mocha/-/mocha-8.4.0.tgz#677be88bf15980a3cae03a73e10a0fc3997f0cff"
@@ -1396,6 +1522,16 @@ rimraf@^3.0.2:
13961522
dependencies:
13971523
glob "^7.1.3"
13981524

1525+
run-con@~1.2.10:
1526+
version "1.2.11"
1527+
resolved "https://registry.yarnpkg.com/run-con/-/run-con-1.2.11.tgz#0014ed430bad034a60568dfe7de2235f32e3f3c4"
1528+
integrity sha512-NEMGsUT+cglWkzEr4IFK21P4Jca45HqiAbIIZIBdX5+UZTB24Mb/21iNGgz9xZa8tL6vbW7CXmq7MFN42+VjNQ==
1529+
dependencies:
1530+
deep-extend "^0.6.0"
1531+
ini "~3.0.0"
1532+
minimist "^1.2.6"
1533+
strip-json-comments "~3.1.1"
1534+
13991535
safe-buffer@^5.1.0:
14001536
version "5.2.1"
14011537
resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6"
@@ -1575,7 +1711,7 @@ strip-bom@^3.0.0:
15751711
resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3"
15761712
integrity sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==
15771713

1578-
[email protected], strip-json-comments@^3.1.0, strip-json-comments@^3.1.1:
1714+
[email protected], strip-json-comments@^3.1.0, strip-json-comments@^3.1.1, strip-json-comments@~3.1.1:
15791715
version "3.1.1"
15801716
resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006"
15811717
integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==
@@ -1641,6 +1777,11 @@ type-fest@^0.20.2:
16411777
resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.20.2.tgz#1bf207f4b28f91583666cb5fbd327887301cd5f4"
16421778
integrity sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==
16431779

1780+
uc.micro@^1.0.1, uc.micro@^1.0.5:
1781+
version "1.0.6"
1782+
resolved "https://registry.yarnpkg.com/uc.micro/-/uc.micro-1.0.6.tgz#9c411a802a409a91fc6cf74081baba34b24499ac"
1783+
integrity sha512-8Y75pvTYkLJW2hWQHXxoqRgV7qb9B+9vFEtidML+7koHUFapnVJAZ6cKs+Qjz5Aw3aZWHMC6u0wJE3At+nSGwA==
1784+
16441785
unbox-primitive@^1.0.2:
16451786
version "1.0.2"
16461787
resolved "https://registry.yarnpkg.com/unbox-primitive/-/unbox-primitive-1.0.2.tgz#29032021057d5e6cdbd08c5129c226dff8ed6f9e"

0 commit comments

Comments
 (0)