remark-lint-no-file-name-irregular-characters
Advanced tools
Comparing version 2.1.1 to 2.1.2
export default remarkLintNoFileNameIrregularCharacters | ||
export type Root = import('mdast').Root | ||
/** | ||
* Options. | ||
*/ | ||
export type Options = RegExp | string | ||
declare const remarkLintNoFileNameIrregularCharacters: import('unified').Plugin< | ||
| void[] | ||
| [string | 0 | RegExp | 1 | 2] | ||
| [ | ||
( | ||
| boolean | ||
| import('unified-lint-rule').Label | ||
| import('unified-lint-rule').Severity | ||
), | ||
Options | ||
| Options | ||
| [ | ||
( | ||
| boolean | ||
| import('unified-lint-rule/lib/index.js').Label | ||
| import('unified-lint-rule/lib/index.js').Severity | ||
), | ||
(Options | undefined)? | ||
] | ||
], | ||
@@ -15,0 +20,0 @@ import('mdast').Root, |
@@ -34,3 +34,3 @@ /** | ||
* @example | ||
* {"name": "README.md", "label": "output", "setting": "\\.a-z0-9", "positionless": true} | ||
* {"name": "README.md", "label": "output", "config": "\\.a-z0-9", "positionless": true} | ||
* | ||
@@ -47,6 +47,9 @@ * 1:1: Do not use `R` in a file name | ||
* @typedef {import('mdast').Root} Root | ||
* | ||
* @typedef {RegExp|string} Options | ||
*/ | ||
/** | ||
* @typedef {RegExp | string} Options | ||
* Options. | ||
*/ | ||
import {lintRule} from 'unified-lint-rule' | ||
@@ -53,0 +56,0 @@ |
{ | ||
"name": "remark-lint-no-file-name-irregular-characters", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"description": "remark-lint rule to warn when file names contain irregular characters", | ||
@@ -43,5 +43,3 @@ "license": "MIT", | ||
}, | ||
"scripts": { | ||
"build": "rimraf \"*.d.ts\" && tsc && type-coverage" | ||
}, | ||
"scripts": {}, | ||
"xo": false, | ||
@@ -48,0 +46,0 @@ "typeCoverage": { |
@@ -56,13 +56,13 @@ <!--This file is generated--> | ||
In Deno with [Skypack][]: | ||
In Deno with [`esm.sh`][esmsh]: | ||
```js | ||
import remarkLintNoFileNameIrregularCharacters from 'https://cdn.skypack.dev/remark-lint-no-file-name-irregular-characters@2?dts' | ||
import remarkLintNoFileNameIrregularCharacters from 'https://esm.sh/remark-lint-no-file-name-irregular-characters@2' | ||
``` | ||
In browsers with [Skypack][]: | ||
In browsers with [`esm.sh`][esmsh]: | ||
```html | ||
<script type="module"> | ||
import remarkLintNoFileNameIrregularCharacters from 'https://cdn.skypack.dev/remark-lint-no-file-name-irregular-characters@2?min' | ||
import remarkLintNoFileNameIrregularCharacters from 'https://esm.sh/remark-lint-no-file-name-irregular-characters@2?bundle' | ||
</script> | ||
@@ -228,3 +228,3 @@ ``` | ||
[skypack]: https://www.skypack.dev | ||
[esmsh]: https://esm.sh | ||
@@ -231,0 +231,0 @@ [npm]: https://docs.npmjs.com/cli/install |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9757
91