Skip to content

Commit 4b61b27

Browse files
committed
[workflow/test] Updated ts config file
1 parent f6ff367 commit 4b61b27

3 files changed

Lines changed: 13 additions & 19 deletions

File tree

.eslintrc.js

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module.exports = {
22
root: true,
33
extends: ['@react-native', 'plugin:testing-library/react'],
4-
ignorePatterns: ['.eslintrc.js', '**/*.test.tsx', '**/*.test.ts', '**/*.config.js'],
4+
ignorePatterns: ['.eslintrc.js', '**/*.config.js', '**/*.setup.ts'],
55
env: { jest: true },
66
parserOptions: {
77
sourceType: 'module',
@@ -10,11 +10,16 @@ module.exports = {
1010
project: './tsconfig.json',
1111
},
1212
plugins: ['unused-imports'],
13-
rules: {
14-
'object-curly-spacing': ['error', 'always'],
15-
'unused-imports/no-unused-imports': 'error',
16-
complexity: ['error', 8],
17-
'import/extensions': 0,
18-
'react/jsx-filename-extension': [2, { extensions: ['.tsx'] }],
19-
},
13+
overrides: [
14+
{
15+
files: ['src/**/*.{ts,tsx,js,jsx}'],
16+
rules: {
17+
'object-curly-spacing': ['error', 'always'],
18+
'unused-imports/no-unused-imports': 'error',
19+
complexity: ['error', 8],
20+
'import/extensions': 0,
21+
'react/jsx-filename-extension': [2, { extensions: ['.tsx'] }],
22+
},
23+
},
24+
],
2025
};

Component.tsx

Lines changed: 0 additions & 10 deletions
This file was deleted.

tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,5 @@
55
"react": ["./node_modules/@types/react"]
66
}
77
},
8-
"include": ["src/**/*"],
98
"exclude": ["node_modules", "**/*.test.ts", "**/*.test.tsx", "**/__tests__/**"]
109
}

0 commit comments

Comments
 (0)