diff --git a/.eslintrc.js b/.eslintrc.js index 56bfd59b..90982440 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,7 +1,18 @@ module.exports = { + root: true, extends: ['expo', 'prettier'], plugins: ['prettier'], + overrides: [ + { + files: ['**/*.ts', '**/*.tsx'], + parserOptions: { + project: './tsconfig.json', + tsconfigRootDir: __dirname, + }, + }, + ], rules: { + '@typescript-eslint/no-floating-promises': 'error', 'prettier/prettier': 'error', }, }; diff --git a/example/.eslintrc.js b/example/.eslintrc.js index c29cf6d9..88db4d1e 100644 --- a/example/.eslintrc.js +++ b/example/.eslintrc.js @@ -2,6 +2,15 @@ module.exports = { root: true, extends: ['expo', 'prettier'], plugins: ['prettier'], + overrides: [ + { + files: ['**/*.ts', '**/*.tsx'], + parserOptions: { + project: './tsconfig.json', + tsconfigRootDir: __dirname, + }, + }, + ], env: { node: true, }, @@ -13,6 +22,7 @@ module.exports = { }, }, rules: { + '@typescript-eslint/no-floating-promises': 'error', 'prettier/prettier': 'error', }, }; diff --git a/integration_test/.eslintrc.js b/integration_test/.eslintrc.js index efc4745b..01eb4451 100644 --- a/integration_test/.eslintrc.js +++ b/integration_test/.eslintrc.js @@ -2,10 +2,20 @@ module.exports = { root: true, extends: ['expo', 'prettier'], plugins: ['prettier'], + overrides: [ + { + files: ['**/*.ts', '**/*.tsx'], + parserOptions: { + project: './tsconfig.json', + tsconfigRootDir: __dirname, + }, + }, + ], env: { node: true, }, rules: { + '@typescript-eslint/no-floating-promises': 'error', 'prettier/prettier': 'error', }, };