Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 63d1ae1

Browse files
committed
[Tests] fix linting error caused by updated base config
1 parent 9d91990 commit 63d1ae1

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

packages/eslint-config-airbnb-base/rules/style.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ module.exports = {
113113
body: 1
114114
},
115115
CallExpression: {
116-
'arguments': 1
116+
arguments: 1
117117
},
118118
ArrayExpression: 1,
119119
ObjectExpression: 1,
@@ -344,8 +344,8 @@ module.exports = {
344344
// enforce line breaks between braces
345345
// http://eslint.org/docs/rules/object-curly-newline
346346
'object-curly-newline': ['error', {
347-
ObjectExpression: { minProperties: 3, multiline: true, consistent: true },
348-
ObjectPattern: { minProperties: 3, multiline: true, consistent: true }
347+
ObjectExpression: { minProperties: 4, multiline: true, consistent: true },
348+
ObjectPattern: { minProperties: 4, multiline: true, consistent: true }
349349
}],
350350

351351
// enforce "same line" or "multiple line" on object properties.

packages/eslint-config-airbnb-base/test/test-base.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ fs.readdirSync(path.join(__dirname, '../rules')).forEach((name) => {
1111
files[name] = require(`../rules/${name}`); // eslint-disable-line global-require
1212
});
1313

14-
Object.keys(files).forEach((
14+
Object.keys(files).forEach(( // eslint-disable-line function-paren-newline
1515
name, // trailing function comma is to test parsing
16-
) => {
16+
) => { // eslint-disable-line function-paren-newline
1717
const config = files[name];
1818

1919
test(`${name}: does not reference react`, (t) => {

packages/eslint-config-airbnb/rules/react.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,11 @@ module.exports = {
186186

187187
// Prevent missing props validation in a React component definition
188188
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/prop-types.md
189-
'react/prop-types': ['error', { ignore: [], customValidators: [], skipUndeclared: false }],
189+
'react/prop-types': ['error', {
190+
ignore: [],
191+
customValidators: [],
192+
skipUndeclared: false
193+
}],
190194

191195
// Prevent missing React when using JSX
192196
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/react-in-jsx-scope.md

0 commit comments

Comments
 (0)