mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 14:00:13 +01:00
Convert markdownlint library to an ECMAScript module, replace markdownlint-micromark with micromark, stop publishing (large) markdownlint-browser.js, see https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c for guidance.
This commit is contained in:
parent
191226f070
commit
1e71f6f44e
140 changed files with 1087 additions and 10428 deletions
|
|
@ -25,20 +25,11 @@ export default [
|
|||
"demo/markdown-it.min.js",
|
||||
"demo/markdownlint-browser.js",
|
||||
"demo/markdownlint-browser.min.js",
|
||||
"demo/micromark-browser.js",
|
||||
"demo/micromark-html-browser.js",
|
||||
"example/typescript/type-check.js",
|
||||
"micromark/micromark.cjs",
|
||||
"micromark/micromark.dev.cjs",
|
||||
"micromark/micromark-browser.js",
|
||||
"micromark/micromark-browser.dev.js",
|
||||
"test-repos/**"
|
||||
]
|
||||
},
|
||||
{
|
||||
"languageOptions": {
|
||||
"sourceType": "commonjs"
|
||||
},
|
||||
"linterOptions": {
|
||||
"reportUnusedDisableDirectives": true
|
||||
},
|
||||
|
|
@ -88,7 +79,6 @@ export default [
|
|||
"unicorn/no-null": "off",
|
||||
"unicorn/no-useless-undefined": "off",
|
||||
"unicorn/prefer-at": "off",
|
||||
"unicorn/prefer-module": "off",
|
||||
"unicorn/prefer-string-raw": "off",
|
||||
"unicorn/prefer-string-replace-all": "off",
|
||||
"unicorn/prefer-string-slice": "off",
|
||||
|
|
@ -107,15 +97,20 @@ export default [
|
|||
},
|
||||
{
|
||||
"files": [
|
||||
"**/*.mjs"
|
||||
"**/*.js",
|
||||
"**/*.cjs"
|
||||
],
|
||||
"languageOptions": {
|
||||
"sourceType": "module"
|
||||
"sourceType": "commonjs",
|
||||
"globals": {
|
||||
"module": "readonly",
|
||||
"require": "readonly"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"files": [
|
||||
"demo/*.js"
|
||||
"demo/default.js"
|
||||
],
|
||||
"languageOptions": {
|
||||
"globals": {
|
||||
|
|
@ -131,26 +126,42 @@ export default [
|
|||
"no-invalid-this": "off",
|
||||
"no-shadow": "off",
|
||||
"no-var": "off",
|
||||
"unicorn/prefer-module": "off",
|
||||
"unicorn/prefer-query-selector": "off"
|
||||
}
|
||||
},
|
||||
{
|
||||
"files": [
|
||||
"example/*.js"
|
||||
"example/*.cjs"
|
||||
],
|
||||
"languageOptions": {
|
||||
"sourceType": "commonjs"
|
||||
},
|
||||
"rules": {
|
||||
"n/no-missing-require": "off",
|
||||
"no-console": "off",
|
||||
"no-invalid-this": "off",
|
||||
"no-invalid-this": "off"
|
||||
}
|
||||
},
|
||||
{
|
||||
"files": [
|
||||
"example/standalone.mjs"
|
||||
],
|
||||
"rules": {
|
||||
"no-console": "off",
|
||||
"no-shadow": "off"
|
||||
}
|
||||
},
|
||||
{
|
||||
"files": [
|
||||
"test/rules/**/*.js"
|
||||
"test/rules/**/*.js",
|
||||
"test/rules/**/*.cjs"
|
||||
],
|
||||
"languageOptions": {
|
||||
"sourceType": "commonjs"
|
||||
},
|
||||
"rules": {
|
||||
"jsdoc/valid-types": "off"
|
||||
"unicorn/prefer-module": "off"
|
||||
}
|
||||
}
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue