Skip to content

Commit 577ce20

Browse files
committed
chore: resolve eslint config mismatch
1 parent d3ca60d commit 577ce20

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ jobs:
115115
reporter: github-pr-review
116116
filter_mode: diff_context
117117
# eslint_flags: "components/*/stories/*.js"
118-
eslint_flags: "${{ inputs.eslint_added_files }} ${{ inputs.eslint_modified_files }}"
118+
eslint_flags: "--config ${{ github.workspace }}/.eslintrc ${{ inputs.eslint_added_files }} ${{ inputs.eslint_modified_files }}"
119119

120120
- name: Run markdownlint on documentation
121121
uses: reviewdog/action-markdownlint@v0.26.2

lint-staged.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module.exports = {
44
"prettier --no-error-on-unmatched-pattern --ignore-unknown --log-level silent --write --config .prettierrc",
55
],
66
"*.{js,json},!package.json": [
7-
"eslint --fix --cache --no-error-on-unmatched-pattern"
7+
"eslint --fix --cache --no-error-on-unmatched-pattern --config .eslintrc"
88
],
99
"*.{md,mdx}": [
1010
"prettier --no-error-on-unmatched-pattern --ignore-unknown --log-level silent --write --config .prettierrc",
@@ -13,7 +13,7 @@ module.exports = {
1313
"package.json": (files) => ([
1414
"yarn constraints --fix",
1515
"yarn install --refresh-lockfile",
16-
`eslint --fix --cache --no-error-on-unmatched-pattern ${files.join(" ")}`,
16+
`eslint --fix --cache --no-error-on-unmatched-pattern --config .eslintrc ${files.join(" ")}`,
1717
"git add yarn.lock"
1818
]),
1919
"dist/*.css": [

0 commit comments

Comments
 (0)