Skip to content

Commit

Permalink
fix(rules): update remaining v2 syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
joshwiens committed Jan 27, 2017
1 parent 1fc3832 commit 71e617a
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion rules/best-practices.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ module.exports = {

// require using Error objects as Promise rejection reasons
// http://eslint.org/docs/rules/prefer-promise-reject-errors
'prefer-promise-reject-errors': ['on', { allowEmptyReject: true }],
'prefer-promise-reject-errors': ['error', { allowEmptyReject: true }],

// enforce the consistent use of the radix argument when using parseInt()
// http://eslint.org/docs/rules/radix
Expand Down
2 changes: 1 addition & 1 deletion rules/es2015.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ module.exports = {

// require destructuring from arrays and/or objects
// http://eslint.org/docs/rules/prefer-destructuring
'prefer-destructuring': ['on', {
'prefer-destructuring': ['error', {
array: true,
object: true,
}, {
Expand Down
4 changes: 2 additions & 2 deletions rules/imports.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ module.exports = {

// disallow namespace imports
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-namespace.md
'import/no-namespace': 'on',
'import/no-namespace': 'error',

// Ensure consistent use of file extension within the import path
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/extensions.md
Expand All @@ -132,7 +132,7 @@ module.exports = {

// Enforce a convention in module import order
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/order.md
'import/order': ['on', {
'import/order': ['error', {
groups: ['builtin', 'external', 'internal', 'parent', 'sibling', 'index'],
'newlines-between': 'never',
}],
Expand Down
6 changes: 3 additions & 3 deletions rules/stylistic-issues.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ module.exports = {

// enforce the consistent use of either function declarations or expressions
// http://eslint.org/docs/rules/func-style
'func-style': ['on', 'expression'],
'func-style': ['error', 'expression'],

// disallow specified identifiers
// http://eslint.org/docs/rules/id-blacklist
Expand Down Expand Up @@ -129,7 +129,7 @@ module.exports = {

// enforce position of line comments
// http://eslint.org/docs/rules/line-comment-position
'line-comment-position': ['on', {
'line-comment-position': ['error', {
position: 'above',
ignorePattern: '',
applyDefaultPatterns: true,
Expand Down Expand Up @@ -190,7 +190,7 @@ module.exports = {

// enforce newlines between operands of ternary expressions
// http://eslint.org/docs/rules/multiline-ternary
'multiline-ternary': ['on', 'never'],
'multiline-ternary': ['error', 'never'],

// require constructor names to begin with a capital letter
// http://eslint.org/docs/rules/new-cap
Expand Down
2 changes: 1 addition & 1 deletion rules/variables.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ module.exports = {

// disallow the use of undefined as an identifier
// http://eslint.org/docs/rules/no-undefined
'no-undefined': 'on',
'no-undefined': 'error',

// disallow unused variables
// http://eslint.org/docs/rules/no-unused-vars
Expand Down

0 comments on commit 71e617a

Please sign in to comment.