Skip to content

Commit

Permalink
Update unicorn rules
Browse files Browse the repository at this point in the history
Add new rules. Remove no-process-exit since I always use it when I need
to use it.
  • Loading branch information
novemberborn committed Oct 31, 2017
1 parent 517610e commit 15d5d1e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .eslintrc.js
Expand Up @@ -85,13 +85,19 @@ module.exports = {
'standard/computed-property-even-spacing': 'off',
'standard/object-curly-even-spacing': 'off',
'unicorn/catch-error-name': 'error',
'unicorn/custom-error-definition': 'error',
'unicorn/escape-case': 'error',
'unicorn/explicit-length-check': 'error',
'unicorn/import-index': 'error',
'unicorn/new-for-builtins': 'error',
'unicorn/no-abusive-eslint-disable': 'error',
'unicorn/no-array-instanceof': 'error',
'unicorn/no-process-exit': 'error',
'unicorn/no-fn-reference-in-iterator': 'error',
'unicorn/no-hex-escape': 'error',
'unicorn/number-literal-case': 'error',
'unicorn/prefer-starts-ends-with': 'error',
'unicorn/prefer-type-error': 'error',
'unicorn/regex-shorthand': 'error',
'unicorn/throw-new-error': 'error'
}
}
2 changes: 1 addition & 1 deletion test/api.js
Expand Up @@ -2,7 +2,7 @@ import {resolve as resolvePath} from 'path'

import test from 'ava'

import linter from '../'
import linter from '..'

const resolveFixture = name => resolvePath(__dirname, 'fixtures', name)

Expand Down

0 comments on commit 15d5d1e

Please sign in to comment.