https://github.com/gnodi/eslint-config
Lint your code like gnodi !
https://github.com/gnodi/eslint-config
eslint eslint-config gnodi lint
Last synced: about 2 months ago
JSON representation
Lint your code like gnodi !
- Host: GitHub
- URL: https://github.com/gnodi/eslint-config
- Owner: gnodi
- License: other
- Created: 2016-11-06T10:29:11.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-04-19T23:20:32.000Z (about 5 years ago)
- Last Synced: 2025-03-13T00:57:03.825Z (3 months ago)
- Topics: eslint, eslint-config, gnodi, lint
- Language: JavaScript
- Homepage:
- Size: 65.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @gnodi/eslint-config
[Node.js] Lint your code like gnodi!
[![Build][build-image]][build-url]
[![Version][version-image]][version-url]
[![Downloads][downloads-image]][downloads-url]
[![Dependencies][dependencies-image]][dependencies-url]
[![Dev Dependencies][dev-dependencies-image]][dev-dependencies-url]## Installation
Run the following command to add the package to your dev dependencies:
```sh
$ npm install --save-dev @gnodi/eslint-config
```## Use
### Use gnodi lint helper script
Add the following line to your `package.json`:
```json
...
"scripts": {
...
"lint": "gnodi-lint"
}
...
```Then, you can immediately run the lint:
```sh
$ npm run lint
```### Add custom checked glob
By default, only js files from directories `.`, `bin`, `config`, `lib`, `src` and `test` are processed.
You can add your own custom directories/files/globs passing it as arguments to your command `gnodi-lint`:
```json
...
"scripts": {
...
"lint": "gnodi-lint dist/bundle.js build/**/*.js"
}
...
```### Override with custom rules
You can override some [rules](http://eslint.org/docs/rules/) with your own ones just using a standard `.eslintrc`:
```json
{
"extends": "@gnodi",
"rules": {
"comma-dangle": ["error", "always"]
}
}
```### LICENSE
[MIT](LICENSE)
[build-image]: https://img.shields.io/travis/gnodi/eslint-config.svg?style=flat
[build-url]: https://travis-ci.org/gnodi/eslint-config
[version-image]: https://img.shields.io/npm/v/@gnodi/eslint-config.svg?style=flat
[version-url]: https://npmjs.org/package/@gnodi/eslint-config
[downloads-image]: https://img.shields.io/npm/dm/@gnodi/eslint-config.svg?style=flat
[downloads-url]: https://npmjs.org/package/@gnodi/eslint-config
[dependencies-image]:https://david-dm.org/gnodi/eslint-config.svg
[dependencies-url]:https://david-dm.org/gnodi/eslint-config
[dev-dependencies-image]:https://david-dm.org/gnodi/eslint-config/dev-status.svg
[dev-dependencies-url]:https://david-dm.org/gnodi/eslint-config#info=devDependencies