Skip to content

Commit 230bc7b

Browse files
committed
fix: Fix tests to consider plugin rules from ESLint
Behaviour was added during PR #25 but the tests were not running and so were not updated
1 parent f6873c4 commit 230bc7b

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

tools/eslintConfigCreator.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,6 @@ func CreateEslintConfig(configuration ToolConfiguration) string {
3333
rule = strings.ReplaceAll(rule, "_", "/")
3434
rule = strings.ReplaceAll(rule, tempstring, "_")
3535

36-
/*if strings.Contains(rule, "/") {
37-
continue
38-
}*/
39-
4036
parametersString := ""
4137

4238
for _, parameter := range patternConfiguration.ParamenterConfigurations {

tools/eslintConfigCreator_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ func TestCreateEslintConfigUnnamedAndNamedParam(t *testing.T) {
116116
];`)
117117
}
118118

119-
func TestCreateEslintConfigSkipPlugins(t *testing.T) {
119+
func TestCreateEslintConfigSupportPlugins(t *testing.T) {
120120
testConfig(t,
121121
ToolConfiguration{
122122
PatternsConfiguration: []PatternConfiguration{
@@ -128,6 +128,7 @@ func TestCreateEslintConfigSkipPlugins(t *testing.T) {
128128
`export default [
129129
{
130130
rules: {
131+
"plugin/consistent-return": "error",
131132
}
132133
}
133134
];`)

0 commit comments

Comments
 (0)