Update ESLint configuration to include React and Prettier plugins

This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-05-02 18:42:46 -03:00
commit 8eef545acc

View file

@ -1,8 +1,22 @@
{ {
"extends": ["eslint:recommended", "plugin:node/recommended"], "extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:prettier/recommended",
"standard"
],
"plugins": ["react"],
"parserOptions": { "parserOptions": {
"ecmaVersion": 2018 "ecmaVersion": 2018
}, },
"env": {
"browser": true
},
"settings": {
"react": {
"version": "detect"
}
},
"rules": { "rules": {
"no-console": "warn", "no-console": "warn",
"no-self-assign": "warn", "no-self-assign": "warn",
@ -16,6 +30,7 @@
"no-redeclare": "error", "no-redeclare": "error",
"no-empty": "error", "no-empty": "error",
"no-await-in-loop": "error", "no-await-in-loop": "error",
"react/react-in-jsx-scope": 0,
"node/exports-style": ["error", "module.exports"], "node/exports-style": ["error", "module.exports"],
"node/file-extension-in-import": ["error", "always"], "node/file-extension-in-import": ["error", "always"],
"node/prefer-global/buffer": ["error", "always"], "node/prefer-global/buffer": ["error", "always"],