.eslintrc.js
module.exports = {
env: {
browser: true,
es6: true,
"jest/globals": true,
},
extends: [
'airbnb',
'plugin:react/recommended',
"plugin:prettier/recommended",
"plugin:jest/recommended",
],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
__PATH_PREFIX__: true,
},
parser: 'babel-eslint',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 2018,
sourceType: 'module',
allowImportExportEverywhere: true
},
plugins: [
'react',
"prettier",
"jest",
],
rules: {
"react/jsx-filename-extension": "off",
"react/jsx-props-no-spreading": "off",
"react/destructuring-assignment": "off",
"react/jsx-curly-newline": "off",
"react/jsx-one-expression-per-line": "off"
},
};