Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions examples/react/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# React Example

```jsx
function App({ name }) {
function App({ names }) {
return (
<div>
<p>Hello, {name}!</p>
{names.map(name => <p>Hello, {name}!</p>)}
</div>
);
}
Expand Down Expand Up @@ -39,7 +39,7 @@ $ npm test

```sh
markdown/examples/react/README.md
4:16 error 'name' is missing in props validation react/prop-types
7:32 error Missing 'key' for element when rendering list @eslint-react/no-missing-key

✖ 1 problem (1 error, 0 warnings)
```
8 changes: 4 additions & 4 deletions examples/react/eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@ import { defineConfig } from "eslint/config";
import js from "@eslint/js";
import markdown from "../../src/index.js";
import globals from "globals";
import reactPlugin from "eslint-plugin-react";
import reactPlugin from "@eslint-react/eslint-plugin";

export default defineConfig([
js.configs.recommended,
markdown.configs.processor,
reactPlugin.configs.flat.recommended,
reactPlugin.configs.recommended,
{
settings: {
react: {
version: "16.8.0",
"react-x": {
version: "19.3.0",
},
},
languageOptions: {
Expand Down
6 changes: 3 additions & 3 deletions examples/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"test": "eslint ."
},
"devDependencies": {
"@eslint/js": "^9.39.4",
"eslint": "^9.39.4",
"eslint-plugin-react": "^7.37.5",
"@eslint-react/eslint-plugin": "^5.30.6",
"@eslint/js": "^10.0.1",
"eslint": "^10.15.0",
"globals": "^13.24.0"
}
}
2 changes: 1 addition & 1 deletion examples/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"eslint": "^10.8.1",
"eslint": "^10.15.0",
"typescript": "^6.0.3",
"typescript-eslint": "^8.59.1"
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
"@types/unist": "^3.0.3",
"c8": "^12.0.0",
"dedent": "^1.7.1",
"eslint": "^10.8.1",
"eslint": "^10.15.0",
"eslint-v9": "npm:eslint@9.x",
"eslint-config-eslint": "^14.0.0",
"eslint-plugin-eslint-plugin": "^7.3.2",
Expand Down
Loading