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

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


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

Last synced: 4 months ago
JSON representation

Awesome Lists containing this project

README

          

# eslint-config-chasevida

[![Version npm](https://img.shields.io/npm/v/eslint-config-chasevida.svg?style=flat-square)](https://www.npmjs.com/package/eslint-config-chasevida)
[![Dependencies](https://img.shields.io/david/peer/chasevida/eslint-config-chasevida.svg?style=flat-square)](https://david-dm.org/chasevida/eslint-config-chasevida)

A pretty common ESLint config setup that can be shared around. To get this working you simply install this via npm then add the followingn to your ESLint config file.

**Note:** This ESLint config is essentially a fork from [eslint-config-hapi](https://github.com/continuationlabs/eslint-config-hapi). Those devs are ace so best stick with theirs, this is just for a few styling differences that my team prefers.

## Install

```
npm install --save-dev eslint-config-chasevida
```

## Use

In your `.eslintrc.js` file add the following:

```
{
"extends": "chasevida"
}
```

## Contributing

If you are submitting a PR to add or change an existing rule please make sure you run `$ npm run docs` to re-generate the `README.md` with the updated rule list. As a rule of thumb it should be one commit per rule for easy reference for changes.

**SemVer?**

Changes that are breaking e.g. upgrading from a warning to an exception should be a major bump. Downgrading to a warning should be a minor bump. Anything else related to a warning (say changing some config) could just be a patch I guess. Suggestions welcome on better ways to version this... could use a date based system¿?

## Rules

1. array-bracket-spacing: [
2,
"never"
]
1. arrow-parens: [
2,
"always"
]
1. arrow-spacing: [
2,
{
"before": true,
"after": true
}
]
1. brace-style: [
2,
"stroustrup"
]
1. callback-return: [
2,
[
"callback",
"next"
]
]
1. camelcase: 2
1. chasevida/spaces-in-parens: [
1,
"never",
{
"exceptions": [
"!"
]
}
]
1. comma-dangle: [
2,
"never"
]
1. computed-property-spacing: [
2,
"never"
]
1. consistent-return: 2
1. consistent-this: [
2,
"self"
]
1. constructor-super: 2
1. curly: [
2,
"all"
]
1. dot-notation: 1
1. eol-last: 1
1. eqeqeq: 2
1. func-style: [
2,
"expression"
]
1. generator-star-spacing: [
2,
{
"before": true,
"after": false
}
]
1. global-strict: 0
1. handle-callback-err: [
2,
"err"
]
1. hapi/hapi-capitalize-modules: 1
1. hapi/no-arrowception: 1
1. indent: [
2,
4
]
1. key-spacing: 2
1. keyword-spacing: 2
1. max-depth: [
2,
5
]
1. max-nested-callbacks: [
2,
3
]
1. max-params: [
1,
4
]
1. new-cap: 2
1. new-parens: 2
1. newline-after-var: 0
1. no-array-constructor: 2
1. no-class-assign: 2
1. no-console: 1
1. no-constant-condition: 2
1. no-else-return: 2
1. no-empty: 2
1. no-eq-null: 2
1. no-eval: 2
1. no-ex-assign: 2
1. no-extend-native: [
2,
{
"exceptions": [
"Object"
]
}
]
1. no-lonely-if: 2
1. no-loop-func: 2
1. no-mixed-requires: 2
1. no-mixed-spaces-and-tabs: 2
1. no-multi-spaces: [
2
]
1. no-native-reassign: 2
1. no-new-object: 2
1. no-new-require: 2
1. no-new-wrappers: 2
1. no-path-concat: 2
1. no-process-exit: 2
1. no-redeclare: 2
1. no-regex-spaces: 2
1. no-return-assign: 2
1. no-shadow: 2
1. no-sparse-arrays: 2
1. no-this-before-super: 2
1. no-trailing-spaces: 1
1. no-undef: 2
1. no-underscore-dangle: 2
1. no-unreachable: 2
1. no-unused-expressions: 2
1. no-unused-vars: 1
1. no-use-before-define: [
1,
"nofunc"
]
1. no-useless-call: 1
1. no-with: 2
1. object-curly-spacing: [
2,
"never"
]
1. object-shorthand: 1
1. one-var: 0
1. quotes: [
2,
"single",
"avoid-escape"
]
1. radix: 2
1. semi: [
1,
"never"
]
1. sort-vars: 0
1. space-before-function-paren: [
2,
"always"
]
1. space-infix-ops: 2
1. space-unary-ops: [
1,
{
"words": true,
"nonwords": true
}
]
1. vars-on-top: 0
1. wrap-iife: [
2,
"inside"
]
1. yoda: [
1,
"never"
]