Skip to content

Commit

Permalink
feat: print hint message when running in editor
Browse files Browse the repository at this point in the history
  • Loading branch information
kelsos committed Sep 19, 2024
1 parent 0731ff7 commit 8dd471a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ export function rotki(
componentExts = [],
cypress: enableCypress,
gitignore: enableGitignore = true,
isInEditor = isInEditorEnv(),
regexp: enableRegexp = true,
rotki: enableRotki,
storybook: enableStorybook,
Expand All @@ -76,6 +75,15 @@ export function rotki(
vueI18n: enableVueI18n,
} = options;

let isInEditor = options.isInEditor;
if (isInEditor === null) {
isInEditor = isInEditorEnv();
if (isInEditor) {
// eslint-disable-next-line no-console
console.log('[@rotki/eslint-config] Detected running in editor, some rules are disabled.');
}
}

const stylisticOptions = options.stylistic === false
? false
: typeof options.stylistic === 'object'
Expand Down

0 comments on commit 8dd471a

Please sign in to comment.