mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Only allow jsx in jsx/tsx files
This commit is contained in:
parent
459fc0bbe7
commit
23eede4d2f
4 changed files with 52 additions and 49 deletions
|
@ -64,7 +64,9 @@ module.exports = {
|
|||
'space-before-blocks': ['error'],
|
||||
'space-infix-ops': 'error',
|
||||
'yoda': 'error',
|
||||
'no-sequences': ['error', { 'allowInParentheses': false }]
|
||||
'no-sequences': ['error', { 'allowInParentheses': false }],
|
||||
|
||||
'react/jsx-filename-extension': ['error', { 'extensions': ['.jsx', '.tsx'] }]
|
||||
},
|
||||
settings: {
|
||||
react: {
|
||||
|
@ -180,6 +182,7 @@ module.exports = {
|
|||
{
|
||||
files: [
|
||||
'./src/**/*.js',
|
||||
'./src/**/*.jsx',
|
||||
'./src/**/*.ts'
|
||||
],
|
||||
parser: '@babel/eslint-parser',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue