Do not break comment layout when pasting multiline strings (#2975) #145
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
name: JavaScript linting | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- '**.js' | |
- '**.ts' | |
- '**.tsx' | |
- '**.css' | |
- package.json | |
- '.*eslint*' | |
- '.*prettier*' | |
- .github/workflows/js-lint.yml | |
pull_request: | |
branches: | |
- main | |
paths: | |
- '**.js' | |
- '**.ts' | |
- '**.tsx' | |
- '**.css' | |
- package.json | |
- '.*eslint*' | |
- '.*prettier*' | |
- .github/workflows/js-lint.yml | |
workflow_dispatch: | |
jobs: | |
eslint: | |
name: eslint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: { node-version: '16' } | |
- name: Install dependencies | |
run: npm ci | |
- name: eslint | |
run: npm run eslint | |
prettier: | |
name: prettier | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: { node-version: '16' } | |
- name: Install dependencies | |
run: npm ci | |
- name: prettier | |
run: npm run check-prettier |