Skip to content

Commit 6b5c882

Browse files
committed
Remove Language Preference from codebase
This commit removes the Language Preference feature and associated code, including documentation, schemas, and implementation details from the codebase.
1 parent fbeba5d commit 6b5c882

File tree

18 files changed

+303
-396
lines changed

18 files changed

+303
-396
lines changed

.pkgs/configs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"@stylistic/eslint-plugin": "^5.3.1",
2424
"eslint-plugin-de-morgan": "^1.3.1",
2525
"eslint-plugin-function": "^0.0.25",
26-
"eslint-plugin-jsdoc": "^55.2.0",
26+
"eslint-plugin-jsdoc": "^56.1.2",
2727
"eslint-plugin-perfectionist": "^4.15.0",
2828
"eslint-plugin-regexp": "^2.10.0",
2929
"eslint-plugin-unicorn": "^61.0.2",

.pkgs/eslint-plugin-local/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"@typescript-eslint/types": "^8.43.0",
3434
"@typescript-eslint/utils": "^8.43.0",
3535
"eslint-plugin-de-morgan": "^1.3.1",
36-
"eslint-plugin-jsdoc": "^55.2.0",
36+
"eslint-plugin-jsdoc": "^56.1.2",
3737
"eslint-plugin-perfectionist": "^4.15.0",
3838
"eslint-plugin-regexp": "^2.10.0",
3939
"eslint-plugin-unicorn": "^61.0.2",

apps/website/content/docs/glossary.mdx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,6 @@ title: "Glossary"
33
description: "A collection of terms and concepts used in the ESLint React."
44
---
55

6-
## L
7-
8-
### Language Preference
9-
10-
Language Preference is a set of rules that represents the user's preference for how code should be formatted.
11-
12-
ESLint React provides a way to customize the code style used in the internal fixer's output through Language Preference.
13-
146
## P
157

168
### Project Config

apps/website/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@
1818
"class-variance-authority": "^0.7.1",
1919
"clsx": "^2.1.1",
2020
"effect": "^3.17.13",
21-
"fumadocs-core": "15.7.10",
21+
"fumadocs-core": "15.7.11",
2222
"fumadocs-docgen": "3.0.0",
23-
"fumadocs-mdx": "11.9.0",
23+
"fumadocs-mdx": "11.9.1",
2424
"fumadocs-twoslash": "3.1.7",
2525
"fumadocs-typescript": "4.0.8",
26-
"fumadocs-ui": "15.7.10",
27-
"lucide-react": "^0.543.0",
28-
"next": "^15.5.2",
26+
"fumadocs-ui": "15.7.11",
27+
"lucide-react": "^0.544.0",
28+
"next": "^15.5.3",
2929
"next-view-transitions": "^0.3.4",
3030
"react": "^19.1.1",
3131
"react-dom": "^19.1.1",
@@ -34,7 +34,7 @@
3434
"twoslash": "^0.3.4"
3535
},
3636
"devDependencies": {
37-
"@effect/language-service": "^0.38.4",
37+
"@effect/language-service": "^0.39.0",
3838
"@eslint-react/eslint-plugin": "workspace:*",
3939
"@eslint-react/kit": "workspace:*",
4040
"@eslint-react/shared": "workspace:*",

examples/next/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010
"start": "next start"
1111
},
1212
"dependencies": {
13-
"next": "^15.5.2",
13+
"next": "^15.5.3",
1414
"react": "^19.1.1",
1515
"react-dom": "^19.1.1"
1616
},
1717
"devDependencies": {
1818
"@eslint-react/eslint-plugin": "workspace:*",
1919
"@eslint/config-inspector": "^1.2.0",
2020
"@eslint/js": "^9.35.0",
21-
"@next/eslint-plugin-next": "^15.5.2",
21+
"@next/eslint-plugin-next": "^15.5.3",
2222
"@tsconfig/next": "^2.0.3",
2323
"@tsconfig/node22": "^22.0.2",
2424
"@tsconfig/strictest": "^2.0.5",

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@
5252
"update:website": "tsx ./scripts/update-website.ts"
5353
},
5454
"devDependencies": {
55-
"@effect/language-service": "^0.38.4",
56-
"@effect/platform": "^0.90.8",
55+
"@effect/language-service": "^0.39.0",
56+
"@effect/platform": "^0.90.9",
5757
"@effect/platform-node": "^0.96.1",
5858
"@eslint/config-inspector": "^1.2.0",
5959
"@eslint/markdown": "^7.2.0",
@@ -77,7 +77,7 @@
7777
"eslint-plugin-fast-import": "^1.4.1",
7878
"eslint-plugin-vitest": "^0.5.4",
7979
"jiti": "^2.5.1",
80-
"lefthook": "^1.12.4",
80+
"lefthook": "^1.13.0",
8181
"markdownlint": "^0.38.0",
8282
"mdxlint": "^1.0.0",
8383
"publint": "^0.3.12",
@@ -117,8 +117,8 @@
117117
"@types/react-dom": "^19.1.9",
118118
"cross-spawn": "^7.0.6",
119119
"esbuild": "^0.25.9",
120-
"lucide-react": "^0.543.0",
121-
"next": "^15.5.2",
120+
"lucide-react": "^0.544.0",
121+
"next": "^15.5.3",
122122
"react": "^19.1.1",
123123
"react-dom": "^19.1.1",
124124
"ts-api-utils": "^2.1.0",

packages/core/docs/functions/hasNoneOrLooseComponentName.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
# Function: hasNoneOrLooseComponentName()
88

9-
> **hasNoneOrLooseComponentName**(`context`, `fn`): `boolean`
9+
> **hasNoneOrLooseComponentName**(`context`, `fn`): `any`
1010
1111
## Parameters
1212

@@ -20,4 +20,4 @@
2020

2121
## Returns
2222

23-
`boolean`
23+
`any`

packages/core/docs/functions/isComponentName.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
# Function: isComponentName()
88

9-
> **isComponentName**(`name`): `boolean`
9+
> **isComponentName**(`name`): `any`
1010
1111
## Parameters
1212

@@ -16,4 +16,4 @@
1616

1717
## Returns
1818

19-
`boolean`
19+
`any`

packages/core/docs/functions/isComponentNameLoose.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
# Function: isComponentNameLoose()
88

9-
> **isComponentNameLoose**(`name`): `boolean`
9+
> **isComponentNameLoose**(`name`): `any`
1010
1111
## Parameters
1212

@@ -16,4 +16,4 @@
1616

1717
## Returns
1818

19-
`boolean`
19+
`any`

packages/plugins/eslint-plugin-react-x/src/rules/no-missing-context-display-name.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as ER from "@eslint-react/core";
2-
import { LanguagePreference, type RuleContext, type RuleFeature, Selector as SEL } from "@eslint-react/kit";
2+
import { type RuleContext, type RuleFeature, Selector as SEL } from "@eslint-react/kit";
33
import type { TSESTree } from "@typescript-eslint/types";
44
import { AST_NODE_TYPES as T } from "@typescript-eslint/types";
55
import type { RuleListener } from "@typescript-eslint/utils/ts-eslint";
@@ -62,9 +62,6 @@ export function create(context: RuleContext<MessageID, []>): RuleListener {
6262
return ER.isInstanceIdEqual(context, id, object);
6363
});
6464
if (!hasDisplayNameAssignment) {
65-
const semi = LanguagePreference.defaultLanguagePreference.semicolons === "always"
66-
? ";"
67-
: "";
6865
context.report({
6966
messageId: "noMissingContextDisplayName",
7067
node: id,
@@ -81,7 +78,7 @@ export function create(context: RuleContext<MessageID, []>): RuleListener {
8178
"=",
8279
" ",
8380
JSON.stringify(id.name),
84-
semi,
81+
";",
8582
].join(""),
8683
);
8784
},

0 commit comments

Comments
 (0)