Created
November 8, 2023 16:32
-
-
Save Thiago-Mota-Santos/60ec2ba0c88d2ef00b9d8b9e590b1cf7 to your computer and use it in GitHub Desktop.
.eslintrc.js
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 = { | |
"env": { | |
"browser": true, | |
"es2021": true | |
}, | |
"extends": [ | |
"standard-with-typescript", | |
"plugin:react/recommended" | |
], | |
"overrides": [ | |
{ | |
"env": { | |
"node": true | |
}, | |
"files": [ | |
".eslintrc.{js,cjs}" | |
], | |
"parserOptions": { | |
"sourceType": "script" | |
} | |
} | |
], | |
"parserOptions": { | |
"ecmaVersion": "latest", | |
"sourceType": "module" | |
}, | |
"plugins": [ | |
"react", | |
"prettier" | |
], | |
"rules": { | |
"prettier/prettier": [ | |
"error", | |
{ | |
"printWidth": 80, | |
"tabWidth": 2, | |
"singleQuote": true, | |
"trailingComma": "all", | |
"arrowParens": "always", | |
"semi": false | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment