Skip to content

Commit

Permalink
Match files at arbitrary depths
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanwilsonperkin committed Jul 23, 2024
1 parent 248ab1e commit 8981d6b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/eslint-plugin/lib/config/prettier.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module.exports = [
},
},
{
files: ['*.ts', '*.tsx'],
files: ['**/*.ts', '**/*.tsx'],
rules: {
'@typescript-eslint/quotes': 'off',
'@typescript-eslint/brace-style': 'off',
Expand Down
4 changes: 2 additions & 2 deletions packages/eslint-plugin/lib/config/react.js
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ module.exports = [
},
},
{
files: ['*.ts', '*.tsx'],
files: ['**/*.ts', '**/*.tsx'],
rules: {
// Disable JS specific rules
'react/jsx-filename-extension': 'off',
Expand All @@ -337,7 +337,7 @@ module.exports = [
},
},
{
files: ['*.test.*'],
files: ['**/*.test.*'],
rules: {
'shopify/jsx-no-hardcoded-content': 'off',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const typescriptEslintParser = require('@typescript-eslint/parser');

module.exports = [
{
files: ['*.ts', '*.tsx'],
files: ['**/*.ts', '**/*.tsx'],

languageOptions: {
parser: typescriptEslintParser,
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin/lib/config/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = [
...shopifyEsnextConfig,
// ...typescriptEslintPlugin.configs.typescript,
{
files: ['*.ts', '*.tsx'],
files: ['**/*.ts', '**/*.tsx'],

plugins: {
'@typescript-eslint': typescriptEslintPlugin,
Expand Down

0 comments on commit 8981d6b

Please sign in to comment.