Skip to content

Commit

Permalink
Chore: upgrade dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
mysticatea committed Feb 3, 2018
1 parent dc32ab5 commit 2e2d464
Show file tree
Hide file tree
Showing 26 changed files with 376 additions and 374 deletions.
2 changes: 1 addition & 1 deletion lib/index.js
Expand Up @@ -6,6 +6,6 @@
"use strict"

module.exports = {
configs: {recommended: require("./recommended.json")},
configs: { recommended: require("./recommended.json") },
rules: require("./rules.js"),
}
2 changes: 1 addition & 1 deletion lib/rules/exports-style.js
Expand Up @@ -308,7 +308,7 @@ module.exports = {
},
{
type: "object",
properties: {allowBatchAssign: {type: "boolean"}},
properties: { allowBatchAssign: { type: "boolean" } },
additionalProperties: false,
},
],
Expand Down
8 changes: 4 additions & 4 deletions lib/rules/no-deprecated-api.js
Expand Up @@ -465,7 +465,7 @@ function create(context) {
checkVariable(
findVariable(node.local, globalScope),
path,
Object.assign({}, infoMap, {default: infoMap})
Object.assign({}, infoMap, { default: infoMap })
)
break

Expand Down Expand Up @@ -576,19 +576,19 @@ module.exports = {
properties: {
ignoreModuleItems: {
type: "array",
items: {enum: MODULE_ITEMS},
items: { enum: MODULE_ITEMS },
additionalItems: false,
uniqueItems: true,
},
ignoreGlobalItems: {
type: "array",
items: {enum: GLOBAL_ITEMS},
items: { enum: GLOBAL_ITEMS },
additionalItems: false,
uniqueItems: true,
},

// Deprecated since v4.2.0
ignoreIndirectDependencies: {type: "boolean"},
ignoreIndirectDependencies: { type: "boolean" },
},
additionalProperties: false,
},
Expand Down
8 changes: 4 additions & 4 deletions lib/rules/no-hide-core-modules.js
Expand Up @@ -74,7 +74,7 @@ function create(context) {
continue
}

const resolved = resolve.sync(name, {basedir: dirPath})
const resolved = resolve.sync(name, { basedir: dirPath })
const isCore = resolved === name

if (isCore) {
Expand Down Expand Up @@ -117,12 +117,12 @@ module.exports = {
properties: {
allow: {
type: "array",
items: {enum: Array.from(CORE_MODULES)},
items: { enum: Array.from(CORE_MODULES) },
additionalItems: false,
uniqueItems: true,
},
ignoreDirectDependencies: {type: "boolean"},
ignoreIndirectDependencies: {type: "boolean"},
ignoreDirectDependencies: { type: "boolean" },
ignoreIndirectDependencies: { type: "boolean" },
},
additionalProperties: false,
},
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/no-unpublished-bin.js
Expand Up @@ -83,7 +83,7 @@ function create(context) {
message:
"npm ignores '{{name}}'. " +
"Check 'files' field of 'package.json' or '.npmignore'.",
data: {name: relativePath},
data: { name: relativePath },
})
},
}
Expand Down
4 changes: 2 additions & 2 deletions lib/rules/no-unsupported-features.js
Expand Up @@ -31,7 +31,7 @@ const VERSION_MAP = new Map([
])
const VERSION_SCHEMA = {
anyOf: [
{enum: Array.from(VERSION_MAP.keys())},
{ enum: Array.from(VERSION_MAP.keys()) },
{
type: "string",
pattern: "^(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)$",
Expand Down Expand Up @@ -688,7 +688,7 @@ module.exports = {
version: VERSION_SCHEMA,
ignores: {
type: "array",
items: {enum: getIgnoresEnum()},
items: { enum: getIgnoresEnum() },
uniqueItems: true,
},
},
Expand Down
6 changes: 4 additions & 2 deletions lib/rules/process-exit-as-throw.js
Expand Up @@ -63,7 +63,8 @@ function forwardCurrentToHead(analyzer, node) {
analyzer.emitter.emit(
"onCodePathSegmentEnd",
currentSegment,
node)
node
)
}
}
}
Expand All @@ -82,7 +83,8 @@ function forwardCurrentToHead(analyzer, node) {
analyzer.emitter.emit(
"onCodePathSegmentStart",
headSegment,
node)
node
)
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion lib/util/cache.js
Expand Up @@ -62,7 +62,7 @@ module.exports = class Cache {
entry.expire = expire
}
else {
this.map.set(key, {value, expire})
this.map.set(key, { value, expire })
}
}
}
2 changes: 1 addition & 1 deletion lib/util/check-publish.js
Expand Up @@ -74,7 +74,7 @@ module.exports = function checkForPublish(context, filePath, targets) {
node: target.node,
loc: target.node.loc,
message: "\"{{name}}\" is not published.",
data: {name: target.moduleName || target.name},
data: { name: target.moduleName || target.name },
})
}
}
Expand Down
8 changes: 4 additions & 4 deletions lib/util/get-convert-path.js
Expand Up @@ -163,7 +163,7 @@ module.exports.schema = {
patternProperties: {
"^.+$": {
type: "array",
items: {type: "string"},
items: { type: "string" },
minItems: 2,
maxItems: 2,
},
Expand All @@ -177,18 +177,18 @@ module.exports.schema = {
properties: {
include: {
type: "array",
items: {type: "string"},
items: { type: "string" },
minItems: 1,
uniqueItems: true,
},
exclude: {
type: "array",
items: {type: "string"},
items: { type: "string" },
uniqueItems: true,
},
replace: {
type: "array",
items: {type: "string"},
items: { type: "string" },
minItems: 2,
maxItems: 2,
},
Expand Down
2 changes: 1 addition & 1 deletion lib/util/get-import-export-targets.js
Expand Up @@ -41,7 +41,7 @@ module.exports = function getImportExportTargets(context, programNode, includeCo
const basedir = path.dirname(path.resolve(context.getFilename()))
const paths = getResolvePaths(context)
const extensions = getTryExtensions(context)
const options = {basedir, paths, extensions}
const options = { basedir, paths, extensions }

for (const statement of programNode.body) {
// Skip if it's not a module declaration.
Expand Down
2 changes: 1 addition & 1 deletion lib/util/get-npmignore.js
Expand Up @@ -150,7 +150,7 @@ function parseNpmignore(basedir, filesFieldExists) {
* `match` returns `true` if a given file path should be ignored.
*/
module.exports = function getNpmignore(startPath) {
const retv = {match: notAncestorFiles}
const retv = { match: notAncestorFiles }

const p = getPackageJson(startPath)
if (p) {
Expand Down
2 changes: 1 addition & 1 deletion lib/util/get-require-targets.js
Expand Up @@ -65,7 +65,7 @@ module.exports = function getRequireTargets(context, includeCore) {
const paths = getResolvePaths(context)
const references = getReferencesOfRequire(context.getScope())
const extensions = getTryExtensions(context)
const options = {basedir, paths, extensions}
const options = { basedir, paths, extensions }

for (const reference of references) {
const node = reference.identifier
Expand Down
2 changes: 1 addition & 1 deletion lib/util/get-resolve-paths.js
Expand Up @@ -48,6 +48,6 @@ module.exports = function getResolvePaths(context) {

module.exports.schema = {
type: "array",
items: {type: "string"},
items: { type: "string" },
uniqueItems: true,
}
10 changes: 5 additions & 5 deletions package.json
Expand Up @@ -32,14 +32,14 @@
"semver": "^5.4.1"
},
"devDependencies": {
"codecov": "^2.2.0",
"eslint": "^4.1.0",
"eslint-config-mysticatea": "^11.0.0",
"mocha": "^3.4.2",
"codecov": "^3.0.0",
"eslint": "^4.17.0",
"eslint-config-mysticatea": "^13.0.2",
"mocha": "^5.0.0",
"nyc": "^11.0.1",
"opener": "^1.4.3",
"rimraf": "^2.6.1",
"shelljs": "^0.7.7"
"shelljs": "^0.8.1"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 2e2d464

Please sign in to comment.