Skip to content

Commit

Permalink
feat: include plugin by default, close #117 (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin authored and vilchik-elena committed Nov 5, 2019
1 parent 598710b commit 604172c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ const sonarjsRules: [string, Linter.RuleLevel][] = [

const sonarjsRuleModules: any = {};

const configs: { recommended: Linter.Config } = {
recommended: { rules: {} },
const configs: { recommended: Linter.Config & { plugins: string[] } } = {
recommended: { plugins: ["sonarjs"], rules: {} },
};

sonarjsRules.forEach(rule => (sonarjsRuleModules[rule[0]] = require(`./rules/${rule[0]}`)));
Expand Down

0 comments on commit 604172c

Please sign in to comment.