Skip to content

Commit

Permalink
Fixing lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
wyze committed Mar 16, 2017
1 parent 8f666bb commit 645d72e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion rules/import.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ module.exports = {
'import/no-duplicates': 'error',
// Forbid the use of extraneous packages
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-extraneous-dependencies.md
'import/no-extraneous-dependencies': [ 'error', { devDependencies: true }],
'import/no-extraneous-dependencies': [ 'error', { devDependencies: true } ],
},
}
6 changes: 3 additions & 3 deletions rules/react.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = {
],
// Enforce or disallow spaces inside of curly braces in JSX attributes
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-curly-spacing.md
'react/jsx-curly-spacing': [ 'error', 'never', { allowMultiline: true }],
'react/jsx-curly-spacing': [ 'error', 'never', { allowMultiline: true } ],
// Enforce or disallow spaces around equal signs in JSX attributes
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-equals-spacing.md
'react/jsx-equals-spacing': [ 'error', 'never' ],
Expand All @@ -28,7 +28,7 @@ module.exports = {
'react/jsx-sort-props': [ 'error', {
callbacksLast: true,
shorthandFirst: true,
}],
} ],
// Validate spacing before closing bracket in JSX
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-space-before-closing.md
'react/jsx-space-before-closing': [ 'error', 'always' ],
Expand All @@ -48,6 +48,6 @@ module.exports = {
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-sort-prop-types.md
'react/sort-prop-types': [ 'error', {
requiredFirst: true,
}],
} ],
},
}
2 changes: 1 addition & 1 deletion rules/style.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = {
'newline-before-return': 'error',
// disallow multiple empty lines and only one newline at the end
// https://github.com/eslint/eslint/blob/master/docs/rules/no-multiple-empty-lines.md
'no-multiple-empty-lines': [ 'error', { max: 2, maxBOF: 0, maxEOF: 1 }],
'no-multiple-empty-lines': [ 'error', { max: 2, maxBOF: 0, maxEOF: 1 } ],
// require or disallow use of semicolons instead of ASI
// I use Babel, it takes care of this for me
semi: [ 'error', 'never' ],
Expand Down

0 comments on commit 645d72e

Please sign in to comment.