A tool for people curious about the React Server Components protocol
rscexplorer.dev/
rsc
react
1// @ts-check
2
3import { defineConfig } from "eslint/config";
4import reactHooks from "eslint-plugin-react-hooks";
5import tseslint from "typescript-eslint";
6import { noMixedClassPrefixes } from "./eslint/no-mixed-class-prefixes.js";
7
8export default defineConfig([
9 {
10 ignores: ["node_modules/", "dist/"],
11 },
12 {
13 files: ["**/*.ts", "**/*.js", "**/*.tsx", "**/*.jsx"],
14 },
15 reactHooks.configs.flat.recommended,
16 tseslint.configs.base,
17 {
18 files: ["**/*.tsx", "**/*.jsx"],
19 plugins: {
20 local: {
21 rules: {
22 "no-mixed-class-prefixes": noMixedClassPrefixes,
23 },
24 },
25 },
26 rules: {
27 "local/no-mixed-class-prefixes": "error",
28 },
29 },
30]);