eslint-config-xo
Advanced tools
Comparing version 0.20.1 to 0.21.0
@@ -9,3 +9,3 @@ 'use strict'; | ||
'object-shorthand': ['error', 'always'], | ||
'prefer-arrow-callback': 'error', | ||
'prefer-arrow-callback': ['error', {allowNamedFunctions: true}], | ||
'prefer-const': ['error', { | ||
@@ -12,0 +12,0 @@ destructuring: 'all' |
18
index.js
@@ -153,3 +153,3 @@ 'use strict'; | ||
// You can also ignore this rule by wrapping the first word in quotes | ||
ignorePattern: 'pragma|ignore', | ||
ignorePattern: 'pragma|ignore|prettier-ignore', | ||
ignoreInlineComments: true, | ||
@@ -169,10 +169,3 @@ ignoreConsecutiveComments: true | ||
indent: ['error', 'tab', { | ||
SwitchCase: 1, | ||
ignoredNodes: [ | ||
// We ignore this as it requires weird indentation in some cases: | ||
// https://gist.github.com/sindresorhus/282415ce6ca759a63c185f58db7bf2c3 | ||
// TODO: Somebody please open an issue on ESLint about this. | ||
// I'm not going to, as I have wasted to much time on their issue tracker. | ||
'CallExpression' | ||
] | ||
SwitchCase: 1 | ||
}], | ||
@@ -275,4 +268,9 @@ 'jsx-quotes': 'error', | ||
'template-curly-spacing': 'error', | ||
'yield-star-spacing': ['error', 'both'] | ||
'yield-star-spacing': ['error', 'both'], | ||
'valid-jsdoc': ['warn', { | ||
'requireReturn': false, | ||
'requireParamDescription': true, | ||
'requireReturnDescription': true | ||
}] | ||
} | ||
}; |
{ | ||
"name": "eslint-config-xo", | ||
"version": "0.20.1", | ||
"version": "0.21.0", | ||
"description": "ESLint shareable config for XO", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
13525
307