Last active
April 2, 2021 16:07
-
-
Save brygrill/c8f3a4ddcb651cf581cf632f8f1a2948 to your computer and use it in GitHub Desktop.
ESLint config with TypeScript, AirBnb, Jest, and Prettier
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
module.exports = { | |
extends: [ | |
'airbnb-typescript', | |
'airbnb/hooks', | |
'plugin:@typescript-eslint/recommended', | |
'plugin:jest/recommended', | |
'plugin:prettier/recommended' | |
], | |
plugins: ['react', '@typescript-eslint', 'jest'], | |
env: { | |
browser: true, | |
es6: true, | |
jest: true, | |
}, | |
globals: { | |
Atomics: 'readonly', | |
SharedArrayBuffer: 'readonly', | |
}, | |
parser: '@typescript-eslint/parser', | |
parserOptions: { | |
ecmaFeatures: { | |
jsx: true, | |
}, | |
ecmaVersion: 2018, | |
sourceType: 'module', | |
project: './tsconfig.json', | |
}, | |
rules: { | |
'linebreak-style': 'off', | |
'prettier/prettier': [ | |
'error', | |
{ | |
endOfLine: 'auto', | |
}, | |
], | |
}, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment