Skip to content

Commit

Permalink
docs: add Sponsors and Backers sections
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin committed Jul 2, 2022
1 parent 3910335 commit 8852b3a
Show file tree
Hide file tree
Showing 11 changed files with 907 additions and 600 deletions.
8 changes: 4 additions & 4 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ module.exports = {
extends: ['@1stg'],
rules: {
// `strictNullChecks` is required
'@typescript-eslint/no-unnecessary-condition': 0,
'@typescript-eslint/no-unnecessary-condition': 'off',
'unicorn/prefer-export-from': [
2,
'error',
{
ignoreUsedVariables: true,
},
Expand All @@ -15,13 +15,13 @@ module.exports = {
{
files: '*.ts',
rules: {
'@typescript-eslint/consistent-type-imports': 2,
'@typescript-eslint/consistent-type-imports': 'error',
},
},
{
files: '*.{md,mdx}',
rules: {
'react/no-unescaped-entities': 1,
'react/no-unescaped-entities': 'warn',
},
settings: {
'mdx/code-blocks': true,
Expand Down
11 changes: 10 additions & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
github: [JounQin]
github:
- JounQin
- 1stG
- rxts
- unts
patreon: 1stG
open_collective: unified
custom:
- https://opencollective.com/1stG
- https://opencollective.com/rxts
- https://opencollective.com/unts
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
- [Rules](#rules)
- [mdx/remark](#mdxremark)
- [Prettier Integration](#prettier-integration)
- [Sponsors](#sponsors)
- [Backers](#backers)
- [Changelog](#changelog)
- [License](#license)

Expand Down Expand Up @@ -141,6 +143,22 @@ If you're using [remark-lint][] feature with [Prettier][] both together, you can
}
```

## Sponsors

| 1stG | RxTS | UnTS |
| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
| [![1stG Open Collective backers and sponsors](https://opencollective.com/1stG/organizations.svg)](https://opencollective.com/1stG) | [![RxTS Open Collective backers and sponsors](https://opencollective.com/rxts/organizations.svg)](https://opencollective.com/rxts) | [![UnTS Open Collective backers and sponsors](https://opencollective.com/unts/organizations.svg)](https://opencollective.com/unts) |

[![unified Open Collective backers and sponsors](https://opencollective.com/unified/organizations.svg)](https://opencollective.com/unified)

## Backers

| 1stG | RxTS | UnTS |
| -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
| [![1stG Open Collective backers and sponsors](https://opencollective.com/1stG/individuals.svg)](https://opencollective.com/1stG) | [![RxTS Open Collective backers and sponsors](https://opencollective.com/rxts/individuals.svg)](https://opencollective.com/rxts) | [![UnTS Open Collective backers and sponsors](https://opencollective.com/unts/individuals.svg)](https://opencollective.com/unts) |

[![unified Open Collective backers and sponsors](https://opencollective.com/unified/individuals.svg)](https://opencollective.com/unified)

## Changelog

Detailed changes for each release are documented in [CHANGELOG.md](./CHANGELOG.md).
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.0.0",
"description": "ESLint Parser/Plugin for MDX",
"repository": "git+https://github.com/mdx-js/eslint-mdx.git",
"author": "JounQin <[email protected]>",
"author": "JounQin (https://www.1stG.me) <[email protected]>",
"license": "MIT",
"private": true,
"workspaces": [
Expand All @@ -26,8 +26,8 @@
"typecov": "type-coverage"
},
"devDependencies": {
"@1stg/lib-config": "^6.4.0",
"@types/eslint": "^8.4.3",
"@1stg/lib-config": "^7.2.2",
"@types/eslint": "^8.4.5",
"@types/eslint-plugin-markdown": "^2.0.0",
"@types/jest": "^28.1.4",
"@types/node": "^18.0.0",
Expand All @@ -51,6 +51,7 @@
},
"eslintIgnore": [
"coverage",
"dist",
"fixtures",
"lib",
"CHANGELOG.md",
Expand All @@ -62,7 +63,6 @@
"<rootDir>/node_modules/eslint/lib/linter/linter.js"
],
"moduleNameMapper": {
"^eslint/use-at-your-own-risk$": "<rootDir>/node_modules/eslint/lib/unsupported-api.js",
"^eslint-mdx$": "<rootDir>/packages/eslint-mdx/src",
"^eslint-plugin-mdx$": "<rootDir>/packages/eslint-plugin-mdx/src"
},
Expand Down
18 changes: 18 additions & 0 deletions packages/eslint-mdx/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
- [Rules](#rules)
- [mdx/remark](#mdxremark)
- [Prettier Integration](#prettier-integration)
- [Sponsors](#sponsors)
- [Backers](#backers)
- [Changelog](#changelog)
- [License](#license)

Expand Down Expand Up @@ -141,6 +143,22 @@ If you're using [remark-lint][] feature with [Prettier][] both together, you can
}
```

## Sponsors

| 1stG | RxTS | UnTS |
| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
| [![1stG Open Collective backers and sponsors](https://opencollective.com/1stG/organizations.svg)](https://opencollective.com/1stG) | [![RxTS Open Collective backers and sponsors](https://opencollective.com/rxts/organizations.svg)](https://opencollective.com/rxts) | [![UnTS Open Collective backers and sponsors](https://opencollective.com/unts/organizations.svg)](https://opencollective.com/unts) |

[![unified Open Collective backers and sponsors](https://opencollective.com/unified/organizations.svg)](https://opencollective.com/unified)

## Backers

| 1stG | RxTS | UnTS |
| -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
| [![1stG Open Collective backers and sponsors](https://opencollective.com/1stG/individuals.svg)](https://opencollective.com/1stG) | [![RxTS Open Collective backers and sponsors](https://opencollective.com/rxts/individuals.svg)](https://opencollective.com/rxts) | [![UnTS Open Collective backers and sponsors](https://opencollective.com/unts/individuals.svg)](https://opencollective.com/unts) |

[![unified Open Collective backers and sponsors](https://opencollective.com/unified/individuals.svg)](https://opencollective.com/unified)

## Changelog

Detailed changes for each release are documented in [CHANGELOG.md](./CHANGELOG.md).
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-mdx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"type": "opencollective",
"url": "https://opencollective.com/unified"
},
"author": "JounQin <[email protected]>",
"author": "JounQin (https://www.1stG.me) <[email protected]>",
"license": "MIT",
"engines": {
"node": ">=12.20"
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-mdx/src/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export const requirePkg = async <T>(
filePath?: string,
): Promise<T> => {
let packages: string[]
if (filePath && /^\.\.?([/\\]|$)/.test(plugin)) {
if (filePath && /^\.\.?(?:[/\\]|$)/.test(plugin)) {
packages = [path.resolve(path.dirname(filePath), plugin)]
} else {
prefix = prefix.endsWith('-') ? prefix : prefix + '-'
Expand Down
18 changes: 18 additions & 0 deletions packages/eslint-plugin-mdx/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
- [Rules](#rules)
- [mdx/remark](#mdxremark)
- [Prettier Integration](#prettier-integration)
- [Sponsors](#sponsors)
- [Backers](#backers)
- [Changelog](#changelog)
- [License](#license)

Expand Down Expand Up @@ -141,6 +143,22 @@ If you're using [remark-lint][] feature with [Prettier][] both together, you can
}
```

## Sponsors

| 1stG | RxTS | UnTS |
| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
| [![1stG Open Collective backers and sponsors](https://opencollective.com/1stG/organizations.svg)](https://opencollective.com/1stG) | [![RxTS Open Collective backers and sponsors](https://opencollective.com/rxts/organizations.svg)](https://opencollective.com/rxts) | [![UnTS Open Collective backers and sponsors](https://opencollective.com/unts/organizations.svg)](https://opencollective.com/unts) |

[![unified Open Collective backers and sponsors](https://opencollective.com/unified/organizations.svg)](https://opencollective.com/unified)

## Backers

| 1stG | RxTS | UnTS |
| -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
| [![1stG Open Collective backers and sponsors](https://opencollective.com/1stG/individuals.svg)](https://opencollective.com/1stG) | [![RxTS Open Collective backers and sponsors](https://opencollective.com/rxts/individuals.svg)](https://opencollective.com/rxts) | [![UnTS Open Collective backers and sponsors](https://opencollective.com/unts/individuals.svg)](https://opencollective.com/unts) |

[![unified Open Collective backers and sponsors](https://opencollective.com/unified/individuals.svg)](https://opencollective.com/unified)

## Changelog

Detailed changes for each release are documented in [CHANGELOG.md](./CHANGELOG.md).
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin-mdx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"type": "opencollective",
"url": "https://opencollective.com/unified"
},
"author": "JounQin <[email protected]>",
"author": "JounQin (https://www.1stG.me) <[email protected]>",
"license": "MIT",
"engines": {
"node": ">=12.20"
Expand Down
31 changes: 31 additions & 0 deletions patches/@1stg+eslint-config+5.2.2.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
diff --git a/node_modules/@1stg/eslint-config/overrides.js b/node_modules/@1stg/eslint-config/overrides.js
index 2697512..f6db0b7 100644
--- a/node_modules/@1stg/eslint-config/overrides.js
+++ b/node_modules/@1stg/eslint-config/overrides.js
@@ -503,7 +503,7 @@ exports.json = {
],
extends: [
// eslint-disable-next-line sonarjs/no-duplicate-string
- 'plugin:jsonc/auto-config',
+ // 'plugin:jsonc/auto-config',
'plugin:jsonc/recommended-with-json',
// eslint-disable-next-line sonarjs/no-duplicate-string
'plugin:json-schema-validator/recommended',
@@ -522,7 +522,7 @@ exports.jsonc = {
'tsconfig.*.json',
],
extends: [
- 'plugin:jsonc/auto-config',
+ // 'plugin:jsonc/auto-config',
'plugin:jsonc/recommended-with-jsonc',
'plugin:json-schema-validator/recommended',
'plugin:jsonc/prettier',
@@ -532,7 +532,7 @@ exports.jsonc = {
exports.json5 = {
files: '*.json5',
extends: [
- 'plugin:jsonc/auto-config',
+ // 'plugin:jsonc/auto-config',
'plugin:jsonc/recommended-with-json5',
'plugin:json-schema-validator/recommended',
'plugin:jsonc/prettier',
Loading

0 comments on commit 8852b3a

Please sign in to comment.