Created
May 17, 2024 11:38
-
-
Save wojtekmaj/dd1b2552b5d7aea230d6b6dc14a10055 to your computer and use it in GitHub Desktop.
Quick eslint-plugin-react-compiler check
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yarn add eslint-plugin-react-compiler --dev | |
node -e "const fs = require('fs'); const eslintrcJson = JSON.parse(fs.readFileSync('.eslintrc.json')); eslintrcJson.plugins = eslintrcJson.plugins || []; eslintrcJson.plugins.push('react-compiler'); eslintrcJson.rules = eslintrcJson.rules || {}; eslintrcJson.rules['react-compiler/react-compiler'] = 'error'; fs.writeFileSync('.eslintrc.json', JSON.stringify(eslintrcJson, null, 2));" | |
yarn lint |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment