diff --git a/.github/workflows/validate-typescript.yml b/.github/workflows/validate-typescript.yml index db514d6..0e7600b 100644 --- a/.github/workflows/validate-typescript.yml +++ b/.github/workflows/validate-typescript.yml @@ -36,4 +36,4 @@ jobs: - name: Run TypeScript run: yarn typescript - name: Run ESLint - run: yarn lint + run: yarn lint-ci diff --git a/package.json b/package.json index 3af7d59..5a42e63 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,7 @@ "test": "jest", "typescript": "tsc --noEmit", "lint": "eslint \"**/*.{js,ts,tsx}\"", + "lint-ci": "yarn lint -f ./node_modules/@firmnav/eslint-github-actions-formatter/dist/formatter.js", "prepare": "bob build", "release": "release-it", "example": "yarn --cwd example", @@ -49,6 +50,7 @@ "registry": "https://registry.npmjs.org/" }, "devDependencies": { + "@firmnav/eslint-github-actions-formatter": "^1.0.1", "@react-native-community/eslint-config": "^2.0.0", "@react-native-community/eslint-plugin": "^1.1.0", "@release-it/conventional-changelog": "^2.0.0", diff --git a/yarn.lock b/yarn.lock index e678432..431a501 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,6 +2,11 @@ # yarn lockfile v1 +"@actions/core@^1.2.0": + version "1.2.6" + resolved "https://registry.yarnpkg.com/@actions/core/-/core-1.2.6.tgz#a78d49f41a4def18e88ce47c2cac615d5694bf09" + integrity sha512-ZQYitnqiyBc3D+k7LsgSBmMDVkOVidaagDG7j3fOym77jNunWRuYx7VSHa9GNfFZh+zh61xsCjRj4JxMZlDqTA== + "@babel/code-frame@7.12.11": version "7.12.11" resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.12.11.tgz#f4ad435aa263db935b8f10f2c552d23fb716a63f" @@ -1016,6 +1021,13 @@ minimatch "^3.0.4" strip-json-comments "^3.1.1" +"@firmnav/eslint-github-actions-formatter@^1.0.1": + version "1.0.1" + resolved "https://registry.yarnpkg.com/@firmnav/eslint-github-actions-formatter/-/eslint-github-actions-formatter-1.0.1.tgz#dbedcc4d8a799faf9b709417981039819980aab0" + integrity sha512-KbhZwNPFuwoRWspUfoJISOeGZHGSm7tvdOC+uOUlbcY9LNmusRHHmBcq3KaorvW9WmmiOS/2EOo0nafFZ0gpEQ== + dependencies: + "@actions/core" "^1.2.0" + "@hapi/address@2.x.x": version "2.1.4" resolved "https://registry.yarnpkg.com/@hapi/address/-/address-2.1.4.tgz#5d67ed43f3fd41a69d4b9ff7b56e7c0d1d0a81e5"