-
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { | ||
name, | ||
rule, | ||
} from "#eslint-plugin-functional/rules/functional-parameters"; | ||
import { testRule } from "#eslint-plugin-functional/tests/helpers/testers"; | ||
|
||
import es3Invalid from "../es3/invalid"; | ||
import es3Valid from "../es3/valid"; | ||
|
||
import invalid from "./invalid"; | ||
import valid from "./valid"; | ||
|
||
const tests = { | ||
valid: [...es3Valid, ...valid], | ||
invalid: [...es3Invalid, ...invalid], | ||
}; | ||
|
||
const tester = testRule(name, rule); | ||
|
||
tester.typescript(tests); | ||
tester.esLatest(tests); | ||
tester.es2015(tests); |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { | ||
name, | ||
rule, | ||
} from "#eslint-plugin-functional/rules/functional-parameters"; | ||
import { testRule } from "#eslint-plugin-functional/tests/helpers/testers"; | ||
|
||
import invalid from "./invalid"; | ||
import valid from "./valid"; | ||
|
||
const tests = { | ||
valid, | ||
invalid, | ||
}; | ||
|
||
const tester = testRule(name, rule); | ||
|
||
tester.typescript(tests); | ||
tester.esLatest(tests); | ||
tester.es3(tests); |
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
import { name, rule } from "#eslint-plugin-functional/rules/immutable-data"; | ||
import { testRule } from "#eslint-plugin-functional/tests/helpers/testers"; | ||
|
||
import tsTests from "./ts"; | ||
import invalid from "./invalid"; | ||
import valid from "./valid"; | ||
|
||
const tests = { | ||
valid, | ||
invalid, | ||
}; | ||
|
||
const tester = testRule(name, rule); | ||
|
||
tester.typescript(tsTests); | ||
tester.typescript(tests); |
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { name, rule } from "#eslint-plugin-functional/rules/immutable-data"; | ||
import { testRule } from "#eslint-plugin-functional/tests/helpers/testers"; | ||
|
||
import invalid from "./invalid"; | ||
import valid from "./valid"; | ||
|
||
const tests = { | ||
valid, | ||
invalid, | ||
}; | ||
|
||
const tester = testRule(name, rule); | ||
|
||
tester.typescript(tests); |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
import { name, rule } from "#eslint-plugin-functional/rules/no-classes"; | ||
import { testRule } from "#eslint-plugin-functional/tests/helpers/testers"; | ||
|
||
import es6Tests from "./es2015"; | ||
import invalid from "./invalid"; | ||
import valid from "./valid"; | ||
|
||
const tester = testRule(name, rule); | ||
|
||
tester.typescript(es6Tests); | ||
const tests = { | ||
valid, | ||
invalid, | ||
}; | ||
|
||
tester.esLatest(es6Tests); | ||
const tester = testRule(name, rule); | ||
|
||
tester.es2015(es6Tests); | ||
tester.typescript(tests); | ||
tester.esLatest(tests); | ||
tester.es2015(tests); |
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
import { name, rule } from "#eslint-plugin-functional/rules/no-let"; | ||
import { testRule } from "#eslint-plugin-functional/tests/helpers/testers"; | ||
|
||
import es6Tests from "./es2015"; | ||
import invalid from "./invalid"; | ||
import valid from "./valid"; | ||
|
||
const tester = testRule(name, rule); | ||
|
||
tester.typescript(es6Tests); | ||
const tests = { | ||
valid, | ||
invalid, | ||
}; | ||
|
||
tester.esLatest(es6Tests); | ||
const tester = testRule(name, rule); | ||
|
||
tester.es2015(es6Tests); | ||
tester.typescript(tests); | ||
tester.esLatest(tests); | ||
tester.es2015(tests); |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { name, rule } from "#eslint-plugin-functional/rules/no-loop-statements"; | ||
import { testRule } from "#eslint-plugin-functional/tests/helpers/testers"; | ||
|
||
import es3Invalid from "../es3/invalid"; | ||
import es3Valid from "../es3/valid"; | ||
|
||
import invalid from "./invalid"; | ||
import valid from "./valid"; | ||
|
||
const tests = { | ||
valid: [...es3Valid, ...valid], | ||
invalid: [...es3Invalid, ...invalid], | ||
}; | ||
|
||
const tester = testRule(name, rule); | ||
|
||
tester.typescript(tests); | ||
tester.esLatest(tests); | ||
tester.es2015(tests); |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { name, rule } from "#eslint-plugin-functional/rules/no-loop-statements"; | ||
import { testRule } from "#eslint-plugin-functional/tests/helpers/testers"; | ||
|
||
import invalid from "./invalid"; | ||
import valid from "./valid"; | ||
|
||
const tests = { | ||
valid, | ||
invalid, | ||
}; | ||
|
||
const tester = testRule(name, rule); | ||
|
||
tester.typescript(tests); | ||
tester.esLatest(tests); | ||
tester.es2015(tests); |
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
import { name, rule } from "#eslint-plugin-functional/rules/no-mixed-types"; | ||
import { testRule } from "#eslint-plugin-functional/tests/helpers/testers"; | ||
|
||
import tsTests from "./ts"; | ||
import invalid from "./invalid"; | ||
import valid from "./valid"; | ||
|
||
const tests = { | ||
valid, | ||
invalid, | ||
}; | ||
|
||
const tester = testRule(name, rule); | ||
|
||
tester.typescript(tsTests); | ||
tester.typescript(tests); |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
import { name, rule } from "#eslint-plugin-functional/rules/no-promise-reject"; | ||
import { testRule } from "#eslint-plugin-functional/tests/helpers/testers"; | ||
|
||
import es6Tests from "./es2015"; | ||
import invalid from "./invalid"; | ||
import valid from "./valid"; | ||
|
||
const tester = testRule(name, rule); | ||
|
||
tester.typescript(es6Tests); | ||
const tests = { | ||
valid, | ||
invalid, | ||
}; | ||
|
||
tester.esLatest(es6Tests); | ||
const tester = testRule(name, rule); | ||
|
||
tester.es2015(es6Tests); | ||
tester.typescript(tests); | ||
tester.esLatest(tests); | ||
tester.es2015(tests); |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
import { name, rule } from "#eslint-plugin-functional/rules/no-return-void"; | ||
import { testRule } from "#eslint-plugin-functional/tests/helpers/testers"; | ||
|
||
import tsTests from "./ts"; | ||
import invalid from "./invalid"; | ||
import valid from "./valid"; | ||
|
||
const tests = { | ||
valid, | ||
invalid, | ||
}; | ||
|
||
const tester = testRule(name, rule); | ||
|
||
tester.typescript(tsTests); | ||
tester.typescript(tests); |
This file was deleted.