forked from wearerequired/lint-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
34 lines (31 loc) · 816 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
const Black = require("./black");
const ESLint = require("./eslint");
const Flake8 = require("./flake8");
const Gofmt = require("./gofmt");
const Golint = require("./golint");
const Mypy = require("./mypy");
const Prettier = require("./prettier");
const RuboCop = require("./rubocop");
const Stylelint = require("./stylelint");
const SwiftFormat = require("./swiftformat");
const SwiftLint = require("./swiftlint");
const XO = require("./xo");
const Infer = require("./infer");
const linters = {
// Linters
eslint: ESLint,
infer: Infer,
flake8: Flake8,
golint: Golint,
mypy: Mypy,
rubocop: RuboCop,
stylelint: Stylelint,
swiftlint: SwiftLint,
xo: XO,
// Formatters (should be run after linters)
black: Black,
gofmt: Gofmt,
prettier: Prettier,
swiftformat: SwiftFormat,
};
module.exports = linters;