Skip to content

Instantly share code, notes, and snippets.

@Tatarotus
Created July 21, 2020 18:17
Show Gist options
  • Save Tatarotus/a1c18e15b786a650377e5119b2cca88c to your computer and use it in GitHub Desktop.
Save Tatarotus/a1c18e15b786a650377e5119b2cca88c to your computer and use it in GitHub Desktop.
eslint.js
module.exports = {
env: {
browser: true,
es6: true,
},
extends: ['plugin:react/recommended', 'airbnb'],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 2018,
sourceType: 'module',
},
plugins: ['react', 'jsx-a11y', 'import'],
rules: {
'react/jsx-filename-extension': [
1,
{
extensions: ['.js', '.jsx'],
},
],
'import/prefer-defalt-export': off,
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment