This is a collection of Arcanist extensions we use at Geekie.
The most convenient approach is to add this repository as a submodule of your project so it can be shared by everyone who works on the code, and use the same version of the linters and engines.
$ git submodule add https://github.com/geekie/arc-extensions geekie-arc-extensions
$ git submodule update --init
In your .arcconfig
, enable the extension:
{
"load": ["geekie-arc-extensions"]
}
Instead of reporting every error found like most linters do, this will already suggest the whole fixed (i.e. output of eslint --fix
) as a single "autofix" error. Rules that can't be fixed are reported.
This is the best approach if you also use eslint-plugin-prettier, because fixing each rule separately will leave the code unformatted in the end.
Example .arclint
configuration:
{
"type": "eslint",
"include": "(\\.jsx?)$"
}
This engine will only run tests related to the changed files in the current diff, but also supports arc unit --everything
to run all tests.
In .arcconfig
:
{
"unit.engine": "JestTestEngine"
}