Created
January 24, 2020 07:44
-
-
Save Aigeruth/6149e81b0d5d315de64afab85774f9de to your computer and use it in GitHub Desktop.
This file contains 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 = { | |
env: { | |
browser: true, | |
es6: true, | |
node: true, | |
}, | |
extends: [ | |
'airbnb', | |
'plugin:import/typescript', | |
'plugin:jest/recommended', | |
'prettier/react', | |
'plugin:prettier/recommended', | |
], | |
globals: { | |
Atomics: 'readonly', | |
SharedArrayBuffer: 'readonly', | |
}, | |
parser: '@typescript-eslint/parser', | |
parserOptions: { | |
ecmaFeatures: { | |
jsx: true, | |
}, | |
ecmaVersion: 2018, | |
sourceType: 'module', | |
}, | |
plugins: ['jest', 'prettier', 'react', 'react-hooks', '@typescript-eslint'], | |
rules: { | |
'import/extensions': [ | |
'error', | |
'ignorePackages', | |
{ | |
js: 'never', | |
mjs: 'never', | |
jsx: 'never', | |
ts: 'never', | |
tsx: 'never', | |
}, | |
], | |
'import/no-extraneous-dependencies': [ | |
'error', | |
{ devDependencies: ['**/*.test.ts', '**/*.test.tsx'] }, | |
], | |
'react/jsx-filename-extension': [1, { extensions: ['.jsx', '.tsx'] }], | |
'prettier/prettier': ['error', { singleQuote: true, trailingComma: 'all' }], | |
}, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment