Closed the21st closed 1 year ago
@the21st How about making use of ESLint's overrides
:
rules: {
'filename-rules/match': ['error', { '.ts': 'camelCase' }]
},
overrides: [
{
files: ['*.styles.ts'],
rules: {
'filename-rules/match': ["error", 'PascalCase']
}
}
]
I defined this rule for my repo:
Actual result:
Expected result:
MyComponent
should be checked to conform toPascalCase
, which it does.