Last active
March 14, 2024 22:11
-
-
Save vanessabrazuna/525edd5a4d7794cbb2a11f772d70b6a6 to your computer and use it in GitHub Desktop.
eslint-config
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
Show hidden characters
{ | |
"extends": ["@rocketseat/eslint-config/react"], | |
"plugins": ["simple-import-sort"], | |
"rules": { | |
"simple-import-sort/imports": "error" | |
} | |
} |
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
npm i eslint @rocketseat/eslint-config -D | |
npm i -D prettier-plugin-tailwindcss | |
npm i -D eslint-plugin-simple-import-sort | |
npx eslint --init | |
npm run lint | |
npm run lint --fix | |
npm run lint -- --fix |
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
"scripts": { | |
"lint": "eslint src --ext .ts --fix", | |
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0", | |
}, | |
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
module.exports = { | |
plugins: ['prettier-plugin-tailwindcss'], | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment