Rename JSX files with proper .jsx extension (#23733)
				
					
				
			This commit is contained in:
		@@ -43,7 +43,7 @@ module.exports = {
 | 
				
			|||||||
      version: 'detect',
 | 
					      version: 'detect',
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    'import/extensions': [
 | 
					    'import/extensions': [
 | 
				
			||||||
      '.js',
 | 
					      '.js', '.jsx',
 | 
				
			||||||
    ],
 | 
					    ],
 | 
				
			||||||
    'import/ignore': [
 | 
					    'import/ignore': [
 | 
				
			||||||
      'node_modules',
 | 
					      'node_modules',
 | 
				
			||||||
@@ -52,6 +52,7 @@ module.exports = {
 | 
				
			|||||||
    'import/resolver': {
 | 
					    'import/resolver': {
 | 
				
			||||||
      node: {
 | 
					      node: {
 | 
				
			||||||
        paths: ['app/javascript'],
 | 
					        paths: ['app/javascript'],
 | 
				
			||||||
 | 
					        extensions: ['.js', '.jsx'],
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
@@ -111,6 +112,7 @@ module.exports = {
 | 
				
			|||||||
    semi: 'error',
 | 
					    semi: 'error',
 | 
				
			||||||
    'valid-typeof': 'error',
 | 
					    'valid-typeof': 'error',
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    'react/jsx-filename-extension': ['error', { 'allow': 'as-needed' }],
 | 
				
			||||||
    'react/jsx-boolean-value': 'error',
 | 
					    'react/jsx-boolean-value': 'error',
 | 
				
			||||||
    'react/jsx-closing-bracket-location': ['error', 'line-aligned'],
 | 
					    'react/jsx-closing-bracket-location': ['error', 'line-aligned'],
 | 
				
			||||||
    'react/jsx-curly-spacing': 'error',
 | 
					    'react/jsx-curly-spacing': 'error',
 | 
				
			||||||
@@ -185,6 +187,7 @@ module.exports = {
 | 
				
			|||||||
      'always',
 | 
					      'always',
 | 
				
			||||||
      {
 | 
					      {
 | 
				
			||||||
        js: 'never',
 | 
					        js: 'never',
 | 
				
			||||||
 | 
					        jsx: 'never',
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
    ],
 | 
					    ],
 | 
				
			||||||
    'import/newline-after-import': 'error',
 | 
					    'import/newline-after-import': 'error',
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										2
									
								
								.github/workflows/lint-js.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/lint-js.yml
									
									
									
									
										vendored
									
									
								
							@@ -10,6 +10,7 @@ on:
 | 
				
			|||||||
      - '.prettier*'
 | 
					      - '.prettier*'
 | 
				
			||||||
      - '.eslint*'
 | 
					      - '.eslint*'
 | 
				
			||||||
      - '**/*.js'
 | 
					      - '**/*.js'
 | 
				
			||||||
 | 
					      - '**/*.jsx'
 | 
				
			||||||
      - '.github/workflows/lint-js.yml'
 | 
					      - '.github/workflows/lint-js.yml'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  pull_request:
 | 
					  pull_request:
 | 
				
			||||||
@@ -20,6 +21,7 @@ on:
 | 
				
			|||||||
      - '.prettier*'
 | 
					      - '.prettier*'
 | 
				
			||||||
      - '.eslint*'
 | 
					      - '.eslint*'
 | 
				
			||||||
      - '**/*.js'
 | 
					      - '**/*.js'
 | 
				
			||||||
 | 
					      - '**/*.jsx'
 | 
				
			||||||
      - '.github/workflows/lint-js.yml'
 | 
					      - '.github/workflows/lint-js.yml'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
jobs:
 | 
					jobs:
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										2
									
								
								.github/workflows/test-js.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/test-js.yml
									
									
									
									
										vendored
									
									
								
							@@ -8,6 +8,7 @@ on:
 | 
				
			|||||||
      - 'yarn.lock'
 | 
					      - 'yarn.lock'
 | 
				
			||||||
      - '.nvmrc'
 | 
					      - '.nvmrc'
 | 
				
			||||||
      - '**/*.js'
 | 
					      - '**/*.js'
 | 
				
			||||||
 | 
					      - '**/*.jsx'
 | 
				
			||||||
      - '**/*.snap'
 | 
					      - '**/*.snap'
 | 
				
			||||||
      - '.github/workflows/test-js.yml'
 | 
					      - '.github/workflows/test-js.yml'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -17,6 +18,7 @@ on:
 | 
				
			|||||||
      - 'yarn.lock'
 | 
					      - 'yarn.lock'
 | 
				
			||||||
      - '.nvmrc'
 | 
					      - '.nvmrc'
 | 
				
			||||||
      - '**/*.js'
 | 
					      - '**/*.js'
 | 
				
			||||||
 | 
					      - '**/*.jsx'
 | 
				
			||||||
      - '**/*.snap'
 | 
					      - '**/*.snap'
 | 
				
			||||||
      - '.github/workflows/test-js.yml'
 | 
					      - '.github/workflows/test-js.yml'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
Some files were not shown because too many files have changed in this diff Show More
		Reference in New Issue
	
	Block a user