File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
packages/language-detector Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77
88## [ Unreleased]
99
10+ ### Changed
11+
12+ - Updated language detector to remove Javascript as fallback default language
13+
1014## [ 2.0.3]
1115
1216### Added
Original file line number Diff line number Diff line change @@ -48,8 +48,8 @@ const DEFAULT_CONFIGS = {
4848 */
4949export function detectLanguages ( githubLanguages ) {
5050 if ( ! githubLanguages || typeof githubLanguages !== 'object' ) {
51- console . warn ( 'Invalid GitHub languages data, defaulting to javascript ' ) ;
52- return [ 'javascript' ] ;
51+ console . warn ( 'Invalid GitHub languages data' ) ;
52+ return [ ] ;
5353 }
5454
5555 const detectedLanguages = new Set ( ) ;
@@ -64,8 +64,8 @@ export function detectLanguages(githubLanguages) {
6464 const languages = Array . from ( detectedLanguages ) ;
6565
6666 if ( languages . length === 0 ) {
67- console . warn ( 'No supported languages detected, defaulting to javascript ' ) ;
68- return [ 'javascript' ] ;
67+ console . warn ( 'No supported languages detected' ) ;
68+ return [ ] ;
6969 }
7070
7171 return languages ;
You can’t perform that action at this time.
0 commit comments