Skip to content

Instantly share code, notes, and snippets.

@brygrill
Last active April 2, 2021 16:07
Show Gist options
  • Save brygrill/c8f3a4ddcb651cf581cf632f8f1a2948 to your computer and use it in GitHub Desktop.
Save brygrill/c8f3a4ddcb651cf581cf632f8f1a2948 to your computer and use it in GitHub Desktop.
ESLint config with TypeScript, AirBnb, Jest, and Prettier
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