diff --git a/.eslintrc.js b/.eslintrc.js index 881b160..6b2c5f0 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,9 +1,7 @@ +const eslintConfig = require('./packages/eslint-config-lmc'); + module.exports = { reportUnusedDisableDirectives: true, - ignorePatterns: ['node_modules', '!.*.js'], - - extends: ['./packages/eslint-config-base', './packages/eslint-config-base/optional', 'prettier'], - - plugins: ['prettier'], + ...eslintConfig, }; diff --git a/.prettierrc.js b/.prettierrc.js index 0ac81de..b3121fd 100644 --- a/.prettierrc.js +++ b/.prettierrc.js @@ -1 +1,13 @@ -module.exports = require('./packages/prettier-config'); +const prettierConfig = require('./packages/prettier-config'); + +module.exports = { + ...prettierConfig, + overrides: [ + { + files: '*.js', + options: { + printWidth: 80, + }, + }, + ], +}; diff --git a/commitlint.config.js b/commitlint.config.js index 085a55d..21a7075 100644 --- a/commitlint.config.js +++ b/commitlint.config.js @@ -4,10 +4,20 @@ module.exports = { 'scope-enum': [ 1, 'always', - ['browserslist', 'commitlint', 'conventional-changelog', 'prettier', 'stylelint', 'eslint-config-base'], + [ + 'browserslist', + 'commitlint', + 'conventional-changelog', + 'prettier', + 'stylelint', + 'eslint', + ], ], 'footer-max-line-length': [0], }, - ignores: [(commit) => commit.includes('[CI-SKIP]'), (commit) => commit.includes('Pull request')], + ignores: [ + (commit) => commit.includes('[CI-SKIP]'), + (commit) => commit.includes('Pull request'), + ], }; diff --git a/packages/commitlint-config/index.js b/packages/commitlint-config/index.js index f0777a2..3ef4249 100644 --- a/packages/commitlint-config/index.js +++ b/packages/commitlint-config/index.js @@ -7,7 +7,19 @@ module.exports = { 'type-enum': [ 2, 'always', - ['Feat', 'Fix', 'Docs', 'Style', 'Refactor', 'Test', 'Revert', 'Perf', 'Chore', 'Deps', 'BREAKING CHANGES'], + [ + 'Feat', + 'Fix', + 'Docs', + 'Style', + 'Refactor', + 'Test', + 'Revert', + 'Perf', + 'Chore', + 'Deps', + 'BREAKING CHANGES', + ], ], 'subject-case': [2, 'always', 'sentence-case'], }, diff --git a/packages/conventional-changelog-lmc-bitbucket/src/index.js b/packages/conventional-changelog-lmc-bitbucket/src/index.js index 873377a..2e43dff 100644 --- a/packages/conventional-changelog-lmc-bitbucket/src/index.js +++ b/packages/conventional-changelog-lmc-bitbucket/src/index.js @@ -19,7 +19,8 @@ function formatIssue(issueUrl, issue) { } const parserOpts = { - headerPattern: /^(?:Pull request #[0-9]+: )?(?:([a-zA-Z]*-[0-9_]*)(?: ))* ?([\w ]*)(?:\((.*)\))?: (.*)$/, + headerPattern: + /^(?:Pull request #[0-9]+: )?(?:([a-zA-Z]*-[0-9_]*)(?: ))* ?([\w ]*)(?:\((.*)\))?: (.*)$/, headerCorrespondence: ['body', 'type', 'scope', 'subject'], noteKeywords: ['BREAKING CHANGE', 'BREAKING CHANGES'], revertPattern: /^revert:\s([\s\S]*?)\s*This reverts commit (\w*)\./, @@ -83,11 +84,14 @@ const writerOpts = { const issueUrl = context.packageData.bugs && context.packageData.bugs.url; if (typeof transformedCommit.subject === 'string') { - transformedCommit.subject = transformedCommit.subject.replace(/#([a-zA-Z0-9-]+)/g, (_, issue) => { - issues.push(issue); - - return formatIssue(issueUrl, issue); - }); + transformedCommit.subject = transformedCommit.subject.replace( + /#([a-zA-Z0-9-]+)/g, + (_, issue) => { + issues.push(issue); + + return formatIssue(issueUrl, issue); + }, + ); } // remove references that already appear in the subject diff --git a/packages/conventional-changelog-lmc-bitbucket/tests/index.test.js b/packages/conventional-changelog-lmc-bitbucket/tests/index.test.js index e376857..7c672f2 100644 --- a/packages/conventional-changelog-lmc-bitbucket/tests/index.test.js +++ b/packages/conventional-changelog-lmc-bitbucket/tests/index.test.js @@ -20,8 +20,14 @@ betterThanBefore.setups([ shell.exec('git init --template=./git-templates'); gitDummyCommit('Chore: first commit'); - gitDummyCommit(['Feat: amazing new module', 'BREAKING CHANGE: Not backward compatible.']); - gitDummyCommit(['Fix(compile): avoid a bug', 'BREAKING CHANGE: The Change is huge.']); + gitDummyCommit([ + 'Feat: amazing new module', + 'BREAKING CHANGE: Not backward compatible.', + ]); + gitDummyCommit([ + 'Fix(compile): avoid a bug', + 'BREAKING CHANGE: The Change is huge.', + ]); gitDummyCommit(['Perf(ngOptions): make it faster', ' closes #1, #2']); gitDummyCommit('Revert(ngOptions): bad commit'); gitDummyCommit('Fix(*): oops'); @@ -37,12 +43,27 @@ betterThanBefore.setups([ gitDummyCommit(['Feat(awesome): issue brought up by @bcoe! on Friday']); }, function () { - gitDummyCommit(['Docs(readme): make it clear', 'BREAKING CHANGE: The Change is huge.']); - gitDummyCommit(['Style(whitespace): make it easier to read', 'BREAKING CHANGE: The Change is huge.']); - gitDummyCommit(['Refactor(code): change a lot of code', 'BREAKING CHANGE: The Change is huge.']); - gitDummyCommit(['Test(*): more tests', 'BREAKING CHANGE: The Change is huge.']); + gitDummyCommit([ + 'Docs(readme): make it clear', + 'BREAKING CHANGE: The Change is huge.', + ]); + gitDummyCommit([ + 'Style(whitespace): make it easier to read', + 'BREAKING CHANGE: The Change is huge.', + ]); + gitDummyCommit([ + 'Refactor(code): change a lot of code', + 'BREAKING CHANGE: The Change is huge.', + ]); + gitDummyCommit([ + 'Test(*): more tests', + 'BREAKING CHANGE: The Change is huge.', + ]); gitDummyCommit(['WIP: Just in the middle of something...']); - gitDummyCommit(['Chore(deps): bump', 'BREAKING CHANGE: The Change is huge.']); + gitDummyCommit([ + 'Chore(deps): bump', + 'BREAKING CHANGE: The Change is huge.', + ]); }, function () { gitDummyCommit(['Feat(deps): bump', 'BREAKING CHANGE Also works :)']); @@ -55,8 +76,14 @@ betterThanBefore.setups([ gitDummyCommit(['Feat(foo): add thing', 'closes #1223 #OBG-23']); }, function () { - gitDummyCommit(['Revert \\"Feat: bad feature\\"', 'This reverts commit 12345.'], false); - gitDummyCommit(['Revert: Feat: custom revert format', 'This reverts commit 5678.']); + gitDummyCommit( + ['Revert \\"Feat: bad feature\\"', 'This reverts commit 12345.'], + false, + ); + gitDummyCommit([ + 'Revert: Feat: custom revert format', + 'This reverts commit 5678.', + ]); }, function () { gitDummyCommit([ @@ -89,7 +116,9 @@ describe('lmc bitbucket preset', () => { expect(stringifiedChunk).toInclude('make it faster'); expect(stringifiedChunk).toInclude(', closes #1, #2'); // Links are not created expect(stringifiedChunk).toInclude('Not backward compatible.'); - expect(stringifiedChunk).toInclude('**compile:** The Change is huge.'); + expect(stringifiedChunk).toInclude( + '**compile:** The Change is huge.', + ); expect(stringifiedChunk).toInclude('Features'); expect(stringifiedChunk).toInclude('Bug Fixes'); expect(stringifiedChunk).toInclude('Performance Improvements'); @@ -130,7 +159,9 @@ describe('lmc bitbucket preset', () => { .pipe( through((chunk) => { stringifiedChunk = chunk.toString(); - expect(stringifiedChunk).toInclude('in [#133](https://jira.int.lmc.cz/browse/133)'); + expect(stringifiedChunk).toInclude( + 'in [#133](https://jira.int.lmc.cz/browse/133)', + ); done(); }), ); @@ -195,7 +226,9 @@ describe('lmc bitbucket preset', () => { .pipe( through((chunk) => { stringifiedChunk = chunk.toString(); - expect(stringifiedChunk).toInclude('issue brought up by @bcoe! on Friday'); + expect(stringifiedChunk).toInclude( + 'issue brought up by @bcoe! on Friday', + ); done(); }), ); @@ -332,8 +365,12 @@ describe('lmc bitbucket preset', () => { (chunk, enc, cb) => { stringifiedChunk = chunk.toString(); - expect(stringifiedChunk).toInclude('https://bitbucket.example.com/projects/EX/repos/example-repo/compare/'); - expect(stringifiedChunk).toInclude('https://bitbucket.example.com/projects/EX/repos/example-repo/commits/'); + expect(stringifiedChunk).toInclude( + 'https://bitbucket.example.com/projects/EX/repos/example-repo/compare/', + ); + expect(stringifiedChunk).toInclude( + 'https://bitbucket.example.com/projects/EX/repos/example-repo/commits/', + ); expect(stringifiedChunk).toMatch(/some more features \(.*\)/); i++; diff --git a/packages/eslint-config-base/rules/style.js b/packages/eslint-config-base/rules/style.js index edc9562..fc6999d 100644 --- a/packages/eslint-config-base/rules/style.js +++ b/packages/eslint-config-base/rules/style.js @@ -8,14 +8,21 @@ module.exports = { // This rule requires or disallows blank lines between the given 2 kinds of statements. Properly // blank lines help developers to understand the code. // https://eslint.org/docs/rules/padding-line-between-statements - 'padding-line-between-statements': ['error', { blankLine: 'always', prev: '*', next: 'return' }], + 'padding-line-between-statements': [ + 'error', + { blankLine: 'always', prev: '*', next: 'return' }, + ], // Require an empty line between class members // This rule improves readability by enforcing lines between class members. It will not check // empty lines before the first member and after the last member, since that is already taken // care of by padded-blocks. // https://eslint.org/docs/rules/lines-between-class-members - 'lines-between-class-members': ['error', 'always', { exceptAfterSingleLine: true }], + 'lines-between-class-members': [ + 'error', + 'always', + { exceptAfterSingleLine: true }, + ], // Enforce Quote Style // This rule is aimed at ensuring consistency of string quotes. diff --git a/packages/eslint-config-lmc/.eslintrc.js b/packages/eslint-config-lmc/.eslintrc.js new file mode 100644 index 0000000..e77b718 --- /dev/null +++ b/packages/eslint-config-lmc/.eslintrc.js @@ -0,0 +1,26 @@ +const { prettierConfig } = require('@lmc-eu/prettier-config'); + +module.exports = { + parserOptions: { + ecmaVersion: 'latest', + }, + + ignorePatterns: ['node_modules', '!.*.js'], + + extends: [ + '@lmc-eu/eslint-config-base', + '@lmc-eu/eslint-config-base/optional', + 'prettier', + ], + + plugins: ['html', 'markdown', 'prettier'], + + rules: { + 'prettier/prettier': [ + 'error', + { + ...prettierConfig, + }, + ], + }, +}; diff --git a/packages/eslint-config-lmc/.prettierignore b/packages/eslint-config-lmc/.prettierignore new file mode 100644 index 0000000..dc2eb18 --- /dev/null +++ b/packages/eslint-config-lmc/.prettierignore @@ -0,0 +1,18 @@ +# .eslintignore + +node_modules + +# NOTE: +# The following directives are only relevant when linting the whole +# project directory, ie. running `eslint .` ⚠️ + +# If you compile JavaScript into some output folder, exclude it here +dist +**/built + +# Highly recommended to re-include JavaScript dotfiles to lint them +# (This will cause .eslintrc.js to be linted by ESLint 🤘) +!.*.js + +# Some tools use this pattern for their configuration files. Lint them! +!*.config.js diff --git a/packages/eslint-config-lmc/README.md b/packages/eslint-config-lmc/README.md new file mode 100644 index 0000000..9535930 --- /dev/null +++ b/packages/eslint-config-lmc/README.md @@ -0,0 +1,146 @@ +# eslint-config-lmc + +Ultimate Eslint and Prettier Setup + +## What it will do + +- Lints JavaScript based on the latest standards +- Fixes issues and formatting errors with Prettier +- Lints + Fixes inside of html script tags +- You can see all the [rules here](https://github.com/lmc-eu/code-quality-tools/blob/main/packages/eslint-config-lmc/.eslintrc.js) - these generally abide by the code written in LMC company. You are very welcome to overwrite any of these settings, or just fork the entire thing to create your own. + +## Installing + +It's usually best to install this locally once per project, that way you can have project specific settings as well as sync those settings with others working on your project via git. + +## Local / Per Project Install + +1. If you don't already have a `package.json` file, create one with `npm init`. + +2. Then we need to install everything needed by the config: + +``` +npx install-peerdeps --dev eslint-config-lmc +``` + +3. You can see in your package.json there are now a big list of devDependencies. + +4. Create a `.eslintrc` file in the root of your project's directory (it should live where package.json does). Your `.eslintrc` file should look like this: + +```json +{ + "extends": ["lmc"] +} +``` + +Tip: You can alternatively put this object in your `package.json` under the property `"eslintConfig":`. This makes one less file in your project. + +5. You can add two scripts to your package.json to lint and/or fix: + +```json +"scripts": { + "lint": "eslint .", + "lint:fix": "eslint . --fix" +}, +``` + +6. Now you can manually lint your code by running `npm run lint` and fix all fixable issues with `npm run lint:fix`. You probably want your editor to do this though. + +## Settings + +If you'd like to overwrite eslint or prettier settings, you can add the rules in your `.eslintrc` file. The [ESLint rules](https://eslint.org/docs/rules/) go directly under `"rules"` while [prettier options](https://prettier.io/docs/en/options.html) go under `"prettier/prettier"`. Note that prettier rules overwrite anything in our config (trailing comma, and single quote), so you'll need to include those as well. + +```js +{ + "extends": [ + "lmc" + ], + "rules": { + "no-console": "error", + "prettier/prettier": [ + "error", + { + "trailingComma": "es5", + "singleQuote": true, + "printWidth": 120, + "tabWidth": 8, + } + ] + } +} +``` + +## With VS Code + +You should read this entire thing. Serious! + +Once you have done one, or both, of the above installs. You probably want your editor to lint and fix for you. Here are the instructions for VS Code: + +1. Install the [ESLint package](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) +2. Now we need to setup some VS Code settings via `Code/File` → `Preferences` → `Settings`. It's easier to enter these settings while editing the `settings.json` file, so click the Open (Open Settings) icon in the top right corner: + +```js +// These are all my auto-save configs +"editor.formatOnSave": true, +// turn it off for JS and JSX, we will do this via eslint +"[javascript]": { + "editor.formatOnSave": false +}, +"[javascriptreact]": { + "editor.formatOnSave": false +}, +// show eslint icon at bottom toolbar +"eslint.alwaysShowStatus": true, +// tell the ESLint plugin to run on save +"editor.codeActionsOnSave": { + "source.fixAll": true +} +``` + +After attempting to lint your file for the first time, you may need to click on 'ESLint' in the bottom right and select 'Allow Everywhere' in the alert window. + +Finally you'll usually need to restart VS code. They say you don't need to, but it's never worked for me until I restart. + +## With Create React App + +1. Run `npx install-peerdeps --dev eslint-config-lmc` +1. Crack open your `package.json` and replace `"extends": "react-app"` with `"extends": "lmc"` + +## With Gatsby + +1. Run `npx install-peerdeps --dev eslint-config-lmc` +1. If you have an existing `.prettierrc` file, delete it. +1. follow the `Local / Per Project Install` steps above + +## With JetBrains Products (IntelliJ IDEA, WebStorm, RubyMine, PyCharm, PhpStorm, etc) + +If you have previously configured ESLint to run via a File Watcher, [turn that off.](https://www.jetbrains.com/help/idea/using-file-watchers.html#enableFileWatcher) + +### If you choose Local / Per Project Install Above + +1. Open ESLint configuration by going to File > Settings (Edit > Preferences on Mac) > Languages & Frameworks > Code Quality Tools > ESLint (optionally just search settings for "eslint") +1. Select **Automatic ESLint Configuration** +1. Check **Run eslint --fix on save** + +### If you choose Global Install + +The following steps are for a typical Node / ESLint global installtion. If you have a customized setup, refer to JetBrains docs for more [ESLint Configuration Options](https://www.jetbrains.com/help/webstorm/eslint.html#ws_js_eslint_manual_configuration). + +1. Open ESLint configuration by going to File > Settings (Edit > Preferences on Mac) > Languages & Frameworks > Code Quality Tools > ESLint (optionally just search settings for "eslint") +1. Select **Manual ESLint configuration** +1. Choose your **Node interpreter** from the detected installations +1. Select the global **ESLint package** from the dropdown +1. Leave Configuration File as **Automatic Search** +1. Check **Run eslint --fix on save** + +### Ensure the Prettier plugin is disabled if installed. + +1. Open Prettier configuration by going to File > Settings (Edit > Preferences on Mac) > Languages & Frameworks > Code Quality Tools > Prettier (optionally just search settings for "prettier") +1. Uncheck both **On code reformat** and **On save** +1. _Optional BUT IMPORTANT:_ If you have the Prettier extension enabled for other languages like CSS and HTML, turn it off for JS since we are doing it through Eslint already. + 1. Make sure the **Run for files** glob does not include `js,ts,jsx,tsx`. + 2. An example glob for styles, config, and markdown. `{**/*,*}.{yml,css,sass,md}` + +## With Yarn + +It should just work, but if they aren't showing up in your package.json, try `npx install-peerdeps --dev eslint-config-lmc -Y` diff --git a/packages/eslint-config-lmc/index.js b/packages/eslint-config-lmc/index.js new file mode 100644 index 0000000..bd66436 --- /dev/null +++ b/packages/eslint-config-lmc/index.js @@ -0,0 +1,3 @@ +const eslintrc = require('./.eslintrc'); + +module.exports = eslintrc; diff --git a/packages/eslint-config-lmc/package.json b/packages/eslint-config-lmc/package.json new file mode 100644 index 0000000..66ecf05 --- /dev/null +++ b/packages/eslint-config-lmc/package.json @@ -0,0 +1,54 @@ +{ + "name": "eslint-config-lmc", + "version": "1.0.0", + "description": "LMC's Ultimate ESlint configuration", + "keywords": [ + "javascript", + "ecmascript", + "eslint", + "config", + "lmc", + "prettier" + ], + "author": "Tomáš Litera ", + "homepage": "https://github.com/lmc-eu/code-quality-tools#readme", + "license": "BSD-3-Clause", + "publishConfig": { + "access": "public" + }, + "engines": { + "node": "^14 || >=16" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/lmc-eu/code-quality-tools.git", + "directory": "packages/eslint-config-lmc" + }, + "bugs": { + "url": "https://github.com/lmc-eu/code-quality-tools/issues" + }, + "scripts": { + "lint": "eslint .", + "lint:fix": "eslint --fix" + }, + "peerDependencies": { + "eslint": "^8.1.0", + "prettier": "^2.5.1", + "@lmc-eu/eslint-config-base": "^1.0.0", + "@lmc-eu/prettier-config": "^1.0.0", + "eslint-plugin-html": "^6.2.0", + "eslint-config-prettier": "^8.3.0", + "eslint-plugin-prettier": "^4.0.0", + "eslint-plugin-markdown": "^2.2.0" + }, + "devDependencies": { + "eslint": "^8.1.0", + "prettier": "^2.5.1", + "@lmc-eu/eslint-config-base": "^1.0.0", + "@lmc-eu/prettier-config": "^1.0.0", + "eslint-plugin-html": "^6.2.0", + "eslint-config-prettier": "^8.3.0", + "eslint-plugin-prettier": "^4.0.0", + "eslint-plugin-markdown": "^2.2.0" + } +} diff --git a/packages/stylelint-config/index.js b/packages/stylelint-config/index.js index 20ef711..f650ad5 100644 --- a/packages/stylelint-config/index.js +++ b/packages/stylelint-config/index.js @@ -75,7 +75,20 @@ module.exports = { }, ], 'unit-case': 'lower', - 'unit-allowed-list': ['em', 'rem', '%', 's', 'px', 'pt', 'ex', 'deg', 'cm', 'fr', 'vh', 'vw'], + 'unit-allowed-list': [ + 'em', + 'rem', + '%', + 's', + 'px', + 'pt', + 'ex', + 'deg', + 'cm', + 'fr', + 'vh', + 'vw', + ], 'property-case': 'lower', 'value-keyword-case': [ 'lower', diff --git a/packages/stylelint-config/optional.js b/packages/stylelint-config/optional.js index 9429687..737b5b3 100644 --- a/packages/stylelint-config/optional.js +++ b/packages/stylelint-config/optional.js @@ -29,15 +29,34 @@ module.exports = { }, { order: 'flexible', - properties: ['padding', 'padding-top', 'padding-right', 'padding-bottom', 'padding-left'], + properties: [ + 'padding', + 'padding-top', + 'padding-right', + 'padding-bottom', + 'padding-left', + ], }, { order: 'flexible', - properties: ['margin', 'margin-top', 'margin-right', 'margin-bottom', 'margin-left'], + properties: [ + 'margin', + 'margin-top', + 'margin-right', + 'margin-bottom', + 'margin-left', + ], }, { order: 'flexible', - properties: ['font', 'font-family', 'font-style', 'font-size', 'font-weight', 'color'], + properties: [ + 'font', + 'font-family', + 'font-style', + 'font-size', + 'font-weight', + 'color', + ], }, { properties: [ diff --git a/yarn.lock b/yarn.lock index e75c9d2..dfd80ca 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1677,6 +1677,13 @@ resolved "https://registry.yarnpkg.com/@types/json5/-/json5-0.0.29.tgz#ee28707ae94e11d2b827bcbe5270bcea7f3e71ee" integrity sha1-7ihweulOEdK4J7y+UnC86n8+ce4= +"@types/mdast@^3.0.0": + version "3.0.10" + resolved "https://registry.yarnpkg.com/@types/mdast/-/mdast-3.0.10.tgz#4724244a82a4598884cbbe9bcfd73dff927ee8af" + integrity sha512-W864tg/Osz1+9f4lrGTZpCSO5/z4608eUp19tbozkq2HJK6i3z1kT0H9tlADXuYIb1YYOBByU4Jsqkk75q48qA== + dependencies: + "@types/unist" "*" + "@types/minimatch@*": version "3.0.3" resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-3.0.3.tgz#3dca0e3f33b200fc7d1139c0cd96c1268cadfd9d" @@ -1717,6 +1724,11 @@ resolved "https://registry.yarnpkg.com/@types/stack-utils/-/stack-utils-2.0.0.tgz#7036640b4e21cc2f259ae826ce843d277dad8cff" integrity sha512-RJJrrySY7A8havqpGObOB4W92QXKJo63/jFLLgpvOtsGUqbQZ9Sbgl35KMm1DjC6j7AvmmU2bIno+3IyEaemaw== +"@types/unist@*", "@types/unist@^2.0.2": + version "2.0.6" + resolved "https://registry.yarnpkg.com/@types/unist/-/unist-2.0.6.tgz#250a7b16c3b91f672a24552ec64678eeb1d3a08d" + integrity sha512-PBjIUxZHOuj0R15/xuwJYjFi+KZdNFrehocChv4g5hu6aFroHue8m0lBP0POdK2nKzbw0cgV1mws8+V/JAcEkQ== + "@types/yargs-parser@*": version "15.0.0" resolved "https://registry.yarnpkg.com/@types/yargs-parser/-/yargs-parser-15.0.0.tgz#cb3f9f741869e20cce330ffbeb9271590483882d" @@ -2394,6 +2406,21 @@ char-regex@^1.0.2: resolved "https://registry.yarnpkg.com/char-regex/-/char-regex-1.0.2.tgz#d744358226217f981ed58f479b1d6bcc29545dcf" integrity sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw== +character-entities-legacy@^1.0.0: + version "1.1.4" + resolved "https://registry.yarnpkg.com/character-entities-legacy/-/character-entities-legacy-1.1.4.tgz#94bc1845dce70a5bb9d2ecc748725661293d8fc1" + integrity sha512-3Xnr+7ZFS1uxeiUDvV02wQ+QDbc55o97tIV5zHScSPJpcLm/r0DFPcoY3tYRp+VZukxuMeKgXYmsXQHO05zQeA== + +character-entities@^1.0.0: + version "1.2.4" + resolved "https://registry.yarnpkg.com/character-entities/-/character-entities-1.2.4.tgz#e12c3939b7eaf4e5b15e7ad4c5e28e1d48c5b16b" + integrity sha512-iBMyeEHxfVnIakwOuDXpVkc54HijNgCyQB2w0VfGQThle6NXn50zU6V/u+LDhxHcDUPojn6Kpga3PTAD8W1bQw== + +character-reference-invalid@^1.0.0: + version "1.1.4" + resolved "https://registry.yarnpkg.com/character-reference-invalid/-/character-reference-invalid-1.1.4.tgz#083329cda0eae272ab3dbbf37e9a382c13af1560" + integrity sha512-mKKUkUbhPpQlCOfIuZkvSEgktjPFIsZKRRbC6KWVEMvlzblj3i3asQv5ODsrwt0N3pHAEvjP8KTQPHkp0+6jOg== + chardet@^0.7.0: version "0.7.0" resolved "https://registry.yarnpkg.com/chardet/-/chardet-0.7.0.tgz#90094849f0937f2eedc2425d0d28a9e5f0cbad9e" @@ -3096,6 +3123,13 @@ debug@^3.2.7: dependencies: ms "^2.1.1" +debug@^4.0.0: + version "4.3.3" + resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.3.tgz#04266e0b70a98d4462e6e288e38259213332b664" + integrity sha512-/zxw5+vh1Tfv+4Qn7a5nsbcJKPaSvCDhojn6FEl9vupwK2VCSDtEiEtqr8DFtzYFOdz63LBkxec7DYuc2jon6Q== + dependencies: + ms "2.1.2" + debug@^4.1.0, debug@^4.1.1: version "4.2.0" resolved "https://registry.yarnpkg.com/debug/-/debug-4.2.0.tgz#7f150f93920e94c58f5574c2fd01a3110effe7f1" @@ -3268,6 +3302,20 @@ doctrine@^3.0.0: dependencies: esutils "^2.0.2" +dom-serializer@^1.0.1: + version "1.3.2" + resolved "https://registry.yarnpkg.com/dom-serializer/-/dom-serializer-1.3.2.tgz#6206437d32ceefaec7161803230c7a20bc1b4d91" + integrity sha512-5c54Bk5Dw4qAxNOI1pFEizPSjVsx5+bpJKmL2kPn8JhBUq2q09tTCa3mjijun2NfK78NMouDYNMBkOrPZiS+ig== + dependencies: + domelementtype "^2.0.1" + domhandler "^4.2.0" + entities "^2.0.0" + +domelementtype@^2.0.1, domelementtype@^2.2.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/domelementtype/-/domelementtype-2.2.0.tgz#9a0b6c2782ed6a1c7323d42267183df9bd8b1d57" + integrity sha512-DtBMo82pv1dFtUmHyr48beiuq792Sxohr+8Hm9zoxklYPfa6n0Z3Byjj2IV7bmr2IyqClnqEQhfgHJJ5QF0R5A== + domexception@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/domexception/-/domexception-2.0.1.tgz#fb44aefba793e1574b0af6aed2801d057529f304" @@ -3275,6 +3323,22 @@ domexception@^2.0.1: dependencies: webidl-conversions "^5.0.0" +domhandler@^4.2.0, domhandler@^4.2.2: + version "4.3.0" + resolved "https://registry.yarnpkg.com/domhandler/-/domhandler-4.3.0.tgz#16c658c626cf966967e306f966b431f77d4a5626" + integrity sha512-fC0aXNQXqKSFTr2wDNZDhsEYjCiYsDWl3D01kwt25hm1YIPyDGHvvi3rw+PLqHAl/m71MaiF7d5zvBr0p5UB2g== + dependencies: + domelementtype "^2.2.0" + +domutils@^2.8.0: + version "2.8.0" + resolved "https://registry.yarnpkg.com/domutils/-/domutils-2.8.0.tgz#4437def5db6e2d1f5d6ee859bd95ca7d02048135" + integrity sha512-w96Cjofp72M5IIhpjgobBimYEfoPjx1Vx0BSX9P30WBdZW2WIKU0T1Bd0kz2eNZ9ikjKgHbEyKx8BB6H1L3h3A== + dependencies: + dom-serializer "^1.0.1" + domelementtype "^2.2.0" + domhandler "^4.2.0" + dot-prop@^4.2.0: version "4.2.1" resolved "https://registry.yarnpkg.com/dot-prop/-/dot-prop-4.2.1.tgz#45884194a71fc2cda71cbb4bceb3a4dd2f433ba4" @@ -3348,6 +3412,16 @@ enquirer@^2.3.5: dependencies: ansi-colors "^4.1.1" +entities@^2.0.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/entities/-/entities-2.2.0.tgz#098dc90ebb83d8dffa089d55256b351d34c4da55" + integrity sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A== + +entities@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/entities/-/entities-3.0.1.tgz#2b887ca62585e96db3903482d336c1006c3001d4" + integrity sha512-WiyBqoomrwMdFG1e0kqvASYfnlb0lp8M5o5Fw2OFq1hNZxxcNk8Ik0Xm7LxzBhuidnZB/UtBqVCgUz3kBOP51Q== + env-paths@^2.2.0: version "2.2.0" resolved "https://registry.yarnpkg.com/env-paths/-/env-paths-2.2.0.tgz#cdca557dc009152917d6166e2febe1f039685e43" @@ -3492,6 +3566,13 @@ eslint-module-utils@^2.7.0: find-up "^2.1.0" pkg-dir "^2.0.0" +eslint-plugin-html@^6.2.0: + version "6.2.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-html/-/eslint-plugin-html-6.2.0.tgz#715bc00b50bbd0d996e28f953c289a5ebec69d43" + integrity sha512-vi3NW0E8AJombTvt8beMwkL1R/fdRWl4QSNRNMhVQKWm36/X0KF0unGNAY4mqUF06mnwVWZcIcerrCnfn9025g== + dependencies: + htmlparser2 "^7.1.2" + eslint-plugin-import@^2.25.2: version "2.25.2" resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.25.2.tgz#b3b9160efddb702fc1636659e71ba1d10adbe9e9" @@ -3511,6 +3592,13 @@ eslint-plugin-import@^2.25.2: resolve "^1.20.0" tsconfig-paths "^3.11.0" +eslint-plugin-markdown@^2.2.0: + version "2.2.1" + resolved "https://registry.yarnpkg.com/eslint-plugin-markdown/-/eslint-plugin-markdown-2.2.1.tgz#76b8a970099fbffc6cc1ffcad9772b96911c027a" + integrity sha512-FgWp4iyYvTFxPwfbxofTvXxgzPsDuSKHQy2S+a8Ve6savbujey+lgrFFbXQA0HPygISpRYWYBjooPzhYSF81iA== + dependencies: + mdast-util-from-markdown "^0.8.5" + eslint-plugin-prettier@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-4.0.0.tgz#8b99d1e4b8b24a762472b4567992023619cb98e0" @@ -4456,6 +4544,16 @@ html-escaper@^2.0.0: resolved "https://registry.yarnpkg.com/html-escaper/-/html-escaper-2.0.2.tgz#dfd60027da36a36dfcbe236262c00a5822681453" integrity sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg== +htmlparser2@^7.1.2: + version "7.2.0" + resolved "https://registry.yarnpkg.com/htmlparser2/-/htmlparser2-7.2.0.tgz#8817cdea38bbc324392a90b1990908e81a65f5a5" + integrity sha512-H7MImA4MS6cw7nbyURtLPO1Tms7C5H602LRETv95z1MxO/7CP7rDVROehUYeYBUYEON94NXXDEPmZuq+hX4sog== + dependencies: + domelementtype "^2.0.1" + domhandler "^4.2.2" + domutils "^2.8.0" + entities "^3.0.1" + http-cache-semantics@^3.8.1: version "3.8.1" resolved "https://registry.yarnpkg.com/http-cache-semantics/-/http-cache-semantics-3.8.1.tgz#39b0e16add9b605bf0a9ef3d9daaf4843b4cacd2" @@ -4698,6 +4796,19 @@ is-accessor-descriptor@^1.0.0: dependencies: kind-of "^6.0.0" +is-alphabetical@^1.0.0: + version "1.0.4" + resolved "https://registry.yarnpkg.com/is-alphabetical/-/is-alphabetical-1.0.4.tgz#9e7d6b94916be22153745d184c298cbf986a686d" + integrity sha512-DwzsA04LQ10FHTZuL0/grVDk4rFoVH1pjAToYwBrHSxcrBIGQuXrQMtD5U1b0U2XVgKZCTLLP8u2Qxqhy3l2Vg== + +is-alphanumerical@^1.0.0: + version "1.0.4" + resolved "https://registry.yarnpkg.com/is-alphanumerical/-/is-alphanumerical-1.0.4.tgz#7eb9a2431f855f6b1ef1a78e326df515696c4dbf" + integrity sha512-UzoZUr+XfVz3t3v4KyGEniVL9BDRoQtY7tOyrRybkVNjDFWyo1yhXNGrrBTQxp3ib9BLAWs7k2YKBQsFRkZG9A== + dependencies: + is-alphabetical "^1.0.0" + is-decimal "^1.0.0" + is-arrayish@^0.2.1: version "0.2.1" resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" @@ -4780,6 +4891,11 @@ is-date-object@^1.0.1: resolved "https://registry.yarnpkg.com/is-date-object/-/is-date-object-1.0.2.tgz#bda736f2cd8fd06d32844e7743bfa7494c3bfd7e" integrity sha512-USlDT524woQ08aoZFzh3/Z6ch9Y/EWXEHQ/AaRN0SkKq4t2Jw2R2339tSXmwuVoY7LLlBCbOIlx2myP/L5zk0g== +is-decimal@^1.0.0: + version "1.0.4" + resolved "https://registry.yarnpkg.com/is-decimal/-/is-decimal-1.0.4.tgz#65a3a5958a1c5b63a706e1b333d7cd9f630d3fa5" + integrity sha512-RGdriMmQQvZ2aqaQq3awNA6dCGtKpiDFcOzrTWrDAT2MiWrKQVPmxLGHl7Y2nNu6led0kEyoX0enY0qXYsv9zw== + is-descriptor@^0.1.0: version "0.1.6" resolved "https://registry.yarnpkg.com/is-descriptor/-/is-descriptor-0.1.6.tgz#366d8240dde487ca51823b1ab9f07a10a78251ca" @@ -4873,6 +4989,11 @@ is-glob@^4.0.3: dependencies: is-extglob "^2.1.1" +is-hexadecimal@^1.0.0: + version "1.0.4" + resolved "https://registry.yarnpkg.com/is-hexadecimal/-/is-hexadecimal-1.0.4.tgz#cc35c97588da4bd49a8eedd6bc4082d44dcb23a7" + integrity sha512-gyPJuv83bHMpocVYoqof5VDiZveEoGoFL8m3BXNb2VW8Xs+rz9kqO8LOQ5DH6EsuvilT1ApazU0pyl+ytbPtlw== + is-negative-zero@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/is-negative-zero/-/is-negative-zero-2.0.1.tgz#3de746c18dda2319241a53675908d8f766f11c24" @@ -5974,6 +6095,22 @@ map-visit@^1.0.0: dependencies: object-visit "^1.0.0" +mdast-util-from-markdown@^0.8.5: + version "0.8.5" + resolved "https://registry.yarnpkg.com/mdast-util-from-markdown/-/mdast-util-from-markdown-0.8.5.tgz#d1ef2ca42bc377ecb0463a987910dae89bd9a28c" + integrity sha512-2hkTXtYYnr+NubD/g6KGBS/0mFmBcifAsI0yIWRiRo0PjVs6SSOSOdtzbp6kSGnShDN6G5aWZpKQ2lWRy27mWQ== + dependencies: + "@types/mdast" "^3.0.0" + mdast-util-to-string "^2.0.0" + micromark "~2.11.0" + parse-entities "^2.0.0" + unist-util-stringify-position "^2.0.0" + +mdast-util-to-string@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/mdast-util-to-string/-/mdast-util-to-string-2.0.0.tgz#b8cfe6a713e1091cb5b728fc48885a4767f8b97b" + integrity sha512-AW4DRS3QbBayY/jJmD8437V1Gombjf8RSOUCMFBuo5iHi58AGEgVCKQ+ezHkZZDpAQS75hcBMpLqjpJTjtUL7w== + meow@^3.3.0, meow@^3.6.0: version "3.7.0" resolved "https://registry.yarnpkg.com/meow/-/meow-3.7.0.tgz#72cb668b425228290abbfa856892587308a801fb" @@ -6054,6 +6191,14 @@ merge@^2.1.0: resolved "https://registry.npmjs.org/merge/-/merge-2.1.1.tgz#59ef4bf7e0b3e879186436e8481c06a6c162ca98" integrity sha512-jz+Cfrg9GWOZbQAnDQ4hlVnQky+341Yk5ru8bZSe6sIDTCIg8n9i/u7hSQGSVOF3C7lH6mGtqjkiT9G4wFLL0w== +micromark@~2.11.0: + version "2.11.4" + resolved "https://registry.yarnpkg.com/micromark/-/micromark-2.11.4.tgz#d13436138eea826383e822449c9a5c50ee44665a" + integrity sha512-+WoovN/ppKolQOFIAajxi7Lu9kInbPxFuTBVEavFcL8eAfVstoc5MocPmqBeAdBOJV00uaVjegzH4+MA0DN/uA== + dependencies: + debug "^4.0.0" + parse-entities "^2.0.0" + micromatch@^3.1.10, micromatch@^3.1.4: version "3.1.10" resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-3.1.10.tgz#70859bc95c9840952f359a068a3fc49f9ecfac23" @@ -6765,6 +6910,18 @@ parent-module@^1.0.0: dependencies: callsites "^3.0.0" +parse-entities@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/parse-entities/-/parse-entities-2.0.0.tgz#53c6eb5b9314a1f4ec99fa0fdf7ce01ecda0cbe8" + integrity sha512-kkywGpCcRYhqQIchaWqZ875wzpS/bMKhz5HnN3p7wveJTkTtyAB/AlnS0f8DFSqYW1T82t6yEAkEcB+A1I3MbQ== + dependencies: + character-entities "^1.0.0" + character-entities-legacy "^1.0.0" + character-reference-invalid "^1.0.0" + is-alphanumerical "^1.0.0" + is-decimal "^1.0.0" + is-hexadecimal "^1.0.0" + parse-github-repo-url@^1.3.0: version "1.4.1" resolved "https://registry.yarnpkg.com/parse-github-repo-url/-/parse-github-repo-url-1.4.1.tgz#9e7d8bb252a6cb6ba42595060b7bf6df3dbc1f50" @@ -7014,6 +7171,11 @@ prettier@^2.4.1: resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.4.1.tgz#671e11c89c14a4cfc876ce564106c4a6726c9f5c" integrity sha512-9fbDAXSBcc6Bs1mZrDYb3XKzDLm4EXXL9sC1LqKP5rZkT6KRr/rf9amVUcODVXgguK/isJz0d0hP72WeaKWsvA== +prettier@^2.5.1: + version "2.5.1" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.5.1.tgz#fff75fa9d519c54cf0fce328c1017d94546bc56a" + integrity sha512-vBZcPRUR5MZJwoyi3ZoyQlc1rXeEck8KgeC9AwwOn+exuxLxq5toTRDTSaVrXHxelDMHy9zlicw8u66yxoSUFg== + pretty-format@^22.4.3: version "22.4.3" resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-22.4.3.tgz#f873d780839a9c02e9664c8a082e9ee79eaac16f" @@ -8527,6 +8689,13 @@ unique-slug@^2.0.0: dependencies: imurmurhash "^0.1.4" +unist-util-stringify-position@^2.0.0: + version "2.0.3" + resolved "https://registry.yarnpkg.com/unist-util-stringify-position/-/unist-util-stringify-position-2.0.3.tgz#cce3bfa1cdf85ba7375d1d5b17bdc4cada9bd9da" + integrity sha512-3faScn5I+hy9VleOq/qNbAd6pAx7iH5jYBMS9I1HgQVijz/4mv5Bvw5iw1sC/90CODiKo81G/ps8AJrISn687g== + dependencies: + "@types/unist" "^2.0.2" + universal-user-agent@^4.0.0: version "4.0.1" resolved "https://registry.yarnpkg.com/universal-user-agent/-/universal-user-agent-4.0.1.tgz#fd8d6cb773a679a709e967ef8288a31fcc03e557"