Skip to content

Instantly share code, notes, and snippets.

@LucasSouzaa
Forked from ohenrique/.eslintrc.js
Created January 13, 2020 02:29
Show Gist options
  • Select an option

  • Save LucasSouzaa/e758dc03bf9b712dce03182c249d4d49 to your computer and use it in GitHub Desktop.

Select an option

Save LucasSouzaa/e758dc03bf9b712dce03182c249d4d49 to your computer and use it in GitHub Desktop.
module.exports = {
extends: ['airbnb', 'prettier', 'prettier/react'],
parser: 'babel-eslint',
env: {
jest: true,
jasmine: true
},
plugins: ['detox', 'prettier', 'react-hooks'],
rules: {
'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
'no-use-before-define': 'off',
'react/jsx-filename-extension': 'off',
'react/jsx-one-expression-per-line': 'off',
'no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
'react/prop-types': 'off',
'comma-dangle': 'off',
'prettier/prettier': ['error'],
'no-console': ['error', { allow: ['tron'] }],
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'warn',
semi: [0, 'never']
},
globals: {
fetch: false,
__DEV__: true
},
settings: {
'import/resolver': {
'babel-plugin-root-import': {
'rootPathSuffix': 'src'
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment