mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-17 16:50:22 +00:00
Remove remark (#5790)
* Remove remark * Remove lint_md from linters.yml
This commit is contained in:
parent
fea3d60163
commit
2af5dce5c3
8 changed files with 16 additions and 2139 deletions
16
.github/workflows/linters.yml
vendored
16
.github/workflows/linters.yml
vendored
|
|
@ -41,19 +41,3 @@ jobs:
|
|||
run: corepack yarn run lint
|
||||
- name: Run Prettier
|
||||
run: corepack yarn run format:check-diff
|
||||
|
||||
lint_md:
|
||||
name: Lint Markdown
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout sources
|
||||
uses: actions/checkout@v4
|
||||
- name: Install Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: lts/*
|
||||
cache: yarn
|
||||
- name: Install dependencies
|
||||
run: corepack yarn workspaces focus @uppy-dev/build
|
||||
- name: Run linter
|
||||
run: corepack yarn run lint:markdown
|
||||
|
|
|
|||
|
|
@ -45,7 +45,6 @@
|
|||
"lint:css": "stylelint ./packages/**/*.scss",
|
||||
"lint:css:fix": "stylelint ./packages/**/*.scss --fix",
|
||||
"lint:fix": "yarn lint --fix",
|
||||
"lint:markdown": "remark -f -q -i .remarkignore . .github/CONTRIBUTING.md",
|
||||
"lint:staged": "lint-staged",
|
||||
"release": "PACKAGES=$(yarn workspaces list --json) yarn workspace @uppy-dev/release interactive",
|
||||
"size": "echo 'JS Bundle mingz:' && cat ./packages/uppy/dist/uppy.min.js | gzip | wc -c && echo 'CSS Bundle mingz:' && cat ./packages/uppy/dist/uppy.min.css | gzip | wc -c",
|
||||
|
|
@ -76,7 +75,6 @@
|
|||
],
|
||||
"*.{css,html,json,scss,vue,yaml,yml}": "prettier -w",
|
||||
"*.md": [
|
||||
"remark --silently-ignore -i .remarkignore -foq",
|
||||
"eslint --fix",
|
||||
"prettier -w",
|
||||
"eslint"
|
||||
|
|
@ -85,11 +83,6 @@
|
|||
"prettier -w"
|
||||
]
|
||||
},
|
||||
"remarkConfig": {
|
||||
"plugins": [
|
||||
"@uppy-dev/remark-lint-uppy"
|
||||
]
|
||||
},
|
||||
"resolutions": {
|
||||
"@types/eslint@^7.2.13": "^8.2.0",
|
||||
"@types/react": "^18",
|
||||
|
|
@ -121,7 +114,6 @@
|
|||
"@types/jasminewd2": "file:./private/@types/jasmine",
|
||||
"@typescript-eslint/eslint-plugin": "^7.0.0",
|
||||
"@typescript-eslint/parser": "^7.0.0",
|
||||
"@uppy-dev/remark-lint-uppy": "workspace:*",
|
||||
"autoprefixer": "^10.2.6",
|
||||
"babel-plugin-inline-package-json": "^2.0.0",
|
||||
"chalk": "^5.0.0",
|
||||
|
|
@ -158,7 +150,6 @@
|
|||
"postcss-logical": "^5.0.0",
|
||||
"pre-commit": "^1.2.2",
|
||||
"prettier": "^3.0.3",
|
||||
"remark-cli": "^12.0.0",
|
||||
"resolve": "^1.17.0",
|
||||
"sass": "^1.29.0",
|
||||
"start-server-and-test": "^1.14.0",
|
||||
|
|
|
|||
|
|
@ -1,21 +0,0 @@
|
|||
# remark-lint-uppy
|
||||
|
||||
remark-lint preset derived from
|
||||
[`remark-preset-lint-recommended`][remark-preset-lint-recommended].
|
||||
|
||||
Differences:
|
||||
|
||||
- The `list-item-bullet-indent` rule is disabled.
|
||||
- The `list-item-indent` rule is disabled.
|
||||
|
||||
The reason for the differences is that these “wrong” patterns are ubiquitous in
|
||||
our markdown files and we don’t want to do these huge changes after adding the
|
||||
linter.
|
||||
|
||||
## License
|
||||
|
||||
[MIT][].
|
||||
|
||||
[remark-preset-lint-recommended]:
|
||||
https://github.com/remarkjs/remark-lint/blob/master/packages/remark-preset-lint-recommended
|
||||
[MIT]: ./LICENSE
|
||||
|
|
@ -1,35 +0,0 @@
|
|||
const importDefault = (specifier) => import(specifier).then((module) => module.default)
|
||||
|
||||
export default {
|
||||
settings: {
|
||||
bullet: "-",
|
||||
emphasis: '_',
|
||||
strong: '*',
|
||||
listItemIndent: 'one',
|
||||
},
|
||||
plugins: [
|
||||
await importDefault('remark-frontmatter'),
|
||||
// Do a lint.
|
||||
await importDefault('remark-lint'),
|
||||
// Unix compatibility.
|
||||
await importDefault('remark-lint-final-newline'),
|
||||
// Differs or unsupported across vendors.
|
||||
await importDefault('remark-lint-no-auto-link-without-protocol'),
|
||||
await importDefault('remark-lint-no-blockquote-without-marker'),
|
||||
await importDefault('remark-lint-no-literal-urls'),
|
||||
[await importDefault('remark-lint-ordered-list-marker-style'), '.'],
|
||||
// Mistakes.
|
||||
await importDefault('remark-lint-hard-break-spaces'),
|
||||
await importDefault('remark-lint-no-duplicate-definitions'),
|
||||
await importDefault('remark-lint-no-heading-content-indent'),
|
||||
await importDefault('remark-lint-no-inline-padding'),
|
||||
await importDefault('remark-lint-no-shortcut-reference-image'),
|
||||
await importDefault('remark-lint-no-shortcut-reference-link'),
|
||||
await importDefault('remark-lint-no-undefined-references'),
|
||||
await importDefault('remark-lint-no-unused-definitions'),
|
||||
[await importDefault('remark-lint-emphasis-marker'), '_'],
|
||||
await importDefault('remark-lint-strong-marker'),
|
||||
await importDefault('./retext-preset.js'),
|
||||
await importDefault('./message-control.js'),
|
||||
],
|
||||
}
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
import unifiedMessageControl from 'unified-message-control'
|
||||
import { commentMarker } from 'mdast-comment-marker'
|
||||
|
||||
export default [
|
||||
unifiedMessageControl,
|
||||
{
|
||||
name: 'retext-simplify',
|
||||
marker: commentMarker,
|
||||
test: 'html',
|
||||
},
|
||||
]
|
||||
|
|
@ -1,35 +0,0 @@
|
|||
{
|
||||
"name": "@uppy-dev/remark-lint-uppy",
|
||||
"version": "0.0.0",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"mdast-comment-marker": "^3.0.0",
|
||||
"remark-frontmatter": "^5.0.0",
|
||||
"remark-lint": "^9.0.0",
|
||||
"remark-lint-emphasis-marker": "^4.0.0",
|
||||
"remark-lint-final-newline": "^3.0.0",
|
||||
"remark-lint-hard-break-spaces": "^4.0.0",
|
||||
"remark-lint-no-auto-link-without-protocol": "^3.1.0",
|
||||
"remark-lint-no-blockquote-without-marker": "^6.0.0",
|
||||
"remark-lint-no-duplicate-definitions": "^4.0.0",
|
||||
"remark-lint-no-heading-content-indent": "^5.0.0",
|
||||
"remark-lint-no-inline-padding": "^4.0.0",
|
||||
"remark-lint-no-literal-urls": "^4.0.0",
|
||||
"remark-lint-no-shortcut-reference-image": "^4.0.0",
|
||||
"remark-lint-no-shortcut-reference-link": "^4.0.0",
|
||||
"remark-lint-no-undefined-references": "^5.0.0",
|
||||
"remark-lint-no-unused-definitions": "^4.0.0",
|
||||
"remark-lint-ordered-list-marker-style": "^4.0.0",
|
||||
"remark-lint-strong-marker": "^4.0.0",
|
||||
"remark-retext": "^6.0.0",
|
||||
"retext-english": "^5.0.0",
|
||||
"retext-equality": "^7.0.0",
|
||||
"retext-profanities": "^8.0.0",
|
||||
"retext-quotes": "^6.0.0",
|
||||
"retext-syntax-mentions": "^4.0.0",
|
||||
"unified": "^11.0.0",
|
||||
"unified-message-control": "^4.0.0"
|
||||
},
|
||||
"type": "module",
|
||||
"private": true
|
||||
}
|
||||
|
|
@ -1,28 +0,0 @@
|
|||
import remarkRetext from 'remark-retext'
|
||||
import { unified } from 'unified'
|
||||
import retextEnglish from 'retext-english'
|
||||
// eslint-disable-next-line import/no-unresolved
|
||||
import retextEquality from 'retext-equality'
|
||||
// eslint-disable-next-line import/no-unresolved
|
||||
import retextProfanities from 'retext-profanities'
|
||||
import retextQuotes from 'retext-quotes'
|
||||
import retextSyntaxMentions from 'retext-syntax-mentions'
|
||||
|
||||
export default [
|
||||
remarkRetext,
|
||||
unified()
|
||||
.use(retextEnglish)
|
||||
.use(retextEquality, {
|
||||
ignore: [
|
||||
'disabled',
|
||||
'host',
|
||||
'hosts',
|
||||
'invalid',
|
||||
'whitespace',
|
||||
'of course',
|
||||
],
|
||||
})
|
||||
.use(retextProfanities, { sureness: 1 })
|
||||
.use(retextQuotes)
|
||||
.use(retextSyntaxMentions),
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue