Skip to content

Commit

Permalink
Improve CI for ESLint
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderRedYT committed Sep 27, 2024
1 parent 395b0ad commit 9a2b0da
Show file tree
Hide file tree
Showing 3 changed files with 95 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,13 @@ jobs:
- name: Run ESLint
run: |
yarn lint --max-warnings=0
yarn lint --max-warnings=0 --format @microsoft/eslint-formatter-sarif --output-file eslint-results.sarif
- name: Upload ESLint analysis results to GitHub
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: eslint-results.sarif
wait-for-processing: true

- name: Run tests
uses: willcaul/jest-github-action@v4
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@
"@babel/plugin-transform-private-methods": "^7.25.4",
"@babel/preset-env": "^7.25.4",
"@babel/runtime": "^7.25.6",
"@microsoft/eslint-formatter-sarif": "^3.1.0",
"@react-native/babel-preset": "0.75.3",
"@react-native/eslint-config": "0.75.3",
"@react-native/metro-config": "0.75.3",
Expand Down
88 changes: 87 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1881,6 +1881,13 @@ __metadata:
languageName: node
linkType: hard

"@eslint/js@npm:8.57.1":
version: 8.57.1
resolution: "@eslint/js@npm:8.57.1"
checksum: 10/7562b21be10c2adbfa4aa5bb2eccec2cb9ac649a3569560742202c8d1cb6c931ce634937a2f0f551e078403a1c1285d6c2c0aa345dafc986149665cd69fe8b59
languageName: node
linkType: hard

"@expo/bunyan@npm:^4.0.0":
version: 4.0.1
resolution: "@expo/bunyan@npm:4.0.1"
Expand Down Expand Up @@ -2276,14 +2283,25 @@ __metadata:
languageName: node
linkType: hard

"@humanwhocodes/config-array@npm:^0.13.0":
version: 0.13.0
resolution: "@humanwhocodes/config-array@npm:0.13.0"
dependencies:
"@humanwhocodes/object-schema": "npm:^2.0.3"
debug: "npm:^4.3.1"
minimatch: "npm:^3.0.5"
checksum: 10/524df31e61a85392a2433bf5d03164e03da26c03d009f27852e7dcfdafbc4a23f17f021dacf88e0a7a9fe04ca032017945d19b57a16e2676d9114c22a53a9d11
languageName: node
linkType: hard

"@humanwhocodes/module-importer@npm:^1.0.1":
version: 1.0.1
resolution: "@humanwhocodes/module-importer@npm:1.0.1"
checksum: 10/e993950e346331e5a32eefb27948ecdee2a2c4ab3f072b8f566cd213ef485dd50a3ca497050608db91006f5479e43f91a439aef68d2a313bd3ded06909c7c5b3
languageName: node
linkType: hard

"@humanwhocodes/object-schema@npm:^2.0.2":
"@humanwhocodes/object-schema@npm:^2.0.2, @humanwhocodes/object-schema@npm:^2.0.3":
version: 2.0.3
resolution: "@humanwhocodes/object-schema@npm:2.0.3"
checksum: 10/05bb99ed06c16408a45a833f03a732f59bf6184795d4efadd33238ff8699190a8c871ad1121241bb6501589a9598dc83bf25b99dcbcf41e155cdf36e35e937a3
Expand Down Expand Up @@ -2642,6 +2660,18 @@ __metadata:
languageName: node
linkType: hard

"@microsoft/eslint-formatter-sarif@npm:^3.1.0":
version: 3.1.0
resolution: "@microsoft/eslint-formatter-sarif@npm:3.1.0"
dependencies:
eslint: "npm:^8.9.0"
jschardet: "npm:latest"
lodash: "npm:^4.17.14"
utf8: "npm:^3.0.0"
checksum: 10/f7b6af2fa279feb120be21532b31613847ed44142aaed5c192596a8a0876182c531d787f3b57f2edc6e3d6f3647c0206bc863986deac3a20e56d197c18ffb446
languageName: node
linkType: hard

"@nicolo-ribaudo/eslint-scope-5-internals@npm:5.1.1-v1":
version: 5.1.1-v1
resolution: "@nicolo-ribaudo/eslint-scope-5-internals@npm:5.1.1-v1"
Expand Down Expand Up @@ -7397,6 +7427,54 @@ __metadata:
languageName: node
linkType: hard

"eslint@npm:^8.9.0":
version: 8.57.1
resolution: "eslint@npm:8.57.1"
dependencies:
"@eslint-community/eslint-utils": "npm:^4.2.0"
"@eslint-community/regexpp": "npm:^4.6.1"
"@eslint/eslintrc": "npm:^2.1.4"
"@eslint/js": "npm:8.57.1"
"@humanwhocodes/config-array": "npm:^0.13.0"
"@humanwhocodes/module-importer": "npm:^1.0.1"
"@nodelib/fs.walk": "npm:^1.2.8"
"@ungap/structured-clone": "npm:^1.2.0"
ajv: "npm:^6.12.4"
chalk: "npm:^4.0.0"
cross-spawn: "npm:^7.0.2"
debug: "npm:^4.3.2"
doctrine: "npm:^3.0.0"
escape-string-regexp: "npm:^4.0.0"
eslint-scope: "npm:^7.2.2"
eslint-visitor-keys: "npm:^3.4.3"
espree: "npm:^9.6.1"
esquery: "npm:^1.4.2"
esutils: "npm:^2.0.2"
fast-deep-equal: "npm:^3.1.3"
file-entry-cache: "npm:^6.0.1"
find-up: "npm:^5.0.0"
glob-parent: "npm:^6.0.2"
globals: "npm:^13.19.0"
graphemer: "npm:^1.4.0"
ignore: "npm:^5.2.0"
imurmurhash: "npm:^0.1.4"
is-glob: "npm:^4.0.0"
is-path-inside: "npm:^3.0.3"
js-yaml: "npm:^4.1.0"
json-stable-stringify-without-jsonify: "npm:^1.0.1"
levn: "npm:^0.4.1"
lodash.merge: "npm:^4.6.2"
minimatch: "npm:^3.1.2"
natural-compare: "npm:^1.4.0"
optionator: "npm:^0.9.3"
strip-ansi: "npm:^6.0.1"
text-table: "npm:^0.2.0"
bin:
eslint: bin/eslint.js
checksum: 10/5504fa24879afdd9f9929b2fbfc2ee9b9441a3d464efd9790fbda5f05738858530182029f13323add68d19fec749d3ab4a70320ded091ca4432b1e9cc4ed104c
languageName: node
linkType: hard

"espree@npm:^9.6.0, espree@npm:^9.6.1":
version: 9.6.1
resolution: "espree@npm:9.6.1"
Expand Down Expand Up @@ -9866,6 +9944,13 @@ __metadata:
languageName: node
linkType: hard

"jschardet@npm:latest":
version: 3.1.3
resolution: "jschardet@npm:3.1.3"
checksum: 10/2f3eda389f11eb5c5c1e6fe56048757a896c18566544c7ca94fc619a83fb9a5c7a7270ad41c7e194e2dbb7d4c128a332ac780db91498141d3457da39c1025ca7
languageName: node
linkType: hard

"jscodeshift@npm:^0.14.0":
version: 0.14.0
resolution: "jscodeshift@npm:0.14.0"
Expand Down Expand Up @@ -11617,6 +11702,7 @@ __metadata:
"@babel/plugin-transform-private-methods": "npm:^7.25.4"
"@babel/preset-env": "npm:^7.25.4"
"@babel/runtime": "npm:^7.25.6"
"@microsoft/eslint-formatter-sarif": "npm:^3.1.0"
"@os-team/i18next-react-native-language-detector": "npm:^1.0.34"
"@pchmn/expo-material3-theme": "npm:^1.3.2"
"@react-native-async-storage/async-storage": "npm:^2.0.0"
Expand Down

0 comments on commit 9a2b0da

Please sign in to comment.