forked from standard/standard
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoptions.js
More file actions
26 lines (22 loc) · 778 Bytes
/
options.js
File metadata and controls
26 lines (22 loc) · 778 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
var eslint = require('eslint')
var extend = require('xtend')
var pkg = require('./package.json')
var configStandard = require('eslint-config-standard')
var configStandardJsx = require('eslint-config-standard-jsx')
var config = extend(configStandard)
config.plugins.push.apply(config.plugins, configStandardJsx.plugins)
Object.keys(configStandardJsx.rules).forEach(function (key) {
config.rules[key] = configStandardJsx.rules[key]
})
module.exports = {
eslint: eslint,
cmd: 'standard',
version: pkg.version,
homepage: pkg.homepage,
bugs: pkg.bugs.url,
tagline: 'Use JavaScript Standard Style',
eslintConfig: {
baseConfig: config
},
formatter: 'Formatting is no longer included with standard. Install it separately: "npm install -g standard-format"'
}