feat(tools): remove eslint-plugin-prettier for prettier (#42438)

* feat: remove eslint-plugin-prettier for prettier

This removes the annoying lint warnings when all that needs to change is
formatting

* fix: use .js lint-staged config to ignore properly

* fix: lint everything if a lot of files are changed

It's faster than making lots of individual linter calls

* chore: apply prettier

* fix: ignore code in curriculum-file-structure
This commit is contained in:
Oliver Eyton-Williams
2021-10-06 17:32:21 +02:00
committed by GitHub
parent 8518079316
commit c8d7f0a782
152 changed files with 905 additions and 735 deletions

12
.github/labeler.yml vendored
View File

@@ -1,22 +1,22 @@
"scope: docs":
'scope: docs':
- docs/**/*
"scope: curriculum":
'scope: curriculum':
- curriculum/challenges/**/*
"platform: client":
'platform: client':
- client/**/*
"platform: api":
'platform: api':
- api-server/**/*
"scope: tools/scripts":
'scope: tools/scripts':
- cypress/**/*
- tools/**/*
- .github/**/*
- utils/**/*
"scope: i18n":
'scope: i18n':
- any: ['curriculum/challenges/**/*', '!curriculum/challenges/english/**/*']
- docs/i18n/**/*
- client/i18n/**/*

View File

@@ -2,9 +2,9 @@ name: Autoclose
on:
pull_request_target:
branches:
- "main"
- 'main'
paths:
- ".gitignore"
- '.gitignore'
jobs:
autoclose:

View File

@@ -1,4 +1,4 @@
name: "CodeQL"
name: 'CodeQL'
on:
push:
@@ -14,7 +14,7 @@ jobs:
strategy:
fail-fast: false
matrix:
language: ["javascript"]
language: ['javascript']
steps:
- name: Checkout repository
uses: actions/checkout@v2

View File

@@ -3,7 +3,7 @@ on:
workflow_dispatch:
schedule:
# runs everyday at 11:15 AM UTC
- cron: "15 11 * * *"
- cron: '15 11 * * *'
jobs:
i18n-upload-client-ui-files:

View File

@@ -56,7 +56,6 @@ jobs:
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID_CURRICULUM }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_CAMPERBOT_SERVICE_TOKEN }}
# Convert Simplified Chinese to Traditional #
- name: Generate Translations
uses: ./tools/crowdin/actions/convert-chinese

View File

@@ -3,7 +3,7 @@ on:
workflow_dispatch:
schedule:
# runs everyday at 11:30 AM UTC
- cron: "30 11 * * *"
- cron: '30 11 * * *'
jobs:
i18n-upload-curriculum-files:

View File

@@ -3,7 +3,7 @@ on:
workflow_dispatch:
schedule:
# runs everyday at 11:00 AM UTC
- cron: "0 11 * * *"
- cron: '0 11 * * *'
jobs:
i18n-upload-docs-files:

View File

@@ -53,7 +53,6 @@ jobs:
name: webpack-stats
path: client/public/stats.json
cypress-run:
name: Test
runs-on: ubuntu-18.04

View File

@@ -1,12 +1,12 @@
name: "Pull Request Labeler"
name: 'Pull Request Labeler'
on:
- pull_request_target
- pull_request_target
jobs:
triage:
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v3
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
sync-labels: true
- uses: actions/labeler@v3
with:
repo-token: '${{ secrets.GITHUB_TOKEN }}'
sync-labels: true