From d4b52cd65d58fe6ca2e35a4041028bd594f332c5 Mon Sep 17 00:00:00 2001 From: Septs Date: Sun, 6 Feb 2022 11:26:55 +0800 Subject: [PATCH] fix: add editorconfig checker --- .ecrc | 5 +++++ .github/workflows/linters.yml | 8 ++++++++ packages/plugins/RSS3/src/SNSAdaptor/styles/tailwind.css | 4 ++-- packages/web3-constants/package.json | 2 +- 4 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 .ecrc diff --git a/.ecrc b/.ecrc new file mode 100644 index 000000000000..279fdae23de2 --- /dev/null +++ b/.ecrc @@ -0,0 +1,5 @@ +{ + "Disable": { + "Indentation": true + } +} diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml index 5e9976a2b319..fe364e86fbad 100644 --- a/.github/workflows/linters.yml +++ b/.github/workflows/linters.yml @@ -30,6 +30,14 @@ jobs: ref: ${{ github.event.pull_request.head.sha }} - uses: actions/setup-node@v2 - run: npx markdownlint-cli . + editorconfig: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + with: + ref: ${{ github.event.pull_request.head.sha }} + - uses: DimensionDev/setup-editorconfig-action@latest + - run: editorconfig-checker anti-trojan-source: runs-on: ubuntu-20.04 steps: diff --git a/packages/plugins/RSS3/src/SNSAdaptor/styles/tailwind.css b/packages/plugins/RSS3/src/SNSAdaptor/styles/tailwind.css index e2981ca5fb16..d5df864098ea 100644 --- a/packages/plugins/RSS3/src/SNSAdaptor/styles/tailwind.css +++ b/packages/plugins/RSS3/src/SNSAdaptor/styles/tailwind.css @@ -539,14 +539,14 @@ samp { * CSS Remedy, with `svg` added as well. * * https://github.com/mozdevs/cssremedy/issues/14 - * + * * 2. Add `vertical-align: middle` to align replaced elements more * sensibly by default when overriding `display` by adding a * utility like `inline`. * * This can trigger a poorly considered linting error in some * tools but is included by design. - * + * * https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210 */ diff --git a/packages/web3-constants/package.json b/packages/web3-constants/package.json index a686e018c78f..e381a1457bbe 100644 --- a/packages/web3-constants/package.json +++ b/packages/web3-constants/package.json @@ -4,4 +4,4 @@ "scripts": { "start": "ts-node compile-constants.ts" } -} \ No newline at end of file +}