linter
linter copied to clipboard
a GitHub App that lints and fixes code in Pull Requests
Linter
a GitHub App built with probot that lints and fixes code in Pull Requests.
Usage
- Install the bot on the intended repositories. The plugin requires the following Permissions and Events:
- Repository Contents: Read & Write
- [x] check the box for Push events
- Optionally, you can add a
.github/linter.ymlfile that contains the following optionally editable fields:
# Configuration for linter - https://github.com/probot/linter
# a list of files the linter will NOT be applied to
exclude:
- index.js
- config.js
# Options to be passed into the javascript standard linter
# More documentation on what is acceptable here can be found in the standard docs here: https://github.com/standard/standard#standardlinttexttext-opts-callback
globals: [] # custom global variables to declare
plugins: [] # custom eslint plugins
envs: [] # custom eslint environment
Setup
# Install dependencies
npm install
# Run the bot
npm start
See docs/deploy.md if you would like to run your own instance of this plugin.