Skip to content

Commit d9e0865

Browse files
fix(action): correct lint path, clean up warnings, fix lints (#7043)
* fix(action): supply config path * fix(eslint): supply custom path to pages * fix(eslint): replace deprecated ignore approach
1 parent 4139bbb commit d9e0865

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

.eslintignore

-5
This file was deleted.

.github/workflows/translations-pr.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ jobs:
106106
- name: Run `npx lint:md --fix`
107107
# This runs a specific version of ESLint with only the Translation Pages Globbing
108108
# This avoid that unrelated changes get linted/modified within this PR
109-
run: npx eslint "apps/site/pages/**/*.md?(x)" --fix --cache --cache-strategy=metadata --cache-file=apps/site/.eslintmdcache
109+
run: npx eslint "apps/site/pages/**/*.md?(x)" --fix --cache --cache-strategy=metadata --cache-file=apps/site/.eslintmdcache --config=apps/site/eslint.config.js
110110

111111
- name: Run `npx prettier --write`
112112
# This runs a specific version of Prettier with only the Translation Pages Globbing

apps/site/eslint.config.js

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ const compatConfig = compat.config({
2222
export default tseslint.config(
2323
{
2424
ignores: [
25+
'node_modules',
2526
'.next',
2627
'.swc',
2728
'.turbo',
@@ -88,6 +89,7 @@ export default tseslint.config(
8889
rules: {
8990
'no-irregular-whitespace': 'off',
9091
'@next/next/no-img-element': 'off',
92+
'@next/next/no-html-link-for-pages': ['error', 'apps/site/pages/'],
9193

9294
// https://github.com/typescript-eslint/typescript-eslint/issues/9860
9395
'@typescript-eslint/consistent-type-imports': 'off',

packages/i18n/eslint.config.js

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import tseslint from 'typescript-eslint';
66
export default tseslint.config(
77
{
88
ignores: [
9+
'node_modules',
10+
'.turbo',
911
'build',
1012
'coverage',
1113
'global.d.ts',

0 commit comments

Comments
 (0)