-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
chore(deps): migrate eslint config to flat format for v10 compat #9222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,38 @@ | ||||||||||||||||
| import compat from "eslint-plugin-compat"; | ||||||||||||||||
| import figLinter from "@withfig/eslint-plugin-fig-linter"; | ||||||||||||||||
|
cursor[bot] marked this conversation as resolved.
|
||||||||||||||||
| import tseslint from "typescript-eslint"; | ||||||||||||||||
|
|
||||||||||||||||
| export default tseslint.config( | ||||||||||||||||
| { | ||||||||||||||||
| files: ["xtasks/fig/**/*.ts"], | ||||||||||||||||
| extends: [ | ||||||||||||||||
| ...tseslint.configs.recommended, | ||||||||||||||||
| compat.configs["flat/recommended"], | ||||||||||||||||
| ], | ||||||||||||||||
| plugins: { | ||||||||||||||||
| "@withfig/fig-linter": figLinter, | ||||||||||||||||
| }, | ||||||||||||||||
| languageOptions: { | ||||||||||||||||
| ecmaVersion: 2020, | ||||||||||||||||
| sourceType: "module", | ||||||||||||||||
| globals: { | ||||||||||||||||
| Fig: "readonly", | ||||||||||||||||
| }, | ||||||||||||||||
| }, | ||||||||||||||||
| rules: { | ||||||||||||||||
| "@typescript-eslint/explicit-module-boundary-types": "off", | ||||||||||||||||
| "no-unused-vars": "off", | ||||||||||||||||
| "no-var": "off", | ||||||||||||||||
| "@typescript-eslint/no-unused-vars": "off", | ||||||||||||||||
|
Comment on lines
+24
to
+26
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Disabling
Suggested change
|
||||||||||||||||
| "@withfig/fig-linter/no-malicious-script": "error", | ||||||||||||||||
| }, | ||||||||||||||||
| }, | ||||||||||||||||
| { | ||||||||||||||||
| files: ["xtasks/fig/src/**/*.ts"], | ||||||||||||||||
| rules: { | ||||||||||||||||
| "@withfig/fig-linter/no-useless-insertvalue": "error", | ||||||||||||||||
| "@withfig/fig-linter/no-empty-array-values": "error", | ||||||||||||||||
| "@withfig/fig-linter/no-name-equals": "error", | ||||||||||||||||
| }, | ||||||||||||||||
| }, | ||||||||||||||||
| ); | ||||||||||||||||
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -20,18 +20,20 @@ | |||||||
| "esbuild": "0.28.0" | ||||||||
| }, | ||||||||
| "devDependencies": { | ||||||||
| "@fig/eslint-config-autocomplete": "^2.0.0", | ||||||||
| "@tsconfig/node24": "^24.0.0", | ||||||||
| "@types/markdown-it": "^14.1.2", | ||||||||
| "@types/node": "^25.0.0", | ||||||||
| "@withfig/autocomplete-tools": "^2.11.0", | ||||||||
| "@withfig/autocomplete-types": "^1.31.0", | ||||||||
| "@withfig/eslint-plugin-fig-linter": "^1.4.1", | ||||||||
| "eslint": "^10.0.0", | ||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The package
Suggested change
|
||||||||
| "eslint-plugin-compat": "^7.0.1", | ||||||||
| "js-toml": "^1.0.2", | ||||||||
| "markdown-it": "^14.1.0", | ||||||||
| "toml": "^4.0.0", | ||||||||
| "tsx": "^4.20.6", | ||||||||
| "typescript": "^6.0.0", | ||||||||
| "typescript-eslint": "^8.58.2", | ||||||||
| "vitepress": "1.6.4", | ||||||||
| "vitepress-plugin-group-icons": "^1.6.5", | ||||||||
| "vitepress-plugin-mermaid": "2.0.17", | ||||||||
|
|
||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@withfig/eslint-plugin-fig-linter@withfig/eslint-plugin-fig-linteris imported here but is not listed inpackage.jsondevDependencies and has been removed frombun.lock. Any developer runningbun installfrom scratch will get a module-not-found error whenbun run lint-fig(ormise run render:fig) hits this import. The package needs to be added explicitly since it was previously a transitive dependency of@fig/eslint-config-autocomplete(now removed).Add
"@withfig/eslint-plugin-fig-linter": "^1.4.1"todevDependenciesinpackage.jsonand regenerate the lockfile.