Skip to content

Commit

Permalink
package: add support for object-spread and bump deps
Browse files Browse the repository at this point in the history
Semver: major
  • Loading branch information
evanlucas committed Oct 12, 2018
1 parent f22d56d commit 69344e7
Show file tree
Hide file tree
Showing 6 changed files with 1,635 additions and 1,930 deletions.
52 changes: 26 additions & 26 deletions bin/cmd.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,33 +6,33 @@ const help = require('help')()
const nopt = require('nopt')
const opts = require('../options')
const knownOpts = { help: Boolean
, version: Boolean
, global: [String]
, plugin: [String]
, env: [String]
, fix: Boolean
, 'formatter': [
'checkstyle'
, 'compact'
, 'html'
, 'json'
, 'junit'
, 'stylish'
, 'table'
, 'tap'
, 'unix'
, 'visualstudio'
]
}
, version: Boolean
, global: [String]
, plugin: [String]
, env: [String]
, fix: Boolean
, 'formatter': [
'checkstyle'
, 'compact'
, 'html'
, 'json'
, 'junit'
, 'stylish'
, 'table'
, 'tap'
, 'unix'
, 'visualstudio'
]
}
const shortHand = { h: ['--help']
, H: ['--help']
, v: ['--version']
, f: ['--formatter']
, g: ['--global']
, p: ['--plugin']
, e: ['--env']
, F: ['--fix']
}
, H: ['--help']
, v: ['--version']
, f: ['--formatter']
, g: ['--global']
, p: ['--plugin']
, e: ['--env']
, F: ['--fix']
}
const parsed = nopt(knownOpts, shortHand)

if (parsed.help) {
Expand Down
2 changes: 1 addition & 1 deletion eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"parserOptions": {
"ecmaVersion": 8
"ecmaVersion": 2018
},
"env": {
"es6": true,
Expand Down
2 changes: 0 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@ const Linter = require('standard-engine').linter
const opts = require('./options')

const linter = new Linter(opts)
// console.log(linter.eslint.linter)
// linter.eslint.linter.rules.define('indent', require('./rules/indent'))
module.exports = linter
Loading

0 comments on commit 69344e7

Please sign in to comment.