module.exports = { root: true, extends: [ 'airbnb', 'airbnb-typescript', 'plugin:@typescript-eslint/recommended', 'plugin:@typescript-eslint/recommended-requiring-type-checking', 'plugin:eslint-comments/recommended', 'plugin:import/recommended', 'plugin:jest/recommended', 'plugin:promise/recommended', 'plugin:unicorn/recommended', 'prettier', ], env: { node: true, browser: true, jest: true, }, parser: '@typescript-eslint/parser', parserOptions: { project: 'tsconfig.json', tsconfigRootDir: __dirname, sourceType: 'module', }, plugins: ['jest', '@typescript-eslint', 'react', 'react-native', 'react-hooks'], rules: { 'import/extensions': [ 'error', 'ignorePackages', { js: 'never', jsx: 'never', ts: 'never', tsx: 'never', }, ], 'arrow-body-style': 'off', 'unicorn/filename-case': 'off', 'unicorn/prevent-abbreviations': 'off', 'semi': ['error', 'never'], 'jest/no-disabled-tests': 'warn', 'jest/no-focused-tests': 'error', 'jest/no-identical-title': 'error', 'jest/prefer-to-have-length': 'warn', 'jest/valid-expect': 'error', 'react/function-component-definition': 'off', 'import/extensions': 'off', 'jest/expect-expect': 'off', 'import/no-unresolved': 'off', 'import/prefer-default-export': 'off', '@typescript-eslint/explicit-function-return-type': 'off', 'max-len': ['error', { comments: 150, code: 150 }], 'no-multiple-empty-lines': ['error', { max: 1, maxEOF: 1, maxBOF: 1 }], 'no-nested-ternary': 'off', 'no-use-before-define': 'off', 'react/function-component-definition': 'off', 'react/jsx-props-no-spreading': 'off', 'semi': ['error', 'never'], 'unicorn/consistent-function-scoping': 'off', 'unicorn/filename-case': 'off', 'unicorn/prevent-abbreviations': 'off', 'react/require-default-props': [ 2, { ignoreFunctionalComponents: true, }, ], }, overrides: [ { files: ['*.js'], rules: { '@typescript-eslint/no-var-requires': 'off', 'unicorn/prefer-module': 'off', }, }, ], settings: { 'import/ignore': ['react-native', 'react-navigation'], }, }