forked from Milkdown/milkdown
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: 🤖 remove prettier and use antfu's eslint config (Milkdown#825)
* chore: 🤖 remove prettier and use antfu's eslint config * test: 💍 optimize test * test: 💍 remove prettier test * chore: 🤖 remove prettier in dev contaienr extension
- Loading branch information
1 parent
c2ff055
commit 5819548
Showing
504 changed files
with
23,247 additions
and
22,305 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
root = true | ||
|
||
[*] | ||
end_of_line = lf | ||
insert_final_newline = true | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 4 | ||
indent_size = 2 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,66 +1,40 @@ | ||
/* Copyright 2021, Milkdown by Mirone. */ | ||
|
||
module.exports = { | ||
root: true, | ||
parser: '@typescript-eslint/parser', | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:@typescript-eslint/recommended', | ||
'plugin:promise/recommended', | ||
'plugin:import/recommended', | ||
'plugin:import/typescript', | ||
'plugin:prettier/recommended', | ||
'plugin:react-hooks/recommended', | ||
], | ||
plugins: ['simple-import-sort', 'header', 'eslint-plugin-tsdoc'], | ||
env: { | ||
browser: true, | ||
node: true, | ||
extends: ['@antfu/eslint-config-ts', 'plugin:react-hooks/recommended'], | ||
plugins: ['header', 'eslint-plugin-tsdoc'], | ||
rules: { | ||
'tsdoc/syntax': 'warn', | ||
'yml/no-empty-mapping-value': 'off', | ||
'@typescript-eslint/no-unused-vars': 'off', | ||
}, | ||
settings: { | ||
react: { | ||
version: 'detect', | ||
}, | ||
rules: { | ||
'no-console': ['error', { allow: ['warn', 'error'] }], | ||
|
||
'import/prefer-default-export': 'off', | ||
'import/no-default-export': 'error', | ||
'import/no-unresolved': ['error', { ignore: ['@milkdown/prose/*', 'mdast', 'unist', 'vitest'] }], | ||
|
||
'@typescript-eslint/explicit-module-boundary-types': 'off', | ||
'@typescript-eslint/no-unused-vars': 'off', | ||
|
||
'simple-import-sort/imports': 'error', | ||
'simple-import-sort/exports': 'error', | ||
|
||
'tsdoc/syntax': 'warn', | ||
|
||
'header/header': ['error', 'block', ' Copyright 2021, Milkdown by Mirone. '], | ||
}, | ||
overrides: [ | ||
{ | ||
files: ['**/vue/**/*.tsx'], | ||
rules: { | ||
'react-hooks/rules-of-hooks': 'off', | ||
}, | ||
}, | ||
{ | ||
files: ['**/table/**/*.ts'], | ||
rules: { | ||
eqeqeq: 'off', | ||
}, | ||
}, | ||
settings: { | ||
react: { | ||
version: 'detect', | ||
}, | ||
{ | ||
files: ['**/*.ts', '**/*.tsx', '**/*.js'], | ||
rules: { | ||
'header/header': [ | ||
'error', | ||
'block', | ||
' Copyright 2021, Milkdown by Mirone. ', | ||
], | ||
}, | ||
}, | ||
overrides: [ | ||
{ | ||
files: ['**/*.js'], | ||
rules: { | ||
'global-require': 'off', | ||
'@typescript-eslint/no-require-imports': 'off', | ||
'@typescript-eslint/no-var-requires': 'off', | ||
'@typescript-eslint/naming-convention': 'off', | ||
'import/no-default-export': 'off', | ||
}, | ||
}, | ||
{ | ||
files: ['**/vue/**/*.tsx'], | ||
rules: { | ||
'react-hooks/rules-of-hooks': 'off', | ||
}, | ||
}, | ||
{ | ||
files: ['shim.d.ts', 'vite.config.ts', 'playwright.config.ts', 'cypress.config.ts'], | ||
rules: { | ||
'import/no-default-export': 'off', | ||
}, | ||
}, | ||
], | ||
}; | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: 💬 Github Discussions | ||
url: https://github.com/Saul-Mirone/milkdown/discussions | ||
about: Use github issues for bug reports and feature requests. For questions please use discussions. | ||
- name: 🏙 Discord Community | ||
url: https://discord.gg/SdMnrSMyBX | ||
about: Ask for help in the Discord community. | ||
- name: 💬 Github Discussions | ||
url: https://github.com/Saul-Mirone/milkdown/discussions | ||
about: Use github issues for bug reports and feature requests. For questions please use discussions. | ||
- name: 🏙 Discord Community | ||
url: https://discord.gg/SdMnrSMyBX | ||
about: Ask for help in the Discord community. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"extends": ["config:base", ":preserveSemverRanges", "group:all"] | ||
"extends": ["config:base", ":preserveSemverRanges", "group:all"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,37 @@ | ||
name: On Pull Request | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
branches: 'main' | ||
workflow_dispatch: | ||
pull_request: | ||
branches: main | ||
|
||
env: | ||
CI: true | ||
NX_CLOUD_DISTRIBUTED_EXECUTION: true | ||
CI: true | ||
NX_CLOUD_DISTRIBUTED_EXECUTION: true | ||
jobs: | ||
start: | ||
uses: ./.github/workflows/start-nx-cloud.yml | ||
start: | ||
uses: ./.github/workflows/start-nx-cloud.yml | ||
|
||
agent: | ||
uses: ./.github/workflows/start-agents.yml | ||
agent: | ||
uses: ./.github/workflows/start-agents.yml | ||
|
||
test: | ||
needs: start | ||
uses: ./.github/workflows/test.yml | ||
secrets: | ||
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} | ||
CHANGESET_TOKEN: ${{ secrets.CHANGESET_TOKEN }} | ||
test: | ||
needs: start | ||
uses: ./.github/workflows/test.yml | ||
secrets: | ||
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} | ||
CHANGESET_TOKEN: ${{ secrets.CHANGESET_TOKEN }} | ||
|
||
stop: | ||
if: ${{ always() }} | ||
needs: test | ||
uses: ./.github/workflows/stop-nx-cloud.yml | ||
stop: | ||
if: ${{ always() }} | ||
needs: test | ||
uses: ./.github/workflows/stop-nx-cloud.yml | ||
|
||
report: | ||
if: ${{ always() }} | ||
needs: [stop, test, start] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: on error | ||
if: ${{ needs.start.result != 'success' || needs.test.result != 'success' }} | ||
run: exit 1 | ||
report: | ||
if: ${{ always() }} | ||
needs: [stop, test, start] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: on error | ||
if: ${{ needs.start.result != 'success' || needs.test.result != 'success' }} | ||
run: exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,43 @@ | ||
name: On Push | ||
|
||
on: | ||
push: | ||
branches: main | ||
push: | ||
branches: main | ||
|
||
env: | ||
CI: true | ||
NX_CLOUD_DISTRIBUTED_EXECUTION: true | ||
CI: true | ||
NX_CLOUD_DISTRIBUTED_EXECUTION: true | ||
jobs: | ||
start: | ||
uses: ./.github/workflows/start-nx-cloud.yml | ||
start: | ||
uses: ./.github/workflows/start-nx-cloud.yml | ||
|
||
agent: | ||
uses: ./.github/workflows/start-agents.yml | ||
agent: | ||
uses: ./.github/workflows/start-agents.yml | ||
|
||
test: | ||
needs: start | ||
uses: ./.github/workflows/test.yml | ||
secrets: | ||
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} | ||
CHANGESET_TOKEN: ${{ secrets.CHANGESET_TOKEN }} | ||
test: | ||
needs: start | ||
uses: ./.github/workflows/test.yml | ||
secrets: | ||
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} | ||
CHANGESET_TOKEN: ${{ secrets.CHANGESET_TOKEN }} | ||
|
||
release: | ||
needs: test | ||
uses: ./.github/workflows/release-package.yml | ||
secrets: | ||
CHANGESET_TOKEN: ${{ secrets.CHANGESET_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
release: | ||
needs: test | ||
uses: ./.github/workflows/release-package.yml | ||
secrets: | ||
CHANGESET_TOKEN: ${{ secrets.CHANGESET_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
||
stop: | ||
if: ${{ always() }} | ||
needs: release | ||
uses: ./.github/workflows/stop-nx-cloud.yml | ||
stop: | ||
if: ${{ always() }} | ||
needs: release | ||
uses: ./.github/workflows/stop-nx-cloud.yml | ||
|
||
report: | ||
if: ${{ always() }} | ||
needs: [stop, test, start, release] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: on error | ||
if: ${{ needs.start.result != 'success' || needs.test.result != 'success' || needs.release.result != 'success' }} | ||
run: exit 1 | ||
report: | ||
if: ${{ always() }} | ||
needs: [stop, test, start, release] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: on error | ||
if: ${{ needs.start.result != 'success' || needs.test.result != 'success' || needs.release.result != 'success' }} | ||
run: exit 1 |
Oops, something went wrong.