Skip to content

Instantly share code, notes, and snippets.

@jucemar-dimon
Created November 17, 2020 21:24
Show Gist options
  • Save jucemar-dimon/938623101ad66f03a7e8e638d8221879 to your computer and use it in GitHub Desktop.
Save jucemar-dimon/938623101ad66f03a7e8e638d8221879 to your computer and use it in GitHub Desktop.
module.exports = {
env: {
es2020: true,
},
extends: ['plugin:react/recommended', 'airbnb', 'prettier', 'prettier/react'],
parser: 'babel-eslint',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 11,
sourceType: 'module',
},
plugins: ['react', 'prettier', 'react-hooks', 'jsx-a11y', 'import'],
rules: {
'prettier/prettier': 'error',
'react/jsx-filename-extension': [
'warn',
{
extensions: ['.jsx', '.js'],
},
],
'import/prefer-default-export': 'off',
'no-param-reassign': 'off',
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment