Skip to content
This repository was archived by the owner on May 4, 2023. It is now read-only.

Commit 21d81d8

Browse files
feat: add rulesets to JS codiga file and enable suggestion for JS/TS
1 parent 2523a37 commit 21d81d8

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

src/constants.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,9 @@ rulesets:
110110

111111
export const DEFAULT_JAVASCRIPT_RULESET_CONFIG = `
112112
rulesets:
113-
- javascript-templates
113+
- jsx-a11y
114+
- jsx-react
115+
- react-best-practices
114116
`.trim();
115117

116118
export const ROSIE_SUPPORTED_LANGUAGES = [

src/rosie/rosieUtils.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,6 @@ export async function getWorkspaceRosieLanguage(): Promise<Language | null> {
4545
if (!language) {
4646
return null;
4747
} else {
48-
/**
49-
* TODO - remove this check when we have more JS
50-
* rulesets so that we can suggest something good
51-
*/
52-
if (language !== Language.Python) return null;
5348
return language;
5449
}
5550
}

0 commit comments

Comments
 (0)