env: {
browser: true,
es6: true,
},
extends: ['plugin:react/recommended', 'airbnb', 'prettier', 'prettier/react'],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
parser: 'babel-eslint',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 2018,
sourceType: 'module',
},
plugins: ['react', 'react-hooks', 'prettier'],
rules: {
'prettier/prettier': 'error',
'react/jsx-filename-extension': ['warn', { extensions: ['.jsx', '.js'] }],
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'warn',
'no-underscore-dangle': 'off',
'react/prop-types': 'off',
'jsx-a11y/label-has-associated-control': 'off',
},
};
"singleQuote": true,
"trailingComma": "es5"
}```
#### Open Settings JSON
1. CTRL + SHIFT + P
2. insert in file
```"javascript.updateImportsOnFileMove.enabled": "always", "editor.formatOnSave": true,
"prettier.singleQuote": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true, "source.organizeImports": true
},```