forked from mysticatea/eslint-plugin
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7e675d8
commit 1c0d70b
Showing
15 changed files
with
332 additions
and
325 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
root: true | ||
extends: | ||
- plugin:@eslint-community/mysticatea/es2015 | ||
- plugin:@eslint-community/mysticatea/+eslint-plugin | ||
- plugin:@eslint-community/mysticatea/es2015 | ||
- plugin:@eslint-community/mysticatea/+eslint-plugin |
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,11 +1,11 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: github-actions | ||
directory: / | ||
schedule: | ||
interval: daily | ||
- package-ecosystem: github-actions | ||
directory: / | ||
schedule: | ||
interval: daily | ||
|
||
- package-ecosystem: npm | ||
directory: / | ||
schedule: | ||
interval: daily | ||
- package-ecosystem: npm | ||
directory: / | ||
schedule: | ||
interval: daily |
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,122 +1,121 @@ | ||
name: CI | ||
on: | ||
push: | ||
branches: | ||
# default semantic-release branches | ||
- +([0-9])?(.{+([0-9]),x}).x | ||
- main | ||
- next | ||
- next-major | ||
- beta | ||
- alpha | ||
pull_request: | ||
schedule: | ||
- cron: 0 0 * * 0 | ||
push: | ||
branches: | ||
# default semantic-release branches | ||
- +([0-9])?(.{+([0-9]),x}).x | ||
- main | ||
- next | ||
- next-major | ||
- beta | ||
- alpha | ||
pull_request: | ||
schedule: | ||
- cron: 0 0 * * 0 | ||
|
||
jobs: | ||
lint: | ||
name: ⬣ Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 🛑 Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
|
||
- name: ⬇️ Checkout repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: ⎔ Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
|
||
- name: 📥 Install dependencies | ||
run: npm install | ||
|
||
- name: ▶️ Run lint script | ||
run: npm run lint | ||
|
||
test: | ||
name: | ||
🧪 Test (Node@${{ matrix.node }} - ESLint@${{ matrix.eslint }} - ${{ | ||
matrix.os }}) | ||
strategy: | ||
matrix: | ||
eslint: [6] | ||
node: [12.22.0, 12, 14.17.0, 14, 16, 18] | ||
os: [ubuntu-latest] | ||
include: | ||
# On other platforms | ||
- os: windows-latest | ||
eslint: 6 | ||
node: 18 | ||
- os: macos-latest | ||
eslint: 6 | ||
node: 18 | ||
# On the minimum supported ESLint/Node.js version | ||
- eslint: 6.6.0 | ||
node: 12.22.0 | ||
os: ubuntu-latest | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: 🛑 Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
|
||
- name: ⬇️ Checkout repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: ⎔ Setup Node v${{ matrix.node }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
|
||
- name: 📥 Install dependencies | ||
run: npm install | ||
|
||
# - name: 📥 Install ESLint v${{ matrix.eslint }} | ||
# run: npm install --save-dev eslint@${{ matrix.eslint }} | ||
|
||
- name: ▶️ Run test script | ||
run: npm run test | ||
|
||
- name: ⬆️ Upload coverage report | ||
uses: codecov/codecov-action@v3 | ||
|
||
release: | ||
name: 🚀 Release | ||
needs: [lint, test] | ||
runs-on: ubuntu-latest | ||
if: | ||
github.repository == 'eslint-community/eslint-plugin-mysticatea' && | ||
contains('refs/heads/main,refs/heads/next,refs/heads/beta,refs/heads/alpha', | ||
github.ref) && github.event_name == 'push' | ||
steps: | ||
- name: 🛑 Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
|
||
- name: ⬇️ Checkout repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: ⎔ Setup node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
|
||
- name: 📥 Install dependencies | ||
run: npm install | ||
|
||
- name: 🚀 Release | ||
uses: cycjimmy/semantic-release-action@v3 | ||
with: | ||
semantic_version: 19 | ||
branches: | | ||
[ | ||
'+([0-9])?(.{+([0-9]),x}).x', | ||
'main', | ||
'next', | ||
'next-major', | ||
{name: 'beta', prerelease: true}, | ||
{name: 'alpha', prerelease: true} | ||
] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
lint: | ||
name: ⬣ Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 🛑 Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
|
||
- name: ⬇️ Checkout repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: ⎔ Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
|
||
- name: 📥 Install dependencies | ||
run: npm install | ||
|
||
- name: ▶️ Run lint script | ||
run: npm run lint | ||
|
||
test: | ||
name: | ||
🧪 Test (Node@${{ matrix.node }} - ESLint@${{ matrix.eslint }} - ${{ | ||
matrix.os }}) | ||
strategy: | ||
matrix: | ||
eslint: [6] | ||
node: [12.22.0, 12, 14.17.0, 14, 16, 18] | ||
os: [ubuntu-latest] | ||
include: | ||
# On other platforms | ||
- os: windows-latest | ||
eslint: 6 | ||
node: 18 | ||
- os: macos-latest | ||
eslint: 6 | ||
node: 18 | ||
# On the minimum supported ESLint/Node.js version | ||
- eslint: 6.6.0 | ||
node: 12.22.0 | ||
os: ubuntu-latest | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: 🛑 Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
|
||
- name: ⬇️ Checkout repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: ⎔ Setup Node v${{ matrix.node }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
|
||
- name: 📥 Install dependencies | ||
run: npm install | ||
|
||
# - name: 📥 Install ESLint v${{ matrix.eslint }} | ||
# run: npm install --save-dev eslint@${{ matrix.eslint }} | ||
|
||
- name: ▶️ Run test script | ||
run: npm run test | ||
|
||
- name: ⬆️ Upload coverage report | ||
uses: codecov/codecov-action@v3 | ||
|
||
release: | ||
name: 🚀 Release | ||
needs: [lint, test] | ||
runs-on: ubuntu-latest | ||
if: github.repository == 'eslint-community/eslint-plugin-mysticatea' && | ||
contains('refs/heads/main,refs/heads/next,refs/heads/beta,refs/heads/alpha', | ||
github.ref) && github.event_name == 'push' | ||
steps: | ||
- name: 🛑 Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
|
||
- name: ⬇️ Checkout repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: ⎔ Setup node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
|
||
- name: 📥 Install dependencies | ||
run: npm install | ||
|
||
- name: 🚀 Release | ||
uses: cycjimmy/semantic-release-action@v3 | ||
with: | ||
semantic_version: 19 | ||
branches: | | ||
[ | ||
'+([0-9])?(.{+([0-9]),x}).x', | ||
'main', | ||
'next', | ||
'next-major', | ||
{name: 'beta', prerelease: true}, | ||
{name: 'alpha', prerelease: true} | ||
] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |
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,29 +1,29 @@ | ||
name: 🥺 No Response | ||
|
||
on: | ||
schedule: | ||
# Schedule for five minutes after the hour, every hour | ||
- cron: "5 * * * *" | ||
schedule: | ||
# Schedule for five minutes after the hour, every hour | ||
- cron: "5 * * * *" | ||
|
||
permissions: | ||
issues: write | ||
pull-requests: write | ||
issues: write | ||
pull-requests: write | ||
|
||
jobs: | ||
stale: | ||
if: github.repository == 'eslint-community/eslint-plugin-mysticatea' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 🥺 Handle Ghosting | ||
uses: actions/stale@v6 | ||
with: | ||
close-issue-message: > | ||
This issue has been automatically closed because we haven't received a | ||
response from the original author 🙈. This automation helps keep the issue | ||
tracker clean from issues that aren't actionable. Please reach out if you | ||
have more information for us! 🙂 | ||
close-pr-message: > | ||
This PR has been automatically closed because we haven't received a | ||
response from the original author 🙈. This automation helps keep the issue | ||
tracker clean from PRs that aren't actionable. Please reach out if you | ||
have more information for us! 🙂 | ||
stale: | ||
if: github.repository == 'eslint-community/eslint-plugin-mysticatea' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 🥺 Handle Ghosting | ||
uses: actions/stale@v6 | ||
with: | ||
close-issue-message: > | ||
This issue has been automatically closed because we haven't received a | ||
response from the original author 🙈. This automation helps keep the issue | ||
tracker clean from issues that aren't actionable. Please reach out if you | ||
have more information for us! 🙂 | ||
close-pr-message: > | ||
This PR has been automatically closed because we haven't received a | ||
response from the original author 🙈. This automation helps keep the issue | ||
tracker clean from PRs that aren't actionable. Please reach out if you | ||
have more information for us! 🙂 |
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,7 +1,7 @@ | ||
include: | ||
- lib | ||
- lib | ||
exclude: | ||
- lib/processors/vue.js | ||
- lib/processors/vue.js | ||
reporter: | ||
- text-summary | ||
- lcov | ||
- text-summary | ||
- lcov |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module.exports = { | ||
tabWidth: 4, | ||
semi: false, | ||
trailingComma: "es5", | ||
} |
Oops, something went wrong.