forked from wearerequired/lint-action
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
58 lines (54 loc) · 1.62 KB
/
index.js
File metadata and controls
58 lines (54 loc) · 1.62 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
const Autopep8 = require("./autopep8");
const Black = require("./black");
const ClangFormat = require("./clang-format");
const Clippy = require("./clippy");
const DotnetFormat = require("./dotnet-format");
const Erblint = require("./erblint");
const ESLint = require("./eslint");
const Flake8 = require("./flake8");
const Gofmt = require("./gofmt");
const Golint = require("./golint");
const Mypy = require("./mypy");
const Oitnb = require("./oitnb");
const PHPCodeSniffer = require("./php-codesniffer");
const Prettier = require("./prettier");
const Pylint = require("./pylint");
const RuboCop = require("./rubocop");
const RustFmt = require("./rustfmt");
const Stylelint = require("./stylelint");
const SwiftFormatLockwood = require("./swift-format-lockwood");
const SwiftFormatOfficial = require("./swift-format-official");
const SwiftLint = require("./swiftlint");
const TSC = require("./tsc");
const XO = require("./xo");
const linters = {
// Linters
clippy: Clippy,
erblint: Erblint,
eslint: ESLint,
flake8: Flake8,
golint: Golint,
mypy: Mypy,
php_codesniffer: PHPCodeSniffer,
pylint: Pylint,
rubocop: RuboCop,
stylelint: Stylelint,
swiftlint: SwiftLint,
xo: XO,
tsc: TSC,
// Formatters (should be run after linters)
autopep8: Autopep8,
black: Black,
clang_format: ClangFormat,
dotnet_format: DotnetFormat,
gofmt: Gofmt,
oitnb: Oitnb,
rustfmt: RustFmt,
prettier: Prettier,
swift_format_lockwood: SwiftFormatLockwood,
swift_format_official: SwiftFormatOfficial,
// Alias of `swift_format_lockwood` (for backward compatibility)
// TODO: Remove alias in v2
swiftformat: SwiftFormatLockwood,
};
module.exports = linters;