Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Eslint Check

on: [pull_request]

jobs:
eslint_check_upload:
runs-on: ubuntu-latest
name: ESLint Check and Report Upload

steps:
- uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'yarn'
- name: Install Dependencies
run: yarn
- name: Build Packages
run: yarn build:all
- name: Test Code Linting
run: yarn turbo run lint
- name: Save Code Linting Report JSON
run: yarn lint:report
# Continue to the next step even if this fails
continue-on-error: true
- name: Annotate Code Linting Results
uses: ataylorme/eslint-annotate-action@v2
with:
repo-token: '${{ secrets.GITHUB_TOKEN }}'
report-json: 'eslint_report.json'
- name: Upload ESLint report
uses: actions/upload-artifact@v2
with:
name: eslint_report.json
path: eslint_report.json
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ install:
- yarn

script:
- yarn lerna run prepublish
- yarn lerna run check-types
- yarn build:all
- yarn turbo run check-types
- xvfb-run --server-args="-screen 0 1920x1080x24" yarn lerna run test
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
"test:watch": "yarn turbo run test:watch",
"dev": "yarn turbo run dev",
"repl": "cd packages/rrweb && npm run repl",
"lint": "yarn run concurrently --success=all -r -m=1 'yarn run markdownlint docs' 'yarn eslint packages/*/src --ext .ts,.tsx,.js,.jsx,.svelte'"
"lint": "yarn run concurrently --success=all -r -m=1 'yarn run markdownlint docs' 'yarn eslint packages/*/src --ext .ts,.tsx,.js,.jsx,.svelte'",
"lint:report": "yarn eslint --output-file eslint_report.json --format json packages/*/src --ext .ts,.tsx,.js,.jsx"
},
"resolutions": {
"**/jsdom/cssom": "https://registry.npmjs.org/rrweb-cssom/-/rrweb-cssom-0.6.0.tgz"
Expand Down
16 changes: 6 additions & 10 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,13 @@
"baseBranch": "origin/master",
"pipeline": {
"prepublish": {
"dependsOn": [
"^prepublish"
],
"outputs": [
"lib/**",
"es/**",
"dist/**"
]
"dependsOn": ["^prepublish"],
"outputs": ["lib/**", "es/**", "dist/**"]
},
"test": {},
"test:watch": {},
"dev": {}
"dev": {},
"lint": {},
"check-types": {}
}
}
}