arc-eslint

ESlint for arcanist/phabricator (extension)

Usage no npm install needed!

<script type="module">
  import arcEslint from 'https://cdn.skypack.dev/arc-eslint';
</script>

README

arc-eslint

ES-lint linter for arcanist & phabricator

Install & configuration

  1. Install the package via npm:
npm install arc-eslint eslint

Sample .arcconfig

{
    "project_id": "YourProjectName",
    "load" : [
        "./node_modules/arc-eslint"
    ]
}

Sample .arclint

{
    "linters": {
        "js-files": {
            "type": "eslint",
            "include": "(^src/app/.*\\.js(x)$)",
            "exclude": "(^build/.*\\.js$)",
            "bin": "./node_modules/.bin/eslint"
        }
    }
}

Custom config for arcanist (other then IDE, for instance)

{
    "linters": {
        "js-files": {
            "type": "eslint",
            "include": "(^src/app/.*\\.js(x)$)",
            "exclude": "(^build/.*\\.js$)",
            "bin": "./node_modules/.bin/eslint",
            "eslint.config": "./.eslintrc.strict.json"
        }
    }
}