Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/laget-se/eslint-config-lagetse
JavaScript linting rules for laget.se
https://github.com/laget-se/eslint-config-lagetse
npm
Last synced: 22 days ago
JSON representation
JavaScript linting rules for laget.se
- Host: GitHub
- URL: https://github.com/laget-se/eslint-config-lagetse
- Owner: laget-se
- License: apache-2.0
- Created: 2016-04-12T09:39:42.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-03-09T17:08:49.000Z (almost 2 years ago)
- Last Synced: 2024-08-08T19:42:18.138Z (5 months ago)
- Topics: npm
- Language: JavaScript
- Homepage:
- Size: 41 KB
- Stars: 0
- Watchers: 8
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# eslint-config-lagetse
JavaScript linting rules for laget.se.
Extends [`eslint-config-airbnb`](https://github.com/airbnb/javascript/tree/master/packages/eslint-config-airbnb), which in turn makes use of [`eslint-plugin-react`](https://github.com/yannickcr/eslint-plugin-react) and [`eslint-plugin-jsx-a11y`](https://github.com/evcohen/eslint-plugin-jsx-a11y).
To view a full list of all the rules being applied, run:
```
npm run lint:ls
```### Setup and usage
Install the config:
```
npm i -D eslint-config-lagetse
```Add a `.eslintrc` to the project root:
```json
{
"extends": "lagetse"
}
```Now go linting!
```json
// package.json
{
"scripts": {
"lint:js": "eslint --ext .js --ext .jsx path/to/src/dir"
}
}
``````js
// Using gulp
import eslint from 'gulp-eslint';gulp.task('lint:js', () => {
gulp.src(['path/to/**/*.js', 'path/to/**/*.jsx'])
.pipe(eslint());
});
```### Type-time linting in editors
#### Sublime
https://medium.com/@dan_abramov/lint-like-it-s-2015-6987d44c5b48#.vrv9pvsul