Skip to content

Commit

Permalink
fix: πŸ› bump eslint-plugin-react-refresh to v0.4.14
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmy-guzman committed Oct 31, 2024
1 parent 9790b2f commit cb8d93a
Show file tree
Hide file tree
Showing 3 changed files with 89 additions and 15 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"eslint-plugin-node-import": "^1.0.4",
"eslint-plugin-react": "^7.34.1",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "0.4.6",
"eslint-plugin-react-refresh": "0.4.14",
"eslint-plugin-simple-import-sort": "^12.1.0",
"eslint-plugin-testing-library": "^6.2.0",
"globals": "^15.11.0",
Expand Down
22 changes: 8 additions & 14 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

80 changes: 80 additions & 0 deletions src/configs/__snapshots__/react.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -5946,6 +5946,45 @@ exports[`reactConfig > should create config w/ @tanstack/query rules 1`] = `
},
},
"react-refresh": {
"default": {
"rules": {
"only-export-components": {
"create": [Function],
"defaultOptions": [],
"meta": {
"messages": {
"anonymousExport": "Fast refresh can't handle anonymous components. Add a name to your export.",
"exportAll": "This rule can't verify that \`export *\` only exports components.",
"localComponents": "Fast refresh only works when a file only exports components. Move your component(s) to a separate file.",
"namedExport": "Fast refresh only works when a file only exports components. Use a new file to share constants or functions between components.",
"noExport": "Fast refresh only works when a file has exports. Move your component(s) to a separate file.",
"reactContext": "Fast refresh only works when a file only exports components. Move your React context(s) to a separate file.",
},
"schema": [
{
"additionalProperties": false,
"properties": {
"allowConstantExport": {
"type": "boolean",
},
"allowExportNames": {
"items": {
"type": "string",
},
"type": "array",
},
"checkJS": {
"type": "boolean",
},
},
"type": "object",
},
],
"type": "problem",
},
},
},
},
"rules": {
"only-export-components": {
"create": [Function],
Expand All @@ -5957,6 +5996,7 @@ exports[`reactConfig > should create config w/ @tanstack/query rules 1`] = `
"localComponents": "Fast refresh only works when a file only exports components. Move your component(s) to a separate file.",
"namedExport": "Fast refresh only works when a file only exports components. Use a new file to share constants or functions between components.",
"noExport": "Fast refresh only works when a file has exports. Move your component(s) to a separate file.",
"reactContext": "Fast refresh only works when a file only exports components. Move your React context(s) to a separate file.",
},
"schema": [
{
Expand Down Expand Up @@ -12315,6 +12355,45 @@ exports[`reactConfig > should create default config 1`] = `
},
},
"react-refresh": {
"default": {
"rules": {
"only-export-components": {
"create": [Function],
"defaultOptions": [],
"meta": {
"messages": {
"anonymousExport": "Fast refresh can't handle anonymous components. Add a name to your export.",
"exportAll": "This rule can't verify that \`export *\` only exports components.",
"localComponents": "Fast refresh only works when a file only exports components. Move your component(s) to a separate file.",
"namedExport": "Fast refresh only works when a file only exports components. Use a new file to share constants or functions between components.",
"noExport": "Fast refresh only works when a file has exports. Move your component(s) to a separate file.",
"reactContext": "Fast refresh only works when a file only exports components. Move your React context(s) to a separate file.",
},
"schema": [
{
"additionalProperties": false,
"properties": {
"allowConstantExport": {
"type": "boolean",
},
"allowExportNames": {
"items": {
"type": "string",
},
"type": "array",
},
"checkJS": {
"type": "boolean",
},
},
"type": "object",
},
],
"type": "problem",
},
},
},
},
"rules": {
"only-export-components": {
"create": [Function],
Expand All @@ -12326,6 +12405,7 @@ exports[`reactConfig > should create default config 1`] = `
"localComponents": "Fast refresh only works when a file only exports components. Move your component(s) to a separate file.",
"namedExport": "Fast refresh only works when a file only exports components. Use a new file to share constants or functions between components.",
"noExport": "Fast refresh only works when a file has exports. Move your component(s) to a separate file.",
"reactContext": "Fast refresh only works when a file only exports components. Move your React context(s) to a separate file.",
},
"schema": [
{
Expand Down

0 comments on commit cb8d93a

Please sign in to comment.