Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maximilianschmitt/eslint-config-max
Standard-based ESLint config for myself.
https://github.com/maximilianschmitt/eslint-config-max
Last synced: about 1 month ago
JSON representation
Standard-based ESLint config for myself.
- Host: GitHub
- URL: https://github.com/maximilianschmitt/eslint-config-max
- Owner: maximilianschmitt
- License: mit
- Created: 2016-09-17T01:00:53.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-09-17T01:27:27.000Z (over 8 years ago)
- Last Synced: 2024-10-15T04:44:58.527Z (3 months ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/eslint-config-max
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# eslint-config-max
Based on [Standard](https://github.com/feross/standard), but enforcing
additional rules to further consistency.:## Usage
```bash
# install `eslint` and `eslint-config-max`:
npm i eslint eslint-config-max# create your `.eslintrc` file
echo "{
\"extends\": \"max\"
}" > .eslintrc
```## Rules added to Standard
### `object-curly-spacing`
```javascript
// ok
exports.ok = { a: '1' }// not ok
exports.notOk = {a: '1'}
```### `max-len`
Lines may not be longer than 80 characters.
```javascript
// requires are ignored. ok:
require('../test/../test/../test/../test/../test/../test/../test/../test/../test')// not ok
myModule.doSomeCalculationThatTakesALongTimeToExplain('it', 'also', 'takes', 'arguments')
```### `require-path-exists`
```javascript
// not ok
require()
// not ok
require('some-module-that-doesn-exist')
// not ok
require('two', 'arguments')
```### `mocha/no-exclusive-tests`
You're not allowed to use `describe.only` etc.
### `mocha/no-mocha-arrows`
You're not allowed to pass arrow functions to `describe`, `it`, etc.