Skip to content

Instantly share code, notes, and snippets.

@diego3g
Created March 26, 2019 18:37
Show Gist options
  • Save diego3g/f3320ae4e99b959a25db3c9dda1e34c8 to your computer and use it in GitHub Desktop.
Save diego3g/f3320ae4e99b959a25db3c9dda1e34c8 to your computer and use it in GitHub Desktop.

Revisions

  1. diego3g created this gist Mar 26, 2019.
    44 changes: 44 additions & 0 deletions .eslintrc.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,44 @@
    module.exports = {
    env: {
    browser: true,
    es6: true,
    jest: true,
    },
    extends: [
    'react-app',
    'airbnb',
    'plugin:@typescript-eslint/recommended',
    'prettier/@typescript-eslint',
    ],
    globals: {
    Atomics: 'readonly',
    SharedArrayBuffer: 'readonly',
    },
    parserOptions: {
    ecmaFeatures: {
    jsx: true,
    },
    ecmaVersion: 2018,
    sourceType: 'module',
    },
    plugins: ['react', 'import', 'jsx-a11y'],
    rules: {
    'react/jsx-filename-extension': [
    'error',
    {
    extensions: ['.tsx'],
    },
    ],
    'import/prefer-default-export': 'off',
    '@typescript-eslint/explicit-function-return-type': 'off',
    '@typescript-eslint/explicit-member-accessibility': 'off'
    },
    settings: {
    'import/parsers': {
    '@typescript-eslint/parser': ['.ts', '.tsx'],
    },
    'import/resolver': {
    typescript: {},
    },
    },
    };