Skip to content

Commit

Permalink
v1.1.2 disable multiline-ternary & tweak no-extra-parens
Browse files Browse the repository at this point in the history
  • Loading branch information
beschoenen committed Feb 13, 2020
1 parent 2177aae commit fc536c7
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 19 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mapcreator/eslint-config",
"version": "1.1.1",
"version": "1.1.2",
"description": "Mapcreator eslint configs",
"main": "index.js",
"repository": "[email protected]:MapcreatorIO/eslint-config.git",
Expand Down
18 changes: 3 additions & 15 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,32 +1,20 @@
# MapCreator eslint config
# Mapcreator eslint config

This repo contains the eslint configs used at MapCreator.
This repo contains the eslint configs used at Mapcreator.

## Available configs

- es6
- vue
- promise
- node

All configs are combined for vue projects in the root.

## Usage

For projects using vue

```js
module.exports = {
extends: '@mapcreator',
};
```

For projects using vue-cli 3

```js
module.exports = {
extends: [
'plugin:vue/base',
'@mapcreator',
],
};
```
6 changes: 5 additions & 1 deletion rules/es6/possibleErrors.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ module.exports = {
'no-console': prod('off', 'warn'),
'no-debugger': prod('off'),
'no-dupe-else-if': 'error',
'no-extra-parens': [prod(), 'all', { nestedBinaryExpressions: false, enforceForArrowConditionals: false }],
'no-extra-parens': [prod(), 'all', {
nestedBinaryExpressions: false,
enforceForArrowConditionals: false,
enforceForNewInMemberExpressions: false,
}],
'no-import-assign': 'error',
'no-misleading-character-class': 'error',
'no-prototype-builtins': 'off',
Expand Down
1 change: 0 additions & 1 deletion rules/es6/stylisticIssues.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ module.exports = {
'max-lines-per-function': 'warn',
'max-nested-callbacks': [prod(), 5],
'max-params': [prod(), 5],
'multiline-ternary': [prod(), 'always-multiline'],
'new-cap': 'error',
'new-parens': 'error',
'no-array-constructor': 'error',
Expand Down

0 comments on commit fc536c7

Please sign in to comment.