Skip to content

Commit 3c92488

Browse files
chore(linting): add name property to ESLint recommended flat config (#9765)
### Description - `eslint-plugin-turbo["flat/recommended"]` currently has no `name` property and is anonymous. - Per [ESLint guidance](https://eslint.org/docs/latest/use/configure/configuration-files#configuration-naming-conventions), a name property should be added to configuration files for debugging. ![image](https://github.com/user-attachments/assets/25b9bd35-a215-4979-a58e-906c6db7a9a3) ### Testing Instructions ```shell pnpm run test --filter=eslint-plugin-turbo PASS __tests__/cwdFlat.test.ts (15.115 s) PASS __tests__/cwd.test.ts (15.289 s) Test Suites: 10 passed, 10 total Tests: 102 passed, 102 total Snapshots: 0 total Time: 15.623 s ``` Co-authored-by: Anthony Shew <[email protected]>
1 parent f16a8e5 commit 3c92488

File tree

3 files changed

+29
-7
lines changed

3 files changed

+29
-7
lines changed

packages/eslint-plugin-turbo/lib/configs/flat/recommended.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ const project = new Project(process.cwd());
66
const cacheKey = project.valid() ? project.key() : Math.random();
77

88
const config = {
9+
name: "turbo/recommended",
910
rules: {
1011
[`turbo/${RULES.noUndeclaredEnvVars}`]: "error",
1112
},

packages/eslint-plugin-turbo/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@
4141
"@turbo/tsconfig": "workspace:*",
4242
"@turbo/types": "workspace:*",
4343
"@turbo/utils": "workspace:*",
44-
"@types/eslint": "^8.44.2",
45-
"@types/estree": "^1.0.0",
44+
"@types/eslint": "^8.56.10",
45+
"@types/estree": "^1.0.1",
4646
"@types/node": "^18.17.2",
4747
"jest": "^29.7.0",
4848
"json5": "^2.2.1",

pnpm-lock.yaml

Lines changed: 26 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)