@alexlit/lint-kit 127.5.3 → 127.6.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/.npmpackagejsonlintrc.json +0 -0
- package/.npmrc +5 -0
- package/LICENSE +0 -0
- package/README.md +1 -1
- package/commitlint.config.js +0 -0
- package/lint-staged.config.js +0 -0
- package/package.json +11 -9
- package/packages/config-commitlint/LICENSE +0 -0
- package/packages/config-commitlint/index.js +0 -0
- package/packages/config-commitlint/node_modules/.bin/commitlint +17 -0
- package/packages/config-commitlint/node_modules/.bin/conventional-changelog +17 -0
- package/packages/config-commitlint/node_modules/.bin/conventional-commits-parser +17 -0
- package/packages/config-commitlint/node_modules/.bin/tsc +17 -0
- package/packages/config-commitlint/node_modules/.bin/tsserver +17 -0
- package/packages/config-commitlint/package.json +0 -0
- package/packages/config-eslint/LICENSE +0 -0
- package/packages/config-eslint/_legacy/LICENSE +0 -0
- package/packages/config-eslint/_legacy/dictionaries/index.js +0 -0
- package/packages/config-eslint/_legacy/dictionaries/programming/bash.js +0 -0
- package/packages/config-eslint/_legacy/dictionaries/programming/django.js +0 -0
- package/packages/config-eslint/_legacy/dictionaries/programming/elixir.js +0 -0
- package/packages/config-eslint/_legacy/dictionaries/programming/go.js +0 -0
- package/packages/config-eslint/_legacy/dictionaries/programming/java.js +0 -0
- package/packages/config-eslint/_legacy/dictionaries/programming/latex.js +0 -0
- package/packages/config-eslint/_legacy/dictionaries/programming/lua.js +0 -0
- package/packages/config-eslint/_legacy/dictionaries/programming/php.js +0 -0
- package/packages/config-eslint/_legacy/dictionaries/programming/python.js +0 -0
- package/packages/config-eslint/_legacy/dictionaries/programming/ruby.js +0 -0
- package/packages/config-eslint/_legacy/dictionaries/programming/rust.js +0 -0
- package/packages/config-eslint/_legacy/dictionaries/programming/scala.js +0 -0
- package/packages/config-eslint/_legacy/dictionaries/specialized/html-symbol-entities.js +0 -0
- package/packages/config-eslint/_legacy/dictionaries/specialized/lorem-ipsum.js +0 -0
- package/packages/config-eslint/_legacy/index.js +0 -0
- package/packages/config-eslint/_legacy/legacy.js +0 -0
- package/packages/config-eslint/_legacy/package.json +0 -0
- package/packages/config-eslint/_legacy/plugins/array-func.js +0 -0
- package/packages/config-eslint/_legacy/plugins/compat.js +0 -0
- package/packages/config-eslint/_legacy/plugins/decorator-position.js +0 -0
- package/packages/config-eslint/_legacy/plugins/eslint-comments.js +0 -0
- package/packages/config-eslint/_legacy/plugins/etc.js +0 -0
- package/packages/config-eslint/_legacy/plugins/ext.js +0 -0
- package/packages/config-eslint/_legacy/plugins/filenames.js +0 -0
- package/packages/config-eslint/_legacy/plugins/import.js +0 -0
- package/packages/config-eslint/_legacy/plugins/jsdoc.js +0 -0
- package/packages/config-eslint/_legacy/plugins/jsx-a11y.js +0 -0
- package/packages/config-eslint/_legacy/plugins/lit-a11y.js +0 -0
- package/packages/config-eslint/_legacy/plugins/lit.js +0 -0
- package/packages/config-eslint/_legacy/plugins/more.js +0 -0
- package/packages/config-eslint/_legacy/plugins/no-constructor-bind.js +0 -0
- package/packages/config-eslint/_legacy/plugins/no-explicit-type-exports.js +0 -0
- package/packages/config-eslint/_legacy/plugins/no-loops.js +0 -0
- package/packages/config-eslint/_legacy/plugins/no-secrets.js +0 -0
- package/packages/config-eslint/_legacy/plugins/no-use-extend-native.js +0 -0
- package/packages/config-eslint/_legacy/plugins/node.js +0 -0
- package/packages/config-eslint/_legacy/plugins/prettier.js +0 -0
- package/packages/config-eslint/_legacy/plugins/promise.js +0 -0
- package/packages/config-eslint/_legacy/plugins/regexp.js +0 -0
- package/packages/config-eslint/_legacy/plugins/security.js +0 -0
- package/packages/config-eslint/_legacy/plugins/simple-import-sort.js +0 -0
- package/packages/config-eslint/_legacy/plugins/sonar.js +0 -0
- package/packages/config-eslint/_legacy/plugins/sort-class-members.js +0 -0
- package/packages/config-eslint/_legacy/plugins/sort-destructure-keys.js +0 -0
- package/packages/config-eslint/_legacy/plugins/sort-keys-fix.js +0 -0
- package/packages/config-eslint/_legacy/plugins/spellcheck.js +0 -0
- package/packages/config-eslint/_legacy/plugins/sql.js +0 -0
- package/packages/config-eslint/_legacy/plugins/tanstack-query.js +0 -0
- package/packages/config-eslint/_legacy/plugins/testing-library.js +0 -0
- package/packages/config-eslint/_legacy/plugins/typescript-sort-keys.js +0 -0
- package/packages/config-eslint/_legacy/plugins/unicorn.js +0 -0
- package/packages/config-eslint/_legacy/plugins/unused-imports.js +0 -0
- package/packages/config-eslint/_legacy/plugins/vitest.js +0 -0
- package/packages/config-eslint/_legacy/plugins/vue-i18n.js +0 -0
- package/packages/config-eslint/_legacy/plugins/vue.js +0 -0
- package/packages/config-eslint/_legacy/plugins/vuejs-accessibility.js +0 -0
- package/packages/config-eslint/_legacy/plugins/wc.js +0 -0
- package/packages/config-eslint/_legacy/plugins/write-good-comments.js +0 -0
- package/packages/config-eslint/_legacy/utils/create-config.js +0 -0
- package/packages/config-eslint/index.js +0 -0
- package/packages/config-eslint/node_modules/.bin/acorn +17 -0
- package/packages/config-eslint/node_modules/.bin/browserslist +17 -0
- package/packages/config-eslint/node_modules/.bin/eslint +17 -0
- package/packages/config-eslint/node_modules/.bin/eslint-config-prettier +17 -0
- package/packages/config-eslint/node_modules/.bin/jiti +17 -0
- package/packages/config-eslint/node_modules/.bin/prettier +17 -0
- package/packages/config-eslint/node_modules/.bin/tsc +17 -0
- package/packages/config-eslint/node_modules/.bin/tsserver +17 -0
- package/packages/config-eslint/package.json +3 -3
- package/packages/config-eslint/plugins/sonar.js +4 -0
- package/packages/config-hooks/LICENSE +0 -0
- package/packages/config-hooks/lint-staged.js +0 -0
- package/packages/config-hooks/node_modules/.bin/husky +17 -0
- package/packages/config-hooks/node_modules/.bin/lint-staged +17 -0
- package/packages/config-hooks/package.json +0 -0
- package/packages/config-htmllint/LICENSE +0 -0
- package/packages/config-htmllint/index.js +0 -0
- package/packages/config-htmllint/node_modules/.bin/linthtml +17 -0
- package/packages/config-htmllint/node_modules/.bin/tsc +17 -0
- package/packages/config-htmllint/node_modules/.bin/tsserver +17 -0
- package/packages/config-htmllint/package.json +0 -0
- package/packages/config-markdownlint/LICENSE +0 -0
- package/packages/config-markdownlint/index.json +0 -0
- package/packages/config-markdownlint/node_modules/.bin/markdownlint +17 -0
- package/packages/config-markdownlint/package.json +0 -0
- package/packages/config-npmlint/LICENSE +0 -0
- package/packages/config-npmlint/index.json +0 -0
- package/packages/config-npmlint/node_modules/.bin/lockfile-lint +17 -0
- package/packages/config-npmlint/node_modules/.bin/npmPkgJsonLint +17 -0
- package/packages/config-npmlint/node_modules/.bin/tsc +17 -0
- package/packages/config-npmlint/node_modules/.bin/tsserver +17 -0
- package/packages/config-npmlint/package.json +0 -0
- package/packages/config-prettier/LICENSE +0 -0
- package/packages/config-prettier/index.js +0 -0
- package/packages/config-prettier/node_modules/.bin/prettier +17 -0
- package/packages/config-prettier/package.json +0 -0
- package/packages/config-prettier/plugins/jsdoc.js +0 -0
- package/packages/config-prettier/plugins/packagejson.js +0 -0
- package/packages/config-prettier/plugins/php.js +0 -0
- package/packages/config-prettier/plugins/pug.js +0 -0
- package/packages/config-prettier/plugins/ruby.js +0 -0
- package/packages/config-prettier/plugins/sh.js +0 -0
- package/packages/config-prettier/plugins/solidity.js +0 -0
- package/packages/config-prettier/plugins/sort-json.js +0 -0
- package/packages/config-prettier/plugins/sql.js +0 -0
- package/packages/config-prettier/plugins/svelte.js +0 -0
- package/packages/config-prettier/plugins/tailwindcss.js +0 -0
- package/packages/config-prettier/plugins/xml.js +0 -0
- package/packages/config-stylelint/LICENSE +0 -0
- package/packages/config-stylelint/index.js +2 -1
- package/packages/config-stylelint/node_modules/.bin/browserslist +17 -0
- package/packages/config-stylelint/node_modules/.bin/prettier +17 -0
- package/packages/config-stylelint/node_modules/.bin/stylelint +17 -0
- package/packages/config-stylelint/node_modules/.bin/tsc +17 -0
- package/packages/config-stylelint/node_modules/.bin/tsserver +17 -0
- package/packages/config-stylelint/package.json +0 -0
- package/packages/config-stylelint/plugins/a11y.js +0 -0
- package/packages/config-stylelint/plugins/at-rule-no-children.js +0 -0
- package/packages/config-stylelint/plugins/color-format.js +0 -0
- package/packages/config-stylelint/plugins/declaration-block-no-ignored-properties.js +0 -0
- package/packages/config-stylelint/plugins/gamut.js +0 -0
- package/packages/config-stylelint/plugins/high-performance-animation.js +0 -0
- package/packages/config-stylelint/plugins/logical-css.js +0 -0
- package/packages/config-stylelint/plugins/no-indistinguishable-colors.js +0 -0
- package/packages/config-stylelint/plugins/no-nested-media.js +0 -0
- package/packages/config-stylelint/plugins/no-unresolved-module.js +0 -0
- package/packages/config-stylelint/plugins/no-unsupported-browser-features.js +0 -0
- package/packages/config-stylelint/plugins/order.js +0 -0
- package/packages/config-stylelint/plugins/prettier.js +0 -0
- package/packages/config-stylelint/plugins/scss.js +0 -0
- package/packages/config-stylelint/plugins/selector-no-empty.js +0 -0
- package/packages/config-stylelint/plugins/use-nesting.js +0 -0
- package/prettier.config.js +0 -0
- package/scripts/check.editorconfig.sh +0 -0
- package/scripts/i.sh +1 -1
- package/scripts/lint.eslint.sh +0 -0
- package/scripts/lint.htmllint.sh +0 -0
- package/scripts/lint.markdownlint.sh +0 -0
- package/scripts/lint.npmlint.sh +1 -1
- package/scripts/lint.sh +5 -5
- package/scripts/lint.stylelint.sh +0 -0
- package/scripts/ou.sh +8 -0
- package/scripts/preinstall.sh +1 -0
- package/scripts/release.sh +3 -3
- package/scripts/semver.sh +0 -0
- package/scripts/up.sh +12 -27
- package/stylelint.config.js +0 -0
- package/packages/config-markdownlint/node_modules/markdownlint/CHANGELOG.md +0 -457
- package/packages/config-markdownlint/node_modules/markdownlint/CONTRIBUTING.md +0 -93
- package/packages/config-markdownlint/node_modules/markdownlint/LICENSE +0 -21
- package/packages/config-markdownlint/node_modules/markdownlint/README.md +0 -1047
- package/packages/config-markdownlint/node_modules/markdownlint/demo/markdownlint-browser.js +0 -7094
- package/packages/config-markdownlint/node_modules/markdownlint/doc/CustomRules.md +0 -388
- package/packages/config-markdownlint/node_modules/markdownlint/doc/Prettier.md +0 -27
- package/packages/config-markdownlint/node_modules/markdownlint/doc/ReleaseProcess.md +0 -20
- package/packages/config-markdownlint/node_modules/markdownlint/doc/Rules.md +0 -2528
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md001.md +0 -37
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md003.md +0 -59
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md004.md +0 -49
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md005.md +0 -53
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md007.md +0 -52
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md009.md +0 -51
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md010.md +0 -56
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md011.md +0 -30
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md012.md +0 -38
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md013.md +0 -58
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md014.md +0 -54
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md018.md +0 -27
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md019.md +0 -28
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md020.md +0 -29
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md021.md +0 -31
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md022.md +0 -52
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md023.md +0 -33
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md024.md +0 -44
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md025.md +0 -49
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md026.md +0 -40
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md027.md +0 -24
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md028.md +0 -40
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md029.md +0 -98
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md030.md +0 -82
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md031.md +0 -50
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md032.md +0 -55
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md033.md +0 -27
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md034.md +0 -55
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md035.md +0 -42
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md036.md +0 -45
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md037.md +0 -37
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md038.md +0 -40
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md039.md +0 -21
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md040.md +0 -52
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md041.md +0 -49
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md042.md +0 -32
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md043.md +0 -69
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md044.md +0 -45
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md045.md +0 -40
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md046.md +0 -40
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md047.md +0 -34
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md048.md +0 -41
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md049.md +0 -35
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md050.md +0 -35
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md051.md +0 -87
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md052.md +0 -40
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md053.md +0 -38
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md054.md +0 -100
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md055.md +0 -54
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md056.md +0 -37
- package/packages/config-markdownlint/node_modules/markdownlint/doc/md058.md +0 -48
- package/packages/config-markdownlint/node_modules/markdownlint/helpers/LICENSE +0 -21
- package/packages/config-markdownlint/node_modules/markdownlint/helpers/README.md +0 -46
- package/packages/config-markdownlint/node_modules/markdownlint/helpers/helpers.js +0 -793
- package/packages/config-markdownlint/node_modules/markdownlint/helpers/micromark.cjs +0 -544
- package/packages/config-markdownlint/node_modules/markdownlint/helpers/package.json +0 -26
- package/packages/config-markdownlint/node_modules/markdownlint/helpers/shared.js +0 -10
- package/packages/config-markdownlint/node_modules/markdownlint/lib/cache.js +0 -70
- package/packages/config-markdownlint/node_modules/markdownlint/lib/configuration-strict.d.ts +0 -1185
- package/packages/config-markdownlint/node_modules/markdownlint/lib/configuration.d.ts +0 -8
- package/packages/config-markdownlint/node_modules/markdownlint/lib/constants.js +0 -15
- package/packages/config-markdownlint/node_modules/markdownlint/lib/markdownlint.d.ts +0 -488
- package/packages/config-markdownlint/node_modules/markdownlint/lib/markdownlint.js +0 -1572
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md001.js +0 -31
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md003.js +0 -50
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md004.js +0 -86
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md005.js +0 -72
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md007.js +0 -88
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md009.js +0 -95
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md010.js +0 -78
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md011.js +0 -57
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md012.js +0 -43
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md013.js +0 -105
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md014.js +0 -54
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md018.js +0 -46
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md019-md021.js +0 -80
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md020.js +0 -71
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md022.js +0 -106
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md023.js +0 -40
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md024.js +0 -48
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md025.js +0 -40
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md026.js +0 -49
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md027.js +0 -37
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md028.js +0 -42
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md029.js +0 -76
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md030.js +0 -60
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md031.js +0 -63
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md032.js +0 -66
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md033.js +0 -41
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md034.js +0 -100
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md035.js +0 -26
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md036.js +0 -51
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md037.js +0 -94
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md038.js +0 -100
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md039.js +0 -83
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md040.js +0 -37
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md041.js +0 -37
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md042.js +0 -63
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md043.js +0 -73
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md044.js +0 -110
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md045.js +0 -62
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md046.js +0 -34
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md047.js +0 -31
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md048.js +0 -39
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md049-md050.js +0 -103
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md051.js +0 -170
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md052.js +0 -42
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md053.js +0 -62
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md054.js +0 -125
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md055.js +0 -79
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md056.js +0 -56
- package/packages/config-markdownlint/node_modules/markdownlint/lib/md058.js +0 -43
- package/packages/config-markdownlint/node_modules/markdownlint/lib/rules.js +0 -74
- package/packages/config-markdownlint/node_modules/markdownlint/package.json +0 -105
- package/packages/config-markdownlint/node_modules/markdownlint/schema/.markdownlint.jsonc +0 -307
- package/packages/config-markdownlint/node_modules/markdownlint/schema/.markdownlint.yaml +0 -275
- package/packages/config-markdownlint/node_modules/markdownlint/schema/ValidatingConfiguration.md +0 -26
- package/packages/config-markdownlint/node_modules/markdownlint/schema/markdownlint-config-schema-strict.json +0 -1819
- package/packages/config-markdownlint/node_modules/markdownlint/schema/markdownlint-config-schema.json +0 -1824
- package/packages/config-markdownlint/node_modules/markdownlint/style/all.json +0 -5
- package/packages/config-markdownlint/node_modules/markdownlint/style/cirosantilli.json +0 -22
- package/packages/config-markdownlint/node_modules/markdownlint/style/prettier.json +0 -27
- package/packages/config-markdownlint/node_modules/markdownlint/style/relaxed.json +0 -12
- package/packages/config-markdownlint/node_modules/markdownlint-micromark/LICENSE +0 -21
- package/packages/config-markdownlint/node_modules/markdownlint-micromark/README.md +0 -10
- package/packages/config-markdownlint/node_modules/markdownlint-micromark/micromark-browser.js +0 -2
- package/packages/config-markdownlint/node_modules/markdownlint-micromark/micromark-html-browser.js +0 -2
- package/packages/config-markdownlint/node_modules/markdownlint-micromark/micromark.cjs +0 -1
- package/packages/config-markdownlint/node_modules/markdownlint-micromark/micromark.d.cts +0 -1751
- package/packages/config-markdownlint/node_modules/markdownlint-micromark/package.json +0 -46
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
# `MD022` - Headings should be surrounded by blank lines
|
|
2
|
-
|
|
3
|
-
Tags: `blank_lines`, `headings`
|
|
4
|
-
|
|
5
|
-
Aliases: `blanks-around-headings`
|
|
6
|
-
|
|
7
|
-
Parameters:
|
|
8
|
-
|
|
9
|
-
- `lines_above`: Blank lines above heading (`integer|integer[]`, default `1`)
|
|
10
|
-
- `lines_below`: Blank lines below heading (`integer|integer[]`, default `1`)
|
|
11
|
-
|
|
12
|
-
Fixable: Some violations can be fixed by tooling
|
|
13
|
-
|
|
14
|
-
This rule is triggered when headings (any style) are either not preceded or not
|
|
15
|
-
followed by at least one blank line:
|
|
16
|
-
|
|
17
|
-
```markdown
|
|
18
|
-
# Heading 1
|
|
19
|
-
Some text
|
|
20
|
-
|
|
21
|
-
Some more text
|
|
22
|
-
## Heading 2
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
To fix this, ensure that all headings have a blank line both before and after
|
|
26
|
-
(except where the heading is at the beginning or end of the document):
|
|
27
|
-
|
|
28
|
-
```markdown
|
|
29
|
-
# Heading 1
|
|
30
|
-
|
|
31
|
-
Some text
|
|
32
|
-
|
|
33
|
-
Some more text
|
|
34
|
-
|
|
35
|
-
## Heading 2
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
The `lines_above` and `lines_below` parameters can be used to specify a
|
|
39
|
-
different number of blank lines (including `0`) above or below each heading.
|
|
40
|
-
If the value `-1` is used for either parameter, any number of blank lines is
|
|
41
|
-
allowed. To customize the number of lines above or below each heading level
|
|
42
|
-
individually, specify a `number[]` where values correspond to heading levels
|
|
43
|
-
1-6 (in order).
|
|
44
|
-
|
|
45
|
-
Notes: If `lines_above` or `lines_below` are configured to require more than one
|
|
46
|
-
blank line, [MD012/no-multiple-blanks](md012.md) should also be customized. This
|
|
47
|
-
rule checks for *at least* as many blank lines as specified; any extra blank
|
|
48
|
-
lines are ignored.
|
|
49
|
-
|
|
50
|
-
Rationale: Aside from aesthetic reasons, some parsers, including `kramdown`,
|
|
51
|
-
will not parse headings that don't have a blank line before, and will parse them
|
|
52
|
-
as regular text.
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
# `MD023` - Headings must start at the beginning of the line
|
|
2
|
-
|
|
3
|
-
Tags: `headings`, `spaces`
|
|
4
|
-
|
|
5
|
-
Aliases: `heading-start-left`
|
|
6
|
-
|
|
7
|
-
Fixable: Some violations can be fixed by tooling
|
|
8
|
-
|
|
9
|
-
This rule is triggered when a heading is indented by one or more spaces:
|
|
10
|
-
|
|
11
|
-
```markdown
|
|
12
|
-
Some text
|
|
13
|
-
|
|
14
|
-
# Indented heading
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
To fix this, ensure that all headings start at the beginning of the line:
|
|
18
|
-
|
|
19
|
-
```markdown
|
|
20
|
-
Some text
|
|
21
|
-
|
|
22
|
-
# Heading
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
Note that scenarios like block quotes "indent" the start of the line, so the
|
|
26
|
-
following is also correct:
|
|
27
|
-
|
|
28
|
-
```markdown
|
|
29
|
-
> # Heading in Block Quote
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
Rationale: Headings that don't start at the beginning of the line will not be
|
|
33
|
-
parsed as headings, and will instead appear as regular text.
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
# `MD024` - Multiple headings with the same content
|
|
2
|
-
|
|
3
|
-
Tags: `headings`
|
|
4
|
-
|
|
5
|
-
Aliases: `no-duplicate-heading`
|
|
6
|
-
|
|
7
|
-
Parameters:
|
|
8
|
-
|
|
9
|
-
- `siblings_only`: Only check sibling headings (`boolean`, default `false`)
|
|
10
|
-
|
|
11
|
-
This rule is triggered if there are multiple headings in the document that have
|
|
12
|
-
the same text:
|
|
13
|
-
|
|
14
|
-
```markdown
|
|
15
|
-
# Some text
|
|
16
|
-
|
|
17
|
-
## Some text
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
To fix this, ensure that the content of each heading is different:
|
|
21
|
-
|
|
22
|
-
```markdown
|
|
23
|
-
# Some text
|
|
24
|
-
|
|
25
|
-
## Some more text
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
If the parameter `siblings_only` is set to `true`, duplication is allowed for
|
|
29
|
-
headings with different parents (as is common in changelogs):
|
|
30
|
-
|
|
31
|
-
```markdown
|
|
32
|
-
# Change log
|
|
33
|
-
|
|
34
|
-
## 1.0.0
|
|
35
|
-
|
|
36
|
-
### Features
|
|
37
|
-
|
|
38
|
-
## 2.0.0
|
|
39
|
-
|
|
40
|
-
### Features
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
Rationale: Some Markdown parsers generate anchors for headings based on the
|
|
44
|
-
heading name; headings with the same content can cause problems with that.
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
# `MD025` - Multiple top-level headings in the same document
|
|
2
|
-
|
|
3
|
-
Tags: `headings`
|
|
4
|
-
|
|
5
|
-
Aliases: `single-h1`, `single-title`
|
|
6
|
-
|
|
7
|
-
Parameters:
|
|
8
|
-
|
|
9
|
-
- `front_matter_title`: RegExp for matching title in front matter (`string`,
|
|
10
|
-
default `^\s*title\s*[:=]`)
|
|
11
|
-
- `level`: Heading level (`integer`, default `1`)
|
|
12
|
-
|
|
13
|
-
This rule is triggered when a top-level heading is in use (the first line of
|
|
14
|
-
the file is an h1 heading), and more than one h1 heading is in use in the
|
|
15
|
-
document:
|
|
16
|
-
|
|
17
|
-
```markdown
|
|
18
|
-
# Top level heading
|
|
19
|
-
|
|
20
|
-
# Another top-level heading
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
To fix, structure your document so there is a single h1 heading that is
|
|
24
|
-
the title for the document. Subsequent headings must be
|
|
25
|
-
lower-level headings (h2, h3, etc.):
|
|
26
|
-
|
|
27
|
-
```markdown
|
|
28
|
-
# Title
|
|
29
|
-
|
|
30
|
-
## Heading
|
|
31
|
-
|
|
32
|
-
## Another heading
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
Note: The `level` parameter can be used to change the top-level (ex: to h2) in
|
|
36
|
-
cases where an h1 is added externally.
|
|
37
|
-
|
|
38
|
-
If [YAML](https://en.wikipedia.org/wiki/YAML) front matter is present and
|
|
39
|
-
contains a `title` property (commonly used with blog posts), this rule treats
|
|
40
|
-
that as a top level heading and will report a violation for any subsequent
|
|
41
|
-
top-level headings. To use a different property name in the front matter,
|
|
42
|
-
specify the text of a regular expression via the `front_matter_title` parameter.
|
|
43
|
-
To disable the use of front matter by this rule, specify `""` for
|
|
44
|
-
`front_matter_title`.
|
|
45
|
-
|
|
46
|
-
Rationale: A top-level heading is an h1 on the first line of the file, and
|
|
47
|
-
serves as the title for the document. If this convention is in use, then there
|
|
48
|
-
can not be more than one title for the document, and the entire document should
|
|
49
|
-
be contained within this heading.
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
# `MD026` - Trailing punctuation in heading
|
|
2
|
-
|
|
3
|
-
Tags: `headings`
|
|
4
|
-
|
|
5
|
-
Aliases: `no-trailing-punctuation`
|
|
6
|
-
|
|
7
|
-
Parameters:
|
|
8
|
-
|
|
9
|
-
- `punctuation`: Punctuation characters (`string`, default `.,;:!。,;:!`)
|
|
10
|
-
|
|
11
|
-
Fixable: Some violations can be fixed by tooling
|
|
12
|
-
|
|
13
|
-
This rule is triggered on any heading that has one of the specified normal or
|
|
14
|
-
full-width punctuation characters as the last character in the line:
|
|
15
|
-
|
|
16
|
-
```markdown
|
|
17
|
-
# This is a heading.
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
To fix this, remove the trailing punctuation:
|
|
21
|
-
|
|
22
|
-
```markdown
|
|
23
|
-
# This is a heading
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
Note: The `punctuation` parameter can be used to specify what characters count
|
|
27
|
-
as punctuation at the end of a heading. For example, you can change it to
|
|
28
|
-
`".,;:"` to allow headings that end with an exclamation point. `?` is
|
|
29
|
-
allowed by default because of how common it is in headings of FAQ-style
|
|
30
|
-
documents. Setting the `punctuation` parameter to `""` allows all characters -
|
|
31
|
-
and is equivalent to disabling the rule.
|
|
32
|
-
|
|
33
|
-
Note: The trailing semicolon of [HTML entity references][html-entity-references]
|
|
34
|
-
like `©`, `©`, and `©` is ignored by this rule.
|
|
35
|
-
|
|
36
|
-
Rationale: Headings are not meant to be full sentences. More information:
|
|
37
|
-
[Punctuation at the end of headers][end-punctuation].
|
|
38
|
-
|
|
39
|
-
[end-punctuation]: https://cirosantilli.com/markdown-style-guide#punctuation-at-the-end-of-headers
|
|
40
|
-
[html-entity-references]: https://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
# `MD027` - Multiple spaces after blockquote symbol
|
|
2
|
-
|
|
3
|
-
Tags: `blockquote`, `indentation`, `whitespace`
|
|
4
|
-
|
|
5
|
-
Aliases: `no-multiple-space-blockquote`
|
|
6
|
-
|
|
7
|
-
Fixable: Some violations can be fixed by tooling
|
|
8
|
-
|
|
9
|
-
This rule is triggered when blockquotes have more than one space after the
|
|
10
|
-
blockquote (`>`) symbol:
|
|
11
|
-
|
|
12
|
-
```markdown
|
|
13
|
-
> This is a blockquote with bad indentation
|
|
14
|
-
> there should only be one.
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
To fix, remove any extraneous space:
|
|
18
|
-
|
|
19
|
-
```markdown
|
|
20
|
-
> This is a blockquote with correct
|
|
21
|
-
> indentation.
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
Rationale: Consistent formatting makes it easier to understand a document.
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
# `MD028` - Blank line inside blockquote
|
|
2
|
-
|
|
3
|
-
Tags: `blockquote`, `whitespace`
|
|
4
|
-
|
|
5
|
-
Aliases: `no-blanks-blockquote`
|
|
6
|
-
|
|
7
|
-
This rule is triggered when two blockquote blocks are separated by nothing
|
|
8
|
-
except for a blank line:
|
|
9
|
-
|
|
10
|
-
```markdown
|
|
11
|
-
> This is a blockquote
|
|
12
|
-
> which is immediately followed by
|
|
13
|
-
|
|
14
|
-
> this blockquote. Unfortunately
|
|
15
|
-
> In some parsers, these are treated as the same blockquote.
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
To fix this, ensure that any blockquotes that are right next to each other
|
|
19
|
-
have some text in between:
|
|
20
|
-
|
|
21
|
-
```markdown
|
|
22
|
-
> This is a blockquote.
|
|
23
|
-
|
|
24
|
-
And Jimmy also said:
|
|
25
|
-
|
|
26
|
-
> This too is a blockquote.
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
Alternatively, if they are supposed to be the same quote, then add the
|
|
30
|
-
blockquote symbol at the beginning of the blank line:
|
|
31
|
-
|
|
32
|
-
```markdown
|
|
33
|
-
> This is a blockquote.
|
|
34
|
-
>
|
|
35
|
-
> This is the same blockquote.
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
Rationale: Some Markdown parsers will treat two blockquotes separated by one
|
|
39
|
-
or more blank lines as the same blockquote, while others will treat them as
|
|
40
|
-
separate blockquotes.
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
# `MD029` - Ordered list item prefix
|
|
2
|
-
|
|
3
|
-
Tags: `ol`
|
|
4
|
-
|
|
5
|
-
Aliases: `ol-prefix`
|
|
6
|
-
|
|
7
|
-
Parameters:
|
|
8
|
-
|
|
9
|
-
- `style`: List style (`string`, default `one_or_ordered`, values `one` /
|
|
10
|
-
`one_or_ordered` / `ordered` / `zero`)
|
|
11
|
-
|
|
12
|
-
This rule is triggered for ordered lists that do not either start with '1.' or
|
|
13
|
-
do not have a prefix that increases in numerical order (depending on the
|
|
14
|
-
configured style). The less-common pattern of using '0.' as a first prefix or
|
|
15
|
-
for all prefixes is also supported.
|
|
16
|
-
|
|
17
|
-
Example valid list if the style is configured as 'one':
|
|
18
|
-
|
|
19
|
-
```markdown
|
|
20
|
-
1. Do this.
|
|
21
|
-
1. Do that.
|
|
22
|
-
1. Done.
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
Examples of valid lists if the style is configured as 'ordered':
|
|
26
|
-
|
|
27
|
-
```markdown
|
|
28
|
-
1. Do this.
|
|
29
|
-
2. Do that.
|
|
30
|
-
3. Done.
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
```markdown
|
|
34
|
-
0. Do this.
|
|
35
|
-
1. Do that.
|
|
36
|
-
2. Done.
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
All three examples are valid when the style is configured as 'one_or_ordered'.
|
|
40
|
-
|
|
41
|
-
Example valid list if the style is configured as 'zero':
|
|
42
|
-
|
|
43
|
-
```markdown
|
|
44
|
-
0. Do this.
|
|
45
|
-
0. Do that.
|
|
46
|
-
0. Done.
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
Example invalid list for all styles:
|
|
50
|
-
|
|
51
|
-
```markdown
|
|
52
|
-
1. Do this.
|
|
53
|
-
3. Done.
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
This rule supports 0-prefixing ordered list items for uniform indentation:
|
|
57
|
-
|
|
58
|
-
```markdown
|
|
59
|
-
...
|
|
60
|
-
08. Item
|
|
61
|
-
09. Item
|
|
62
|
-
10. Item
|
|
63
|
-
11. Item
|
|
64
|
-
...
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
Note: This rule will report violations for cases like the following where an
|
|
68
|
-
improperly-indented code block (or similar) appears between two list items and
|
|
69
|
-
"breaks" the list in two:
|
|
70
|
-
|
|
71
|
-
<!-- markdownlint-disable code-fence-style -->
|
|
72
|
-
|
|
73
|
-
~~~markdown
|
|
74
|
-
1. First list
|
|
75
|
-
|
|
76
|
-
```text
|
|
77
|
-
Code block
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
1. Second list
|
|
81
|
-
~~~
|
|
82
|
-
|
|
83
|
-
The fix is to indent the code block so it becomes part of the preceding list
|
|
84
|
-
item as intended:
|
|
85
|
-
|
|
86
|
-
~~~markdown
|
|
87
|
-
1. First list
|
|
88
|
-
|
|
89
|
-
```text
|
|
90
|
-
Code block
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
2. Still first list
|
|
94
|
-
~~~
|
|
95
|
-
|
|
96
|
-
<!-- markdownlint-restore -->
|
|
97
|
-
|
|
98
|
-
Rationale: Consistent formatting makes it easier to understand a document.
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
# `MD030` - Spaces after list markers
|
|
2
|
-
|
|
3
|
-
Tags: `ol`, `ul`, `whitespace`
|
|
4
|
-
|
|
5
|
-
Aliases: `list-marker-space`
|
|
6
|
-
|
|
7
|
-
Parameters:
|
|
8
|
-
|
|
9
|
-
- `ol_multi`: Spaces for multi-line ordered list items (`integer`, default `1`)
|
|
10
|
-
- `ol_single`: Spaces for single-line ordered list items (`integer`, default
|
|
11
|
-
`1`)
|
|
12
|
-
- `ul_multi`: Spaces for multi-line unordered list items (`integer`, default
|
|
13
|
-
`1`)
|
|
14
|
-
- `ul_single`: Spaces for single-line unordered list items (`integer`, default
|
|
15
|
-
`1`)
|
|
16
|
-
|
|
17
|
-
Fixable: Some violations can be fixed by tooling
|
|
18
|
-
|
|
19
|
-
This rule checks for the number of spaces between a list marker (e.g. '`-`',
|
|
20
|
-
'`*`', '`+`' or '`1.`') and the text of the list item.
|
|
21
|
-
|
|
22
|
-
The number of spaces checked for depends on the document style in use, but the
|
|
23
|
-
default is 1 space after any list marker:
|
|
24
|
-
|
|
25
|
-
```markdown
|
|
26
|
-
* Foo
|
|
27
|
-
* Bar
|
|
28
|
-
* Baz
|
|
29
|
-
|
|
30
|
-
1. Foo
|
|
31
|
-
1. Bar
|
|
32
|
-
1. Baz
|
|
33
|
-
|
|
34
|
-
1. Foo
|
|
35
|
-
* Bar
|
|
36
|
-
1. Baz
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
A document style may change the number of spaces after unordered list items
|
|
40
|
-
and ordered list items independently, as well as based on whether the content
|
|
41
|
-
of every item in the list consists of a single paragraph or multiple
|
|
42
|
-
paragraphs (including sub-lists and code blocks).
|
|
43
|
-
|
|
44
|
-
For example, the style guide at
|
|
45
|
-
<https://cirosantilli.com/markdown-style-guide#spaces-after-list-marker>
|
|
46
|
-
specifies that 1 space after the list marker should be used if every item in
|
|
47
|
-
the list fits within a single paragraph, but to use 2 or 3 spaces (for ordered
|
|
48
|
-
and unordered lists respectively) if there are multiple paragraphs of content
|
|
49
|
-
inside the list:
|
|
50
|
-
|
|
51
|
-
```markdown
|
|
52
|
-
* Foo
|
|
53
|
-
* Bar
|
|
54
|
-
* Baz
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
vs.
|
|
58
|
-
|
|
59
|
-
```markdown
|
|
60
|
-
* Foo
|
|
61
|
-
|
|
62
|
-
Second paragraph
|
|
63
|
-
|
|
64
|
-
* Bar
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
or
|
|
68
|
-
|
|
69
|
-
```markdown
|
|
70
|
-
1. Foo
|
|
71
|
-
|
|
72
|
-
Second paragraph
|
|
73
|
-
|
|
74
|
-
1. Bar
|
|
75
|
-
```
|
|
76
|
-
|
|
77
|
-
To fix this, ensure the correct number of spaces are used after the list marker
|
|
78
|
-
for your selected document style.
|
|
79
|
-
|
|
80
|
-
Rationale: Violations of this rule can lead to improperly rendered content.
|
|
81
|
-
|
|
82
|
-
Note: See [Prettier.md](Prettier.md) for compatibility information.
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
# `MD031` - Fenced code blocks should be surrounded by blank lines
|
|
2
|
-
|
|
3
|
-
Tags: `blank_lines`, `code`
|
|
4
|
-
|
|
5
|
-
Aliases: `blanks-around-fences`
|
|
6
|
-
|
|
7
|
-
Parameters:
|
|
8
|
-
|
|
9
|
-
- `list_items`: Include list items (`boolean`, default `true`)
|
|
10
|
-
|
|
11
|
-
Fixable: Some violations can be fixed by tooling
|
|
12
|
-
|
|
13
|
-
This rule is triggered when fenced code blocks are either not preceded or not
|
|
14
|
-
followed by a blank line:
|
|
15
|
-
|
|
16
|
-
````markdown
|
|
17
|
-
Some text
|
|
18
|
-
```
|
|
19
|
-
Code block
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
```
|
|
23
|
-
Another code block
|
|
24
|
-
```
|
|
25
|
-
Some more text
|
|
26
|
-
````
|
|
27
|
-
|
|
28
|
-
To fix this, ensure that all fenced code blocks have a blank line both before
|
|
29
|
-
and after (except where the block is at the beginning or end of the document):
|
|
30
|
-
|
|
31
|
-
````markdown
|
|
32
|
-
Some text
|
|
33
|
-
|
|
34
|
-
```
|
|
35
|
-
Code block
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
```
|
|
39
|
-
Another code block
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
Some more text
|
|
43
|
-
````
|
|
44
|
-
|
|
45
|
-
Set the `list_items` parameter to `false` to disable this rule for list items.
|
|
46
|
-
Disabling this behavior for lists can be useful if it is necessary to create a
|
|
47
|
-
[tight](https://spec.commonmark.org/0.29/#tight) list containing a code fence.
|
|
48
|
-
|
|
49
|
-
Rationale: Aside from aesthetic reasons, some parsers, including kramdown, will
|
|
50
|
-
not parse fenced code blocks that don't have blank lines before and after them.
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
# `MD032` - Lists should be surrounded by blank lines
|
|
2
|
-
|
|
3
|
-
Tags: `blank_lines`, `bullet`, `ol`, `ul`
|
|
4
|
-
|
|
5
|
-
Aliases: `blanks-around-lists`
|
|
6
|
-
|
|
7
|
-
Fixable: Some violations can be fixed by tooling
|
|
8
|
-
|
|
9
|
-
This rule is triggered when lists (of any kind) are either not preceded or not
|
|
10
|
-
followed by a blank line:
|
|
11
|
-
|
|
12
|
-
```markdown
|
|
13
|
-
Some text
|
|
14
|
-
* List item
|
|
15
|
-
* List item
|
|
16
|
-
|
|
17
|
-
1. List item
|
|
18
|
-
2. List item
|
|
19
|
-
***
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
In the first case above, text immediately precedes the unordered list. In the
|
|
23
|
-
second case above, a thematic break immediately follows the ordered list. To fix
|
|
24
|
-
violations of this rule, ensure that all lists have a blank line both before and
|
|
25
|
-
after (except when the list is at the very beginning or end of the document):
|
|
26
|
-
|
|
27
|
-
```markdown
|
|
28
|
-
Some text
|
|
29
|
-
|
|
30
|
-
* List item
|
|
31
|
-
* List item
|
|
32
|
-
|
|
33
|
-
1. List item
|
|
34
|
-
2. List item
|
|
35
|
-
|
|
36
|
-
***
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
Note that the following case is **not** a violation of this rule:
|
|
40
|
-
|
|
41
|
-
```markdown
|
|
42
|
-
1. List item
|
|
43
|
-
More item 1
|
|
44
|
-
2. List item
|
|
45
|
-
More item 2
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
Although it is not indented, the text "More item 2" is referred to as a
|
|
49
|
-
[lazy continuation line][lazy-continuation] and considered part of the second
|
|
50
|
-
list item.
|
|
51
|
-
|
|
52
|
-
Rationale: In addition to aesthetic reasons, some parsers, including kramdown,
|
|
53
|
-
will not parse lists that don't have blank lines before and after them.
|
|
54
|
-
|
|
55
|
-
[lazy-continuation]: https://spec.commonmark.org/0.30/#lazy-continuation-line
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
# `MD033` - Inline HTML
|
|
2
|
-
|
|
3
|
-
Tags: `html`
|
|
4
|
-
|
|
5
|
-
Aliases: `no-inline-html`
|
|
6
|
-
|
|
7
|
-
Parameters:
|
|
8
|
-
|
|
9
|
-
- `allowed_elements`: Allowed elements (`string[]`, default `[]`)
|
|
10
|
-
|
|
11
|
-
This rule is triggered whenever raw HTML is used in a Markdown document:
|
|
12
|
-
|
|
13
|
-
```markdown
|
|
14
|
-
<h1>Inline HTML heading</h1>
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
To fix this, use 'pure' Markdown instead of including raw HTML:
|
|
18
|
-
|
|
19
|
-
```markdown
|
|
20
|
-
# Markdown heading
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
Note: To allow specific HTML elements, use the `allowed_elements` parameter.
|
|
24
|
-
|
|
25
|
-
Rationale: Raw HTML is allowed in Markdown, but this rule is included for
|
|
26
|
-
those who want their documents to only include "pure" Markdown, or for those
|
|
27
|
-
who are rendering Markdown documents into something other than HTML.
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
# `MD034` - Bare URL used
|
|
2
|
-
|
|
3
|
-
Tags: `links`, `url`
|
|
4
|
-
|
|
5
|
-
Aliases: `no-bare-urls`
|
|
6
|
-
|
|
7
|
-
Fixable: Some violations can be fixed by tooling
|
|
8
|
-
|
|
9
|
-
This rule is triggered whenever a URL or email address appears without
|
|
10
|
-
surrounding angle brackets:
|
|
11
|
-
|
|
12
|
-
```markdown
|
|
13
|
-
For more info, visit https://www.example.com/ or email user@example.com.
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
To fix this, add angle brackets around the URL or email address:
|
|
17
|
-
|
|
18
|
-
```markdown
|
|
19
|
-
For more info, visit <https://www.example.com/> or email <user@example.com>.
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
If a URL or email address contains non-ASCII characters, it may be not be
|
|
23
|
-
handled as intended even when angle brackets are present. In such cases,
|
|
24
|
-
[percent-encoding](https://en.m.wikipedia.org/wiki/Percent-encoding) can be used
|
|
25
|
-
to comply with the required syntax for URL and email.
|
|
26
|
-
|
|
27
|
-
Note: To include a bare URL or email without it being converted into a link,
|
|
28
|
-
wrap it in a code span:
|
|
29
|
-
|
|
30
|
-
```markdown
|
|
31
|
-
Not a clickable link: `https://www.example.com`
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
Note: The following scenario does not trigger this rule because it could be a
|
|
35
|
-
shortcut link:
|
|
36
|
-
|
|
37
|
-
```markdown
|
|
38
|
-
[https://www.example.com]
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
Note: The following syntax triggers this rule because the nested link could be
|
|
42
|
-
a shortcut link (which takes precedence):
|
|
43
|
-
|
|
44
|
-
```markdown
|
|
45
|
-
[text [shortcut] text](https://example.com)
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
To avoid this, escape both inner brackets:
|
|
49
|
-
|
|
50
|
-
```markdown
|
|
51
|
-
[link \[text\] link](https://example.com)
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
Rationale: Without angle brackets, a bare URL or email isn't converted into a
|
|
55
|
-
link by some Markdown parsers.
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
# `MD035` - Horizontal rule style
|
|
2
|
-
|
|
3
|
-
Tags: `hr`
|
|
4
|
-
|
|
5
|
-
Aliases: `hr-style`
|
|
6
|
-
|
|
7
|
-
Parameters:
|
|
8
|
-
|
|
9
|
-
- `style`: Horizontal rule style (`string`, default `consistent`)
|
|
10
|
-
|
|
11
|
-
This rule is triggered when inconsistent styles of horizontal rules are used
|
|
12
|
-
in the document:
|
|
13
|
-
|
|
14
|
-
```markdown
|
|
15
|
-
---
|
|
16
|
-
|
|
17
|
-
- - -
|
|
18
|
-
|
|
19
|
-
***
|
|
20
|
-
|
|
21
|
-
* * *
|
|
22
|
-
|
|
23
|
-
****
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
To fix this, ensure any horizontal rules used in the document are consistent,
|
|
27
|
-
or match the given style if the rule is so configured:
|
|
28
|
-
|
|
29
|
-
```markdown
|
|
30
|
-
---
|
|
31
|
-
|
|
32
|
-
---
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
Note: by default, this rule is configured to just require that all horizontal
|
|
36
|
-
rules in the document are the same and will trigger if any of the horizontal
|
|
37
|
-
rules are different than the first one encountered in the document. If you
|
|
38
|
-
want to configure the rule to match a specific style, the parameter given to
|
|
39
|
-
the 'style' option is a string containing the exact horizontal rule text that
|
|
40
|
-
is allowed.
|
|
41
|
-
|
|
42
|
-
Rationale: Consistent formatting makes it easier to understand a document.
|