Skip to content

Instantly share code, notes, and snippets.

@Ramielson-Edgar
Forked from nemrosim/.eslintrc.js
Created June 2, 2021 07:44
Show Gist options
  • Save Ramielson-Edgar/ad366418887d192e0a279caaf082d8ca to your computer and use it in GitHub Desktop.
Save Ramielson-Edgar/ad366418887d192e0a279caaf082d8ca to your computer and use it in GitHub Desktop.
module.exports = {
env: {
browser: true,
es6: true,
},
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:react-hooks/recommended',
'plugin:prettier/recommended',
'plugin:jsx-a11y/strict',
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 2018,
sourceType: 'module',
},
plugins: ['react', 'jsx-a11y', '@typescript-eslint'],
rules: {
'react-hooks/exhaustive-deps': 'error',
'no-var': 'error',
'brace-style': 'error',
'prefer-template': 'error',
radix: 'error',
'space-before-blocks': 'error',
'import/prefer-default-export': 'off',
},
overrides: [
{
files: [
'**/*.test.js',
'**/*.test.jsx',
'**/*.test.tsx',
'**/*.spec.js',
'**/*.spec.jsx',
'**/*.spec.tsx',
],
env: {
jest: true,
},
},
],
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment