https://github.com/cellular/eslint-config-cellular
ESLint config used at CELLULAR
https://github.com/cellular/eslint-config-cellular
Last synced: about 1 year ago
JSON representation
ESLint config used at CELLULAR
- Host: GitHub
- URL: https://github.com/cellular/eslint-config-cellular
- Owner: cellular
- License: mit
- Created: 2018-02-08T15:29:28.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-11-17T17:05:43.000Z (over 5 years ago)
- Last Synced: 2025-02-15T11:19:46.075Z (over 1 year ago)
- Language: JavaScript
- Size: 430 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# eslint-config-cellular
[](https://travis-ci.org/cellular/eslint-config-cellular)
[](https://greenkeeper.io/)
[](http://npm.im/eslint-config-cellular)
ESLint config used at [CELLULAR](https://www.cellular.de).
## Usage
Install the conventions by running:
```
npm install --save-dev eslint eslint-config-cellular
```
Then add the extends to your `.eslintrc`:
```json
{
"extends": "cellular"
}
```
## Rules
This config uses `eslint:recommended` and the default rules of the following plugins:
* [import](https://www.npmjs.com/package/eslint-plugin-import)
* [filenames](https://www.npmjs.com/package/eslint-plugin-filenames)
* [prettier](https://www.npmjs.com/package/eslint-plugin-prettier)
* [react](https://www.npmjs.com/package/eslint-plugin-react) (if react or preact is a dependency)
* [flowtype](https://www.npmjs.com/package/eslint-plugin-flowtype) (if flow-bin is a devDependency)
Disabled Rules:
* [no-debugger](https://eslint.org/docs/rules/no-debugger) (unless `NODE_ENV` is set to `production`)
* [no-console](https://eslint.org/docs/rules/no-console) use it responsibly!
* [react/no-unescaped-entities](https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-unescaped-entities.md) makes things more readable
* [react/jsx-no-target-blank](https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-no-target-blank.md) we (usually) only link to trusted sites
* [react/prop-types](https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/prop-types.md) (if the project uses flowtype)
## Prettier
If the project does not contain any prettier configuration, the following settings are used:
```js
{
singleQuote: true,
trailingComma: 'es5'
}
```
# License
MIT