Skip to content

Commit

Permalink
adds react-compiler eslint; set to warn (#301)
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamlangford authored Nov 7, 2024
1 parent 46ce3a3 commit bc2e0aa
Show file tree
Hide file tree
Showing 3 changed files with 202 additions and 186 deletions.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const config = {
browser: true,
},
ignorePatterns: [".idea", "dist", "**/__mocks__/**"],
plugins: ["filenames", "jsx-a11y", "@shopify"],
plugins: ["filenames", "jsx-a11y", "@shopify", "react-compiler"],
extends: [
"xo", // Full config: https://github.com/xojs/eslint-config-xo/blob/main/index.js
"./vendors/xo-plugins-config.js", // Vendored from xojs/xo package, it must be here as a baseline
Expand Down Expand Up @@ -50,6 +50,8 @@ const config = {
},
],

"react-compiler/react-compiler": "warn",

// Customize some rules
quotes: ["error", "double", { avoidEscape: true }], // Matches Prettier, but also replaces backticks

Expand Down
Loading

0 comments on commit bc2e0aa

Please sign in to comment.