Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/system76/eslint-config

System76 standard eslint linting configuration
https://github.com/system76/eslint-config

Last synced: about 2 months ago
JSON representation

System76 standard eslint linting configuration

Awesome Lists containing this project

README

        


@system76/eslint-config


System76 eslint configuration








npm


travis-ci


renovate


standard

---

This is the System76 eslint configuration. It is based off of
[standard](https://github.com/feross/standard), but includes additional rules
for common libraries and tools we use here at System76. This includes
[ava](https://github.com/avajs/ava), [vue](https://github.com/vuejs/vue), and
some others.

## Using

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

Then extend this in your own eslint configuration file:

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

Then add these lines to your `package.json` file:

```json
{
"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][semantic] to determine the npm version
and when to release. Please ensure your commit messages follow the [Angular
Commit Message Conventions][acmc].

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

[semantic]: https://github.com/semantic-release/semantic-release
[acmc]: https://github.com/angular/angular.js/blob/master/DEVELOPERS.md#-git-commit-guidelines
[travis]: https://travis-ci.org/system76/eslint-config