Created
September 18, 2019 23:05
-
-
Save tiagonevestia/66e75333246f0cf02999aff295e5b426 to your computer and use it in GitHub Desktop.
.eslintrc.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yarn add eslint-config-airbnb eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-react eslint-config-prettier eslint-plugin-prettier prettier @typescript-eslint/eslint-plugin @typescript-eslint/parser -D | |
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: {}, | |
}, | |
}, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment