Skip to content

Instantly share code, notes, and snippets.

@Aigeruth
Created January 24, 2020 07:44
Show Gist options
  • Save Aigeruth/6149e81b0d5d315de64afab85774f9de to your computer and use it in GitHub Desktop.
Save Aigeruth/6149e81b0d5d315de64afab85774f9de to your computer and use it in GitHub Desktop.
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