@system76/eslint-config

3.1.0 • Public • Published

@system76/eslint-config

System76 eslint configuration



npm travis-ci renovate standard


This is the System76 eslint configuration. It is based off of standard, but includes additional rules for common libraries and tools we use here at System76. This includes ava, vue, and some others.

Using

npm install --save-dev @system76/eslint-config

Then extend this in your own eslint configuration file:

module.exports = {
  extends: [
    '@system76'
  ]
}

Then add these lines to your package.json file:

{
  "scripts": {
    "lint:js": "eslint --ext js,vue --ignore-path .gitignore .",
    "lint:js:fix": "eslint --fix --ext js,vue --ignore-path .gitignore ."
  }
}

And finally, you can lint with npm run lint:js.

Development

There's not much to it. Aside from the few test files we check, the only file you need to concern yourself with is the eslintrc.json file. If the tests and linting pass, you are good for a PR!

Deployment

This repository uses semantic-release to determine the npm version and when to release. Please ensure your commit messages follow the Angular Commit Message Conventions.

Past that, just push to master and travis will take care of the rest.

Package Sidebar

Install

npm i @system76/eslint-config

Weekly Downloads

15

Version

3.1.0

License

MIT

Unpacked Size

18.4 kB

Total Files

10

Last publish

Collaborators

  • system76