Skip to content

Instantly share code, notes, and snippets.

@anacvignola
Last active November 11, 2019 01:37
Show Gist options
  • Save anacvignola/8dc7e806e1f66b184f6922822d367e93 to your computer and use it in GitHub Desktop.
Save anacvignola/8dc7e806e1f66b184f6922822d367e93 to your computer and use it in GitHub Desktop.
eslintrc.js for ReactJS App
module.exports = {
env: {
browser: true,
es6: true,
},
extends: [
'airbnb',
'prettier',
'prettier/react'
],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
parser: 'babel-eslint',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 2018,
sourceType: 'module',
},
plugins: [
'react',
'prettier'
],
rules: {
'prettier/prettier': 'error',
'react/jsx-filename-extension': [
'warn',
{ extensions : ['.jsx', '.js'] }
],
'import/prefer-default-export': 'off'
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment