diff --git a/.prettierrc b/.prettierrc index d5864913..9812c951 100644 --- a/.prettierrc +++ b/.prettierrc @@ -1,5 +1,6 @@ { "singleQuote": true, "bracketSpacing": false, - "trailingComma": "es5" + "trailingComma": "es5", + "arrowParens": "always" } diff --git a/CHANGELOG.md b/CHANGELOG.md index a92974a8..f175c6e0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,55 @@ * Added `shopify/polaris-prefer-sectioned-prop` rule * Added `shopify/react-initialize-state` rule * Added `shopify/react-type-state` rule +* Added [`implicit-arrow-linebreak`][] rule +* Added [`lines-around-comment`][] rule (as a [special + rule][lines-around-comment-special]). +* Added [`no-unexpected-multiline`][] rule (as a [special rule][no-unexpected-multiline-special]). +* Added [`flowtype/no-flow-fix-me-comments`](https://github.com/gajus/eslint-plugin-flowtype/blob/677e55c6a0f1dd355268a0f19618cd2696424c53/.README/rules/no-flow-fix-me-comments.md) +* Added [`react/jsx-one-expression-per-line`][] +* Added [`react/destructuring-assignment`][] +* Added [`react/no-access-state-in-setstate`][] +* Added [`react/button-has-type`][] +* Added [`react/jsx-curly-brace-presence`][] +* Added [`typescript/member-naming`](https://github.com/nzakas/eslint-plugin-typescript/tree/master/docs/rules/member-naming.md) +* Added [`typescript/no-array-constructor`](https://github.com/nzakas/eslint-plugin-typescript/tree/master/docs/rules/no-array-constructor.md) +* Added `yarn prettier` script (prettifies source files) + +[`implicit-arrow-linebreak`]: https://eslint.org/docs/rules/implicit-arrow-linebreak +[lines-around-comment-special]: https://github.com/prettier/eslint-config-prettier/blob/5399175c37466747aae9d407021dffec2c169c8b/README.md#lines-around-comment +[`lines-around-comment`]: https://eslint.org/docs/rules/lines-around-comment +[no-unexpected-multiline-special]: https://github.com/prettier/eslint-config-prettier/blob/5399175c37466747aae9d407021dffec2c169c8b/README.md#no-unexpected-multiline +[`no-unexpected-multiline`]: https://eslint.org/docs/rules/no-unexpected-multiline +[`react/jsx-one-expression-per-line`]: https://github.com/yannickcr/eslint-plugin-react/tree/master/docs/rules/jsx-one-expression-per-line.md +[`react/destructuring-assignment`]: https://github.com/yannickcr/eslint-plugin-react/tree/master/docs/rules/destructuring-assignment.md +[`react/no-access-state-in-setstate`]: https://github.com/yannickcr/eslint-plugin-react/tree/master/docs/rules/no-access-state-in-setstate.md +[`react/button-has-type`]: https://github.com/yannickcr/eslint-plugin-react/tree/master/docs/rules/button-has-type.md +[`react/jsx-curly-brace-presence`]: https://github.com/yannickcr/eslint-plugin-react/tree/master/docs/rules/jsx-curly-brace-presence.md + +### Changed +* Updated dependencies to their latest versions (full details in [#63](https://github.com/Shopify/eslint-plugin-shopify/pull/63)) +* Updated prettier to 1.9.2, introducing a change in function parens style (set to `arrowParens: 'always'`): + + ```js + // Before + const foo = myArray.map(foo => {}); + + // After + const foo = myArray.map((foo) => {}); + ``` + + #### ⚠️ Upgrade path + + Your project config files (`package.json`, `.prettierrc`, `.eslintrc`…) + may need to be updated like so: + + ```diff + "singleQuote": true, + "bracketSpacing": false, + "trailingComma": "es5", + + "arrowParens": "always" + ``` +* Prettified source files using the new config ## [18.3.1] - 2017-12-21 diff --git a/lib/config/prettier.js b/lib/config/prettier.js index a79570a0..feb60143 100644 --- a/lib/config/prettier.js +++ b/lib/config/prettier.js @@ -11,11 +11,25 @@ module.exports = { trailingComma: 'all', bracketSpacing: false, jsxBracketSameLine: false, + arrowParens: 'always', }, ], // rules to disable to prefer prettier 'shopify/binary-assignment-parens': 'off', 'babel/semi': 'off', + + // Special rule for 'lines-around-comment' + // https://github.com/prettier/eslint-config-prettier/blob/984de70e8c6b57684b444283561019389ccebd11/README.md#lines-around-comment + 'lines-around-comment': [ + 'error', + { + beforeBlockComment: true, + }, + ], + + // Special rule for 'no-unexpected-multiline' + // https://github.com/prettier/eslint-config-prettier/blob/5399175c37466747aae9d407021dffec2c169c8b/README.md#no-unexpected-multiline + 'no-unexpected-multiline': 'error', }, }; diff --git a/lib/config/rules/flowtype.js b/lib/config/rules/flowtype.js index 37848119..4a617b49 100644 --- a/lib/config/rules/flowtype.js +++ b/lib/config/rules/flowtype.js @@ -11,6 +11,8 @@ module.exports = { 'flowtype/generic-spacing': ['error', 'never'], // Checks for duplicate properties in Object annotations 'flowtype/no-dupe-keys': 'error', + // Disallows $FlowFixMe comment suppressions + 'flowtype/no-flow-fix-me-comments': 'off', // Disallows use of primitive constructors as types, such as Boolean, Number and String. 'flowtype/no-primitive-constructor-types': 'error', // Disallows Flow type imports, aliases, and annotations in files missing a valid Flow file declaration (or a @noflow annotation). diff --git a/lib/config/rules/import.js b/lib/config/rules/import.js index dc363f14..4e2a34ef 100644 --- a/lib/config/rules/import.js +++ b/lib/config/rules/import.js @@ -28,6 +28,8 @@ module.exports = { // Report any invalid exports, i.e. re-export of the same name 'import/export': 'error', + // Force exports to be declared at the bottom of the file + 'import/exports-last': 'off', // Report use of exported name as identifier of default export 'import/no-named-as-default': 'error', // Report use of exported name as property of default export diff --git a/lib/config/rules/react.js b/lib/config/rules/react.js index 9dc9c009..e3c0d624 100644 --- a/lib/config/rules/react.js +++ b/lib/config/rules/react.js @@ -3,10 +3,14 @@ module.exports = { // Enforces consistent naming for boolean props 'react/boolean-prop-naming': 'off', + // Prevent usage of button elements without an explicit type attribute + 'react/button-has-type': 'error', // Prevent missing displayName in a React component definition 'react/display-name': ['error', {ignoreTranspilerName: false}], // Prevent extraneous defaultProps on components 'react/default-props-match-prop-types': 'error', + // Enforce consistent usage of destructuring assignment of props, state, and context + 'react/destructuring-assignment': 'off', // Forbid certain props on Components 'react/forbid-component-props': 'off', // Forbid certain elements e.g. forbid all
and use instead @@ -15,6 +19,8 @@ module.exports = { 'react/forbid-foreign-prop-types': 'error', // Forbid certain propTypes 'react/forbid-prop-types': ['error', {forbid: ['any', 'array']}], + // Prevent using this.state within a this.setState + 'react/no-access-state-in-setstate': 'error', // Prevent using Array index in key prop 'react/no-array-index-key': 'error', // Prevent passing children as props @@ -90,6 +96,8 @@ module.exports = { 'react/jsx-closing-bracket-location': ['error', {location: 'tag-aligned'}], // Validate closing tag location in JSX 'react/jsx-closing-tag-location': 'error', + // Enforce curly braces or disallow unnecessary curly braces in JSX props and/or children + 'react/jsx-curly-brace-presence': ['error', 'never'], // Enforce or disallow spaces inside of curly braces in JSX attributes 'react/jsx-curly-spacing': ['error', 'never', {allowMultiline: true}], // Enforce or disallow spaces around equal signs in JSX attributes @@ -120,6 +128,8 @@ module.exports = { 'react/jsx-no-target-blank': 'error', // Disallow undeclared variables in JSX 'react/jsx-no-undef': 'error', + // Limits every line in JSX to one expression each + 'react/jsx-one-expression-per-line': 'off', // Enforce PascalCase for user-defined JSX components 'react/jsx-pascal-case': 'error', // Enforce props alphabetical sorting diff --git a/lib/config/rules/stylistic-issues.js b/lib/config/rules/stylistic-issues.js index 3486701c..49c23b64 100755 --- a/lib/config/rules/stylistic-issues.js +++ b/lib/config/rules/stylistic-issues.js @@ -48,6 +48,8 @@ module.exports = { ], // Require identifiers to match the provided regular expression 'id-match': 'off', + // Enforce a consistent location for an arrow function containing an implicit return + 'implicit-arrow-linebreak': 'off', // Disable eslint v4 stricter indent rules indent: 'off', // Use eslint v3 indent rules: This option sets a specific tab width for your code diff --git a/lib/config/rules/typescript.js b/lib/config/rules/typescript.js index 9e927e8c..e970d42a 100644 --- a/lib/config/rules/typescript.js +++ b/lib/config/rules/typescript.js @@ -10,15 +10,21 @@ module.exports = { // enforces interface names are prefixed. (interface-name from TSLint) 'typescript/interface-name-prefix': 'off', + // enforces naming conventions for class members by visibility. + 'typescript/member-naming': 'off', + // enforces /// is not used. (no-reference from TSLint) 'typescript/no-triple-slash-reference': 'error', - // enforces the any type is not used. (no-any from TSLint) - 'typescript/no-explicit-any': 'off', + // disallow generic Array constructors + 'typescript/no-array-constructor': 'error', // enforces the use of as Type assertions instead of assertions. (no-angle-bracket-type-assertion from TSLint) 'typescript/no-angle-bracket-type-assertion': 'error', + // enforces the any type is not used. (no-any from TSLint) + 'typescript/no-explicit-any': 'off', + // disallows the use of custom TypeScript modules and namespaces 'typescript/no-namespace': 'off', diff --git a/lib/rules/jquery-dollar-sign-reference.js b/lib/rules/jquery-dollar-sign-reference.js index 39af743f..7b98e56f 100644 --- a/lib/rules/jquery-dollar-sign-reference.js +++ b/lib/rules/jquery-dollar-sign-reference.js @@ -183,10 +183,10 @@ module.exports = { } const isjQueryRef = isjQueryReference(left); const valueNodeTypes = getValueNodes(right).map(isjQueryValue); - const hasDefinitejQueryValue = valueNodeTypes.some(nodeType => { + const hasDefinitejQueryValue = valueNodeTypes.some((nodeType) => { return nodeType.definite; }); - const hasRegularValue = valueNodeTypes.some(nodeType => { + const hasRegularValue = valueNodeTypes.some((nodeType) => { return !nodeType.possible; }); @@ -231,7 +231,7 @@ module.exports = { } function checkObjectExpression(node) { - node.properties.forEach(prop => { + node.properties.forEach((prop) => { if (prop.computed && prop.key.type !== 'Literal') { return; } @@ -241,7 +241,7 @@ module.exports = { } function checkClassProperty(node) { - const tokens = context.getFirstTokens(node, 2).filter(token => { + const tokens = context.getFirstTokens(node, 2).filter((token) => { return token.type === 'Identifier'; }); diff --git a/lib/rules/jsx-no-hardcoded-content.js b/lib/rules/jsx-no-hardcoded-content.js index c1407903..621e36ef 100644 --- a/lib/rules/jsx-no-hardcoded-content.js +++ b/lib/rules/jsx-no-hardcoded-content.js @@ -88,16 +88,14 @@ module.exports = { if (check.prop === 'children') { context.report( node, - `Do not use hardcoded content as the children of the ${ - elementName - } component.` + `Do not use hardcoded content as the children of the ${elementName} component.` ); } else if (check.prop) { context.report( node, - `Do not use hardcoded content in the ${check.prop} prop of the ${ - elementName - } component.` + `Do not use hardcoded content in the ${ + check.prop + } prop of the ${elementName} component.` ); } }, @@ -158,7 +156,7 @@ function checkContent( function isInvalidProp(propNode) { return ( propNode.type === 'JSXAttribute' && - checkProps.some(prop => prop === propNode.name.name) && + checkProps.some((prop) => prop === propNode.name.name) && isInvalidContent( propNode.value == null ? {type: 'Literal', value: true} : propNode.value ) diff --git a/lib/rules/polaris-prefer-sectioned-prop.js b/lib/rules/polaris-prefer-sectioned-prop.js index b8ab5b46..f91b9615 100644 --- a/lib/rules/polaris-prefer-sectioned-prop.js +++ b/lib/rules/polaris-prefer-sectioned-prop.js @@ -34,9 +34,7 @@ module.exports = { if (child === `${component}.Section`) { context.report( node, - `Use the \`sectioned\` prop on ${ - component - } instead of wrapping all its contents in a ${child}` + `Use the \`sectioned\` prop on ${component} instead of wrapping all its contents in a ${child}` ); } }, diff --git a/lib/rules/prefer-class-properties.js b/lib/rules/prefer-class-properties.js index be3d8dde..31f02716 100644 --- a/lib/rules/prefer-class-properties.js +++ b/lib/rules/prefer-class-properties.js @@ -50,7 +50,7 @@ module.exports = { function getTopLevelThisAssignmentExpressions(functionNode) { return functionNode.body.body - .filter(bodyNode => { + .filter((bodyNode) => { return ( bodyNode.type === 'ExpressionStatement' && bodyNode.expression.type === 'AssignmentExpression' && @@ -58,13 +58,13 @@ module.exports = { bodyNode.expression.left.object.type === 'ThisExpression' ); }) - .map(bodyNode => { + .map((bodyNode) => { return bodyNode.expression; }); } function getConstructor(classNode) { - return classNode.body.body.find(propertyNode => { + return classNode.body.body.find((propertyNode) => { return ( propertyNode.type === 'MethodDefinition' && propertyNode.key.name === 'constructor' @@ -73,7 +73,7 @@ module.exports = { } function getClassInstanceProperties(classNode) { - return classNode.body.body.filter(propertyNode => { + return classNode.body.body.filter((propertyNode) => { return propertyNode.type === 'ClassProperty' && !propertyNode.static; }); } @@ -89,7 +89,7 @@ module.exports = { checkConstructorThisAssignment ); } else { - getClassInstanceProperties(node).forEach(propertyNode => { + getClassInstanceProperties(node).forEach((propertyNode) => { context.report({ node: propertyNode, message: 'Unexpected class property.', diff --git a/lib/rules/prefer-twine.js b/lib/rules/prefer-twine.js index b7e69b64..f928bfaa 100644 --- a/lib/rules/prefer-twine.js +++ b/lib/rules/prefer-twine.js @@ -9,7 +9,7 @@ module.exports = { if (node.source.value !== 'twine') { return; } - node.specifiers.forEach(specifier => { + node.specifiers.forEach((specifier) => { if (specifier.type !== 'ImportDefaultSpecifier') { return; } diff --git a/lib/rules/react-initialize-state.js b/lib/rules/react-initialize-state.js index 4da890b3..2a84aefd 100644 --- a/lib/rules/react-initialize-state.js +++ b/lib/rules/react-initialize-state.js @@ -51,7 +51,7 @@ module.exports = { classInfo.declaredState = true; } }, - 'ClassDeclaration:exit': node => { + 'ClassDeclaration:exit': (node) => { if (classInfo && classInfo.hasStateType && !classInfo.declaredState) { context.report( node, diff --git a/lib/rules/restrict-full-import.js b/lib/rules/restrict-full-import.js index 1081dd3f..87d1eefb 100644 --- a/lib/rules/restrict-full-import.js +++ b/lib/rules/restrict-full-import.js @@ -72,7 +72,7 @@ module.exports = { ? specifiers.find(isFullImportSpecifier) : node, // prettier-ignore - message: `Unexpected full import of restricted module '${node.source.value}'.`, + message: `Unexpected full import of restricted module '${node.source.value}'.` }); } } @@ -85,7 +85,7 @@ module.exports = { context.report({ node, // prettier-ignore - message: `Unexpected full import of restricted module '${right.arguments[0].value}'.`, + message: `Unexpected full import of restricted module '${right.arguments[0].value}'.` }); } } diff --git a/lib/rules/webpack/no-unnamed-dynamic-imports.js b/lib/rules/webpack/no-unnamed-dynamic-imports.js index fcccea94..7cc411f3 100644 --- a/lib/rules/webpack/no-unnamed-dynamic-imports.js +++ b/lib/rules/webpack/no-unnamed-dynamic-imports.js @@ -22,7 +22,7 @@ function isChunkNameComment(comment) { function hasLineChunkNameComment(comments) { return comments - .filter(comment => comment.type === 'Line') + .filter((comment) => comment.type === 'Line') .find(isChunkNameComment); } @@ -46,7 +46,7 @@ module.exports = { const comments = source.getComments(node.arguments[0]).leading; const chunkNameBlockComment = comments - .filter(comment => comment.type === 'Block') + .filter((comment) => comment.type === 'Block') .find(isChunkNameComment); if (!chunkNameBlockComment) { diff --git a/package.json b/package.json index 0218fbcd..a905f184 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ "rules-status": "eslint-index lib/config/all.js --format table", "rules-omitted": "eslint-index lib/config/all.js --status omitted", "lint": "eslint . --max-warnings 0", + "prettier": "eslint --format codeframe . --fix", "prettier-check": "eslint --print-config ./lib/config/prettier.js | eslint-config-prettier-check", "test": "NODE_PATH=$NODE_PATH:./transforms:./tests mocha 'tests/**/*.js' --reporter spec --compilers js:babel-core/register", "test:watch": "yarn test -- --watch --reporter min", @@ -48,53 +49,54 @@ "singleQuote": true, "trailingComma": "es5", "bracketSpacing": false, - "jsxBracketSameLine": false + "jsxBracketSameLine": false, + "arrowParens": "always" } ] } }, "devDependencies": { - "babel-cli": "^6.24.1", - "babel-core": "^6.25.0", - "babel-preset-shopify": "^16.1.0", - "eslint": "^4.7.1", + "babel-cli": "^6.26.0", + "babel-core": "^6.26.0", + "babel-preset-shopify": "^16.2.0", + "eslint": "^4.15.0", "eslint-index": "^1.4.0", "eslint-plugin-shopify": "file:./.", "isparta": "^4.0.0", "istanbul": "^0.4.5", - "mocha": "^3.4.2", - "prettier": "^1.8.2", - "react": "^15.6.1", - "react-dom": "^15.6.1", + "mocha": "^4.1.0", + "prettier": "^1.9.2", + "react": "^16.2.0", + "react-dom": "^16.2.0", "typescript": "^2.6.2" }, "peerDependencies": { "eslint": "<5 >=4.7.1" }, "optionalDependencies": { - "prettier": "<2.0 >= 1.7.2" + "prettier": "<2.0 >= 1.9.2" }, "dependencies": { - "babel-eslint": "^8.0.0", - "eslint-config-prettier": "^2.6.0", + "babel-eslint": "^8.2.1", + "eslint-config-prettier": "^2.9.0", "eslint-module-utils": "^2.1.1", - "eslint-plugin-ava": "^4.2.1", + "eslint-plugin-ava": "^4.4.0", "eslint-plugin-babel": "^4.1.2", "eslint-plugin-chai-expect": "^1.1.1", - "eslint-plugin-flowtype": "^2.32.1", - "eslint-plugin-import": "^2.7.0", + "eslint-plugin-flowtype": "^2.41.0", + "eslint-plugin-import": "^2.8.0", "eslint-plugin-jest": "^21.5.0", - "eslint-plugin-jsx-a11y": "^6.0.2", - "eslint-plugin-lodash": "^2.4.4", + "eslint-plugin-jsx-a11y": "^6.0.3", + "eslint-plugin-lodash": "^2.5.0", "eslint-plugin-mocha": "^4.11.0", - "eslint-plugin-node": "^5.1.1", - "eslint-plugin-prettier": "^2.3.1", - "eslint-plugin-promise": "^3.5.0", - "eslint-plugin-react": "^7.3.0", - "eslint-plugin-sort-class-members": "^1.2.0", - "eslint-plugin-typescript": "^0.7.0", + "eslint-plugin-node": "^5.2.1", + "eslint-plugin-prettier": "^2.4.0", + "eslint-plugin-promise": "^3.6.0", + "eslint-plugin-react": "^7.5.1", + "eslint-plugin-sort-class-members": "^1.3.0", + "eslint-plugin-typescript": "^0.8.1", "merge": "^1.2.0", "pkg-dir": "^2.0.0", - "typescript-eslint-parser": "^9.0.0" + "typescript-eslint-parser": "^11.0.0" } } diff --git a/tests/lib/rules/binary-assignment-parens.js b/tests/lib/rules/binary-assignment-parens.js index 28993d2e..af18efc3 100644 --- a/tests/lib/rules/binary-assignment-parens.js +++ b/tests/lib/rules/binary-assignment-parens.js @@ -7,7 +7,7 @@ const NON_BOOLEAN_OPERATORS = ['-', '+', '*', '/', '||', '&&']; const BOOLEAN_OPERATORS = ['==', '===', '!=', '!==', '>', '>=', '<', '<=']; const validNonBooleanExamples = [].concat( - ...NON_BOOLEAN_OPERATORS.map(operator => [ + ...NON_BOOLEAN_OPERATORS.map((operator) => [ {code: `var foo = 'bar' ${operator} 'baz';`}, {code: `var foo = 'bar' ${operator} 'baz';`, options: ['never']}, {code: `var foo = ('bar' ${operator} 'baz');`}, @@ -20,7 +20,7 @@ const validNonBooleanExamples = [].concat( ); const validBooleanExamples = [].concat( - ...BOOLEAN_OPERATORS.map(operator => [ + ...BOOLEAN_OPERATORS.map((operator) => [ {code: `var foo = ('bar' ${operator} 'baz')`}, {code: `var foo = ( 'bar' ${operator} 'baz' )`}, {code: `var foo = 'bar' ${operator} 'baz'`, options: ['never']}, @@ -79,7 +79,7 @@ const validLogicalExamples = [ ]; const invalidBooleanExamples = [].concat( - ...BOOLEAN_OPERATORS.map(operator => [ + ...BOOLEAN_OPERATORS.map((operator) => [ { code: `var foo = 'bar' ${operator} 'baz'`, errors: [ diff --git a/tests/lib/rules/jsx-no-hardcoded-content.js b/tests/lib/rules/jsx-no-hardcoded-content.js index 745864d4..0441d9fe 100644 --- a/tests/lib/rules/jsx-no-hardcoded-content.js +++ b/tests/lib/rules/jsx-no-hardcoded-content.js @@ -11,12 +11,8 @@ const parser = 'babel-eslint'; function errorsFor(component, prop) { const message = prop === 'children' - ? `Do not use hardcoded content as the children of the ${ - component - } component.` - : `Do not use hardcoded content in the ${prop} prop of the ${ - component - } component.`; + ? `Do not use hardcoded content as the children of the ${component} component.` + : `Do not use hardcoded content in the ${prop} prop of the ${component} component.`; return [{type: 'JSXElement', message}]; } diff --git a/tests/lib/rules/polaris-prefer-sectioned-prop.js b/tests/lib/rules/polaris-prefer-sectioned-prop.js index edb143a5..a0ee90d5 100644 --- a/tests/lib/rules/polaris-prefer-sectioned-prop.js +++ b/tests/lib/rules/polaris-prefer-sectioned-prop.js @@ -13,9 +13,7 @@ function errorsFor(component) { return [ { kind: 'JSXElement', - message: `Use the \`sectioned\` prop on ${ - component - } instead of wrapping all its contents in a ${component}.Section`, + message: `Use the \`sectioned\` prop on ${component} instead of wrapping all its contents in a ${component}.Section`, }, ]; } diff --git a/yarn.lock b/yarn.lock index a292aea3..62d4ce5f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,6 +2,58 @@ # yarn lockfile v1 +"@babel/code-frame@7.0.0-beta.36": + version "7.0.0-beta.36" + resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.0.0-beta.36.tgz#2349d7ec04b3a06945ae173280ef8579b63728e4" + dependencies: + chalk "^2.0.0" + esutils "^2.0.2" + js-tokens "^3.0.0" + +"@babel/helper-function-name@7.0.0-beta.36": + version "7.0.0-beta.36" + resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.0.0-beta.36.tgz#366e3bc35147721b69009f803907c4d53212e88d" + dependencies: + "@babel/helper-get-function-arity" "7.0.0-beta.36" + "@babel/template" "7.0.0-beta.36" + "@babel/types" "7.0.0-beta.36" + +"@babel/helper-get-function-arity@7.0.0-beta.36": + version "7.0.0-beta.36" + resolved "https://registry.yarnpkg.com/@babel/helper-get-function-arity/-/helper-get-function-arity-7.0.0-beta.36.tgz#f5383bac9a96b274828b10d98900e84ee43e32b8" + dependencies: + "@babel/types" "7.0.0-beta.36" + +"@babel/template@7.0.0-beta.36": + version "7.0.0-beta.36" + resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.0.0-beta.36.tgz#02e903de5d68bd7899bce3c5b5447e59529abb00" + dependencies: + "@babel/code-frame" "7.0.0-beta.36" + "@babel/types" "7.0.0-beta.36" + babylon "7.0.0-beta.36" + lodash "^4.2.0" + +"@babel/traverse@7.0.0-beta.36": + version "7.0.0-beta.36" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.0.0-beta.36.tgz#1dc6f8750e89b6b979de5fe44aa993b1a2192261" + dependencies: + "@babel/code-frame" "7.0.0-beta.36" + "@babel/helper-function-name" "7.0.0-beta.36" + "@babel/types" "7.0.0-beta.36" + babylon "7.0.0-beta.36" + debug "^3.0.1" + globals "^11.1.0" + invariant "^2.2.0" + lodash "^4.2.0" + +"@babel/types@7.0.0-beta.36": + version "7.0.0-beta.36" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.0.0-beta.36.tgz#64f2004353de42adb72f9ebb4665fc35b5499d23" + dependencies: + esutils "^2.0.2" + lodash "^4.2.0" + to-fast-properties "^2.0.0" + abbrev@1: version "1.1.1" resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8" @@ -24,6 +76,10 @@ acorn@^5.1.1: version "5.1.2" resolved "https://registry.yarnpkg.com/acorn/-/acorn-5.1.2.tgz#911cb53e036807cf0fa778dc5d370fbd864246d7" +acorn@^5.2.1: + version "5.3.0" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-5.3.0.tgz#7446d39459c54fb49a80e6ee6478149b940ec822" + ajv-keywords@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-2.1.0.tgz#a296e17f7bfae7c1ce4f7e0de53d29cb32162df0" @@ -44,6 +100,15 @@ ajv@^5.2.0, ajv@^5.2.3: json-schema-traverse "^0.3.0" json-stable-stringify "^1.0.1" +ajv@^5.3.0: + version "5.5.2" + resolved "https://registry.yarnpkg.com/ajv/-/ajv-5.5.2.tgz#73b5eeca3fab653e3d3f9422b341ad42205dc965" + dependencies: + co "^4.6.0" + fast-deep-equal "^1.0.0" + fast-json-stable-stringify "^2.0.0" + json-schema-traverse "^0.3.0" + align-text@^0.1.1, align-text@^0.1.3: version "0.1.4" resolved "https://registry.yarnpkg.com/align-text/-/align-text-0.1.4.tgz#0cd90a561093f35d0a99256c22b7069433fad117" @@ -197,7 +262,7 @@ axobject-query@^0.1.0: dependencies: ast-types-flow "0.0.7" -babel-cli@^6.24.1: +babel-cli@^6.26.0: version "6.26.0" resolved "https://registry.yarnpkg.com/babel-cli/-/babel-cli-6.26.0.tgz#502ab54874d7db88ad00b887a06383ce03d002f1" dependencies: @@ -218,14 +283,6 @@ babel-cli@^6.24.1: optionalDependencies: chokidar "^1.6.1" -babel-code-frame@7.0.0-beta.0: - version "7.0.0-beta.0" - resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-7.0.0-beta.0.tgz#418a7b5f3f7dc9a4670e61b1158b4c5661bec98d" - dependencies: - chalk "^2.0.0" - esutils "^2.0.2" - js-tokens "^3.0.0" - babel-code-frame@^6.22.0, babel-code-frame@^6.26.0: version "6.26.0" resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-6.26.0.tgz#63fd43f7dc1e3bb7ce35947db8fe369a3f58c74b" @@ -234,7 +291,7 @@ babel-code-frame@^6.22.0, babel-code-frame@^6.26.0: esutils "^2.0.2" js-tokens "^3.0.2" -babel-core@^6.1.4, babel-core@^6.25.0, babel-core@^6.26.0: +babel-core@^6.1.4, babel-core@^6.26.0: version "6.26.0" resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-6.26.0.tgz#af32f78b31a6fcef119c87b0fd8d9753f03a0bb8" dependencies: @@ -258,14 +315,16 @@ babel-core@^6.1.4, babel-core@^6.25.0, babel-core@^6.26.0: slash "^1.0.0" source-map "^0.5.6" -babel-eslint@^8.0.0: - version "8.0.1" - resolved "https://registry.yarnpkg.com/babel-eslint/-/babel-eslint-8.0.1.tgz#5d718be7a328625d006022eb293ed3008cbd6346" +babel-eslint@^8.2.1: + version "8.2.1" + resolved "https://registry.yarnpkg.com/babel-eslint/-/babel-eslint-8.2.1.tgz#136888f3c109edc65376c23ebf494f36a3e03951" dependencies: - babel-code-frame "7.0.0-beta.0" - babel-traverse "7.0.0-beta.0" - babel-types "7.0.0-beta.0" - babylon "7.0.0-beta.22" + "@babel/code-frame" "7.0.0-beta.36" + "@babel/traverse" "7.0.0-beta.36" + "@babel/types" "7.0.0-beta.36" + babylon "7.0.0-beta.36" + eslint-scope "~3.7.1" + eslint-visitor-keys "^1.0.0" babel-generator@^6.26.0: version "6.26.0" @@ -322,15 +381,6 @@ babel-helper-explode-assignable-expression@^6.24.1: babel-traverse "^6.24.1" babel-types "^6.24.1" -babel-helper-function-name@7.0.0-beta.0: - version "7.0.0-beta.0" - resolved "https://registry.yarnpkg.com/babel-helper-function-name/-/babel-helper-function-name-7.0.0-beta.0.tgz#d1b6779b647e5c5c31ebeb05e13b998e4d352d56" - dependencies: - babel-helper-get-function-arity "7.0.0-beta.0" - babel-template "7.0.0-beta.0" - babel-traverse "7.0.0-beta.0" - babel-types "7.0.0-beta.0" - babel-helper-function-name@^6.24.1: version "6.24.1" resolved "https://registry.yarnpkg.com/babel-helper-function-name/-/babel-helper-function-name-6.24.1.tgz#d3475b8c03ed98242a25b48351ab18399d3580a9" @@ -341,12 +391,6 @@ babel-helper-function-name@^6.24.1: babel-traverse "^6.24.1" babel-types "^6.24.1" -babel-helper-get-function-arity@7.0.0-beta.0: - version "7.0.0-beta.0" - resolved "https://registry.yarnpkg.com/babel-helper-get-function-arity/-/babel-helper-get-function-arity-7.0.0-beta.0.tgz#9d1ab7213bb5efe1ef1638a8ea1489969b5a8b6e" - dependencies: - babel-types "7.0.0-beta.0" - babel-helper-get-function-arity@^6.24.1: version "6.24.1" resolved "https://registry.yarnpkg.com/babel-helper-get-function-arity/-/babel-helper-get-function-arity-6.24.1.tgz#8f7782aa93407c41d3aa50908f89b031b1b6853d" @@ -404,10 +448,6 @@ babel-helpers@^6.24.1: babel-runtime "^6.22.0" babel-template "^6.24.1" -babel-messages@7.0.0-beta.0: - version "7.0.0-beta.0" - resolved "https://registry.yarnpkg.com/babel-messages/-/babel-messages-7.0.0-beta.0.tgz#6df01296e49fc8fbd0637394326a167f36da817b" - babel-messages@^6.23.0: version "6.23.0" resolved "https://registry.yarnpkg.com/babel-messages/-/babel-messages-6.23.0.tgz#f3cdf4703858035b2a2951c6ec5edf6c62f2630e" @@ -796,7 +836,7 @@ babel-preset-react@^6.24.1: babel-plugin-transform-react-jsx-source "^6.22.0" babel-preset-flow "^6.23.0" -babel-preset-shopify@^16.1.0: +babel-preset-shopify@^16.2.0: version "16.2.0" resolved "https://registry.yarnpkg.com/babel-preset-shopify/-/babel-preset-shopify-16.2.0.tgz#fa3a6d8bc16bc7b44bab38fe8677c7a7647c9164" dependencies: @@ -848,15 +888,6 @@ babel-runtime@^6.18.0, babel-runtime@^6.22.0, babel-runtime@^6.26.0: core-js "^2.4.0" regenerator-runtime "^0.11.0" -babel-template@7.0.0-beta.0: - version "7.0.0-beta.0" - resolved "https://registry.yarnpkg.com/babel-template/-/babel-template-7.0.0-beta.0.tgz#85083cf9e4395d5e48bf5154d7a8d6991cafecfb" - dependencies: - babel-traverse "7.0.0-beta.0" - babel-types "7.0.0-beta.0" - babylon "7.0.0-beta.22" - lodash "^4.2.0" - babel-template@^6.24.1, babel-template@^6.26.0, babel-template@^6.7.0: version "6.26.0" resolved "https://registry.yarnpkg.com/babel-template/-/babel-template-6.26.0.tgz#de03e2d16396b069f46dd9fff8521fb1a0e35e02" @@ -867,20 +898,6 @@ babel-template@^6.24.1, babel-template@^6.26.0, babel-template@^6.7.0: babylon "^6.18.0" lodash "^4.17.4" -babel-traverse@7.0.0-beta.0: - version "7.0.0-beta.0" - resolved "https://registry.yarnpkg.com/babel-traverse/-/babel-traverse-7.0.0-beta.0.tgz#da14be9b762f62a2f060db464eaafdd8cd072a41" - dependencies: - babel-code-frame "7.0.0-beta.0" - babel-helper-function-name "7.0.0-beta.0" - babel-messages "7.0.0-beta.0" - babel-types "7.0.0-beta.0" - babylon "7.0.0-beta.22" - debug "^3.0.1" - globals "^10.0.0" - invariant "^2.2.0" - lodash "^4.2.0" - babel-traverse@^6.24.1, babel-traverse@^6.26.0: version "6.26.0" resolved "https://registry.yarnpkg.com/babel-traverse/-/babel-traverse-6.26.0.tgz#46a9cbd7edcc62c8e5c064e2d2d8d0f4035766ee" @@ -895,14 +912,6 @@ babel-traverse@^6.24.1, babel-traverse@^6.26.0: invariant "^2.2.2" lodash "^4.17.4" -babel-types@7.0.0-beta.0: - version "7.0.0-beta.0" - resolved "https://registry.yarnpkg.com/babel-types/-/babel-types-7.0.0-beta.0.tgz#eb8b6e556470e6dcc4aef982d79ad229469b5169" - dependencies: - esutils "^2.0.2" - lodash "^4.2.0" - to-fast-properties "^2.0.0" - babel-types@^6.19.0, babel-types@^6.24.1, babel-types@^6.26.0: version "6.26.0" resolved "https://registry.yarnpkg.com/babel-types/-/babel-types-6.26.0.tgz#a3b073f94ab49eb6fa55cd65227a334380632497" @@ -912,9 +921,9 @@ babel-types@^6.19.0, babel-types@^6.24.1, babel-types@^6.26.0: lodash "^4.17.4" to-fast-properties "^1.0.3" -babylon@7.0.0-beta.22: - version "7.0.0-beta.22" - resolved "https://registry.yarnpkg.com/babylon/-/babylon-7.0.0-beta.22.tgz#74f0ad82ed7c7c3cfeab74cf684f815104161b65" +babylon@7.0.0-beta.36: + version "7.0.0-beta.36" + resolved "https://registry.yarnpkg.com/babylon/-/babylon-7.0.0-beta.36.tgz#3a3683ba6a9a1e02b0aa507c8e63435e39305b9e" babylon@^6.18.0: version "6.18.0" @@ -1121,13 +1130,7 @@ combined-stream@^1.0.5, combined-stream@~1.0.5: dependencies: delayed-stream "~1.0.0" -commander@2.9.0: - version "2.9.0" - resolved "https://registry.yarnpkg.com/commander/-/commander-2.9.0.tgz#9c99094176e12240cb22d6c5146098400fe0f7d4" - dependencies: - graceful-readlink ">= 1.0.0" - -commander@^2.11.0: +commander@2.11.0, commander@^2.11.0: version "2.11.0" resolved "https://registry.yarnpkg.com/commander/-/commander-2.11.0.tgz#157152fd1e7a6c8d98a5b715cf376df928004563" @@ -1174,14 +1177,6 @@ core-util-is@1.0.2, core-util-is@~1.0.0: version "1.0.2" resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" -create-react-class@^15.6.0: - version "15.6.2" - resolved "https://registry.yarnpkg.com/create-react-class/-/create-react-class-15.6.2.tgz#cf1ed15f12aad7f14ef5f2dfe05e6c42f91ef02a" - dependencies: - fbjs "^0.8.9" - loose-envify "^1.3.1" - object-assign "^4.1.1" - cross-spawn@^5.0.1, cross-spawn@^5.1.0: version "5.1.0" resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449" @@ -1206,9 +1201,9 @@ dashdash@^1.12.0: dependencies: assert-plus "^1.0.0" -debug@2.6.8: - version "2.6.8" - resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.8.tgz#e731531ca2ede27d188222427da17821d68ff4fc" +debug@3.1.0, debug@^3.0.1, debug@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/debug/-/debug-3.1.0.tgz#5bb5a0672628b64149566ba16819e61518c67261" dependencies: ms "2.0.0" @@ -1218,12 +1213,6 @@ debug@^2.2.0, debug@^2.6.8: dependencies: ms "2.0.0" -debug@^3.0.1: - version "3.1.0" - resolved "https://registry.yarnpkg.com/debug/-/debug-3.1.0.tgz#5bb5a0672628b64149566ba16819e61518c67261" - dependencies: - ms "2.0.0" - decamelize@^1.0.0, decamelize@^1.1.1: version "1.2.0" resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" @@ -1275,9 +1264,9 @@ detect-indent@^4.0.0: dependencies: repeating "^2.0.0" -diff@3.2.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/diff/-/diff-3.2.0.tgz#c9ce393a4b7cbd0b058a725c93df299027868ff9" +diff@3.3.1: + version "3.3.1" + resolved "https://registry.yarnpkg.com/diff/-/diff-3.3.1.tgz#aa8567a6eed03c531fc89d3f711cd0e5259dec75" doctrine@1.5.0: version "1.5.0" @@ -1293,6 +1282,12 @@ doctrine@^2.0.0: esutils "^2.0.2" isarray "^1.0.0" +doctrine@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-2.0.2.tgz#68f96ce8efc56cc42651f1faadb4f175273b0075" + dependencies: + esutils "^2.0.2" + dom-walk@^0.1.0: version "0.1.1" resolved "https://registry.yarnpkg.com/dom-walk/-/dom-walk-0.1.1.tgz#672226dc74c8f799ad35307df936aba11acd6018" @@ -1379,9 +1374,9 @@ escodegen@^1.6.1: optionalDependencies: source-map "~0.5.6" -eslint-config-prettier@^2.6.0: - version "2.6.0" - resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-2.6.0.tgz#f21db0ebb438ad678fb98946097c4bb198befccc" +eslint-config-prettier@^2.9.0: + version "2.9.0" + resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-2.9.0.tgz#5ecd65174d486c22dff389fe036febf502d468a3" dependencies: get-stdin "^5.0.1" @@ -1409,9 +1404,9 @@ eslint-module-utils@^2.1.1: debug "^2.6.8" pkg-dir "^1.0.0" -eslint-plugin-ava@^4.2.1: - version "4.2.2" - resolved "https://registry.yarnpkg.com/eslint-plugin-ava/-/eslint-plugin-ava-4.2.2.tgz#0a20395ddf6d7452f4f9d6fd1a90f0bf4a5fc4d5" +eslint-plugin-ava@^4.4.0: + version "4.4.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-ava/-/eslint-plugin-ava-4.4.0.tgz#c1866e1f62e70daf2b7b5f60cfbc53bfe267a717" dependencies: arrify "^1.0.1" deep-strict-equal "^0.2.0" @@ -1430,13 +1425,13 @@ eslint-plugin-chai-expect@^1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/eslint-plugin-chai-expect/-/eslint-plugin-chai-expect-1.1.1.tgz#cd640b8b38cf6c3abcc378673b7b173b99ddc70a" -eslint-plugin-flowtype@^2.32.1: - version "2.39.1" - resolved "https://registry.yarnpkg.com/eslint-plugin-flowtype/-/eslint-plugin-flowtype-2.39.1.tgz#b5624622a0388bcd969f4351131232dcb9649cd5" +eslint-plugin-flowtype@^2.41.0: + version "2.41.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-flowtype/-/eslint-plugin-flowtype-2.41.0.tgz#fd5221c60ba917c059d7ef69686a99cca09fd871" dependencies: lodash "^4.15.0" -eslint-plugin-import@^2.7.0: +eslint-plugin-import@^2.8.0: version "2.8.0" resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.8.0.tgz#fa1b6ef31fcb3c501c09859c1b86f1fc5b986894" dependencies: @@ -1455,9 +1450,9 @@ eslint-plugin-jest@^21.5.0: version "21.5.0" resolved "https://registry.yarnpkg.com/eslint-plugin-jest/-/eslint-plugin-jest-21.5.0.tgz#c7a3bd2ee9d1c832b4e31dec89f6ad93e08d4853" -eslint-plugin-jsx-a11y@^6.0.2: - version "6.0.2" - resolved "https://registry.yarnpkg.com/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.0.2.tgz#659277a758b036c305a7e4a13057c301cd3be73f" +eslint-plugin-jsx-a11y@^6.0.3: + version "6.0.3" + resolved "https://registry.yarnpkg.com/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.0.3.tgz#54583d1ae442483162e040e13cc31865465100e5" dependencies: aria-query "^0.7.0" array-includes "^3.0.3" @@ -1465,9 +1460,9 @@ eslint-plugin-jsx-a11y@^6.0.2: axobject-query "^0.1.0" damerau-levenshtein "^1.0.0" emoji-regex "^6.1.0" - jsx-ast-utils "^1.4.0" + jsx-ast-utils "^2.0.0" -eslint-plugin-lodash@^2.4.4: +eslint-plugin-lodash@^2.5.0: version "2.5.0" resolved "https://registry.yarnpkg.com/eslint-plugin-lodash/-/eslint-plugin-lodash-2.5.0.tgz#be23eb0c0b7b15c1fc3a46bf702b4be757446b45" dependencies: @@ -1479,7 +1474,7 @@ eslint-plugin-mocha@^4.11.0: dependencies: ramda "^0.24.1" -eslint-plugin-node@^5.1.1: +eslint-plugin-node@^5.2.1: version "5.2.1" resolved "https://registry.yarnpkg.com/eslint-plugin-node/-/eslint-plugin-node-5.2.1.tgz#80df3253c4d7901045ec87fa660a284e32bdca29" dependencies: @@ -1488,70 +1483,117 @@ eslint-plugin-node@^5.1.1: resolve "^1.3.3" semver "5.3.0" -eslint-plugin-prettier@^2.3.1: - version "2.3.1" - resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-2.3.1.tgz#e7a746c67e716f335274b88295a9ead9f544e44d" +eslint-plugin-prettier@^2.4.0: + version "2.4.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-2.4.0.tgz#85cab0775c6d5e3344ef01e78d960f166fb93aae" dependencies: fast-diff "^1.1.1" jest-docblock "^21.0.0" -eslint-plugin-promise@^3.5.0: +eslint-plugin-promise@^3.6.0: version "3.6.0" resolved "https://registry.yarnpkg.com/eslint-plugin-promise/-/eslint-plugin-promise-3.6.0.tgz#54b7658c8f454813dc2a870aff8152ec4969ba75" -eslint-plugin-react@^7.3.0: - version "7.4.0" - resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.4.0.tgz#300a95861b9729c087d362dd64abcc351a74364a" +eslint-plugin-react@^7.5.1: + version "7.5.1" + resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.5.1.tgz#52e56e8d80c810de158859ef07b880d2f56ee30b" dependencies: doctrine "^2.0.0" has "^1.0.1" jsx-ast-utils "^2.0.0" - prop-types "^15.5.10" + prop-types "^15.6.0" "eslint-plugin-shopify@file:./.": version "18.3.1" dependencies: - babel-eslint "^8.0.0" - eslint-config-prettier "^2.6.0" + babel-eslint "^8.2.1" + eslint-config-prettier "^2.9.0" eslint-module-utils "^2.1.1" - eslint-plugin-ava "^4.2.1" + eslint-plugin-ava "^4.4.0" eslint-plugin-babel "^4.1.2" eslint-plugin-chai-expect "^1.1.1" - eslint-plugin-flowtype "^2.32.1" - eslint-plugin-import "^2.7.0" + eslint-plugin-flowtype "^2.41.0" + eslint-plugin-import "^2.8.0" eslint-plugin-jest "^21.5.0" - eslint-plugin-jsx-a11y "^6.0.2" - eslint-plugin-lodash "^2.4.4" + eslint-plugin-jsx-a11y "^6.0.3" + eslint-plugin-lodash "^2.5.0" eslint-plugin-mocha "^4.11.0" - eslint-plugin-node "^5.1.1" - eslint-plugin-prettier "^2.3.1" - eslint-plugin-promise "^3.5.0" - eslint-plugin-react "^7.3.0" - eslint-plugin-sort-class-members "^1.2.0" - eslint-plugin-typescript "^0.7.0" + eslint-plugin-node "^5.2.1" + eslint-plugin-prettier "^2.4.0" + eslint-plugin-promise "^3.6.0" + eslint-plugin-react "^7.5.1" + eslint-plugin-sort-class-members "^1.3.0" + eslint-plugin-typescript "^0.8.1" merge "^1.2.0" - typescript-eslint-parser "^9.0.0" + pkg-dir "^2.0.0" + typescript-eslint-parser "^11.0.0" optionalDependencies: - prettier "<2.0 >= 1.7.2" + prettier "<2.0 >= 1.9.2" -eslint-plugin-sort-class-members@^1.2.0: - version "1.2.2" - resolved "https://registry.yarnpkg.com/eslint-plugin-sort-class-members/-/eslint-plugin-sort-class-members-1.2.2.tgz#c8719f80a2b7a84707d1ee3c0a7cb34d815c4f5a" +eslint-plugin-sort-class-members@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-sort-class-members/-/eslint-plugin-sort-class-members-1.3.0.tgz#8a3db9afb84351f06fe3d1622abcafa1e5781694" -eslint-plugin-typescript@^0.7.0: - version "0.7.0" - resolved "https://registry.yarnpkg.com/eslint-plugin-typescript/-/eslint-plugin-typescript-0.7.0.tgz#d0bea86737fa18e892a27d7d70dea4ad3109ac8a" +eslint-plugin-typescript@^0.8.1: + version "0.8.1" + resolved "https://registry.yarnpkg.com/eslint-plugin-typescript/-/eslint-plugin-typescript-0.8.1.tgz#e5b2d18e744a04528eac58b099fe1032c4d744ff" dependencies: requireindex "~1.1.0" -eslint-scope@^3.7.1: +eslint-scope@^3.7.1, eslint-scope@~3.7.1: version "3.7.1" resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-3.7.1.tgz#3d63c3edfda02e06e01a452ad88caacc7cdcb6e8" dependencies: esrecurse "^4.1.0" estraverse "^4.1.1" -eslint@^4.2.0, eslint@^4.7.1: +eslint-visitor-keys@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.0.0.tgz#3f3180fb2e291017716acb4c9d6d5b5c34a6a81d" + +eslint@^4.15.0: + version "4.15.0" + resolved "https://registry.yarnpkg.com/eslint/-/eslint-4.15.0.tgz#89ab38c12713eec3d13afac14e4a89e75ef08145" + dependencies: + ajv "^5.3.0" + babel-code-frame "^6.22.0" + chalk "^2.1.0" + concat-stream "^1.6.0" + cross-spawn "^5.1.0" + debug "^3.1.0" + doctrine "^2.0.2" + eslint-scope "^3.7.1" + eslint-visitor-keys "^1.0.0" + espree "^3.5.2" + esquery "^1.0.0" + esutils "^2.0.2" + file-entry-cache "^2.0.0" + functional-red-black-tree "^1.0.1" + glob "^7.1.2" + globals "^11.0.1" + ignore "^3.3.3" + imurmurhash "^0.1.4" + inquirer "^3.0.6" + is-resolvable "^1.0.0" + js-yaml "^3.9.1" + json-stable-stringify-without-jsonify "^1.0.1" + levn "^0.3.0" + lodash "^4.17.4" + minimatch "^3.0.2" + mkdirp "^0.5.1" + natural-compare "^1.4.0" + optionator "^0.8.2" + path-is-inside "^1.0.2" + pluralize "^7.0.0" + progress "^2.0.0" + require-uncached "^1.0.3" + semver "^5.3.0" + strip-ansi "^4.0.0" + strip-json-comments "~2.0.1" + table "^4.0.1" + text-table "~0.2.0" + +eslint@^4.2.0: version "4.9.0" resolved "https://registry.yarnpkg.com/eslint/-/eslint-4.9.0.tgz#76879d274068261b191fe0f2f56c74c2f4208e8b" dependencies: @@ -1600,6 +1642,13 @@ espree@^3.1.3, espree@^3.5.1: acorn "^5.1.1" acorn-jsx "^3.0.0" +espree@^3.5.2: + version "3.5.2" + resolved "https://registry.yarnpkg.com/espree/-/espree-3.5.2.tgz#756ada8b979e9dcfcdb30aad8d1a9304a905e1ca" + dependencies: + acorn "^5.2.1" + acorn-jsx "^3.0.0" + esprima@2.7.x, esprima@^2.1.0, esprima@^2.7.1: version "2.7.3" resolved "https://registry.yarnpkg.com/esprima/-/esprima-2.7.3.tgz#96e3b70d5779f6ad49cd032673d1c312767ba581" @@ -1697,11 +1746,15 @@ fast-diff@^1.1.1: version "1.1.2" resolved "https://registry.yarnpkg.com/fast-diff/-/fast-diff-1.1.2.tgz#4b62c42b8e03de3f848460b639079920695d0154" +fast-json-stable-stringify@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz#d5142c0caee6b1189f87d3a76111064f86c8bbf2" + fast-levenshtein@~2.0.4: version "2.0.6" resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" -fbjs@^0.8.16, fbjs@^0.8.9: +fbjs@^0.8.16: version "0.8.16" resolved "https://registry.yarnpkg.com/fbjs/-/fbjs-0.8.16.tgz#5e67432f550dc41b572bf55847b8aca64e5337db" dependencies: @@ -1872,14 +1925,14 @@ glob-parent@^2.0.0: dependencies: is-glob "^2.0.0" -glob@7.1.1: - version "7.1.1" - resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.1.tgz#805211df04faaf1c63a3600306cdf5ade50b2ec8" +glob@7.1.2, glob@^7.0.3, glob@^7.0.5, glob@^7.1.2: + version "7.1.2" + resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.2.tgz#c19c9df9a028702d678612384a6552404c636d15" dependencies: fs.realpath "^1.0.0" inflight "^1.0.4" inherits "2" - minimatch "^3.0.2" + minimatch "^3.0.4" once "^1.3.0" path-is-absolute "^1.0.0" @@ -1893,17 +1946,6 @@ glob@^5.0.15: once "^1.3.0" path-is-absolute "^1.0.0" -glob@^7.0.3, glob@^7.0.5, glob@^7.1.2: - version "7.1.2" - resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.2.tgz#c19c9df9a028702d678612384a6552404c636d15" - dependencies: - fs.realpath "^1.0.0" - inflight "^1.0.4" - inherits "2" - minimatch "^3.0.4" - once "^1.3.0" - path-is-absolute "^1.0.0" - global@^4.3.0: version "4.3.2" resolved "https://registry.yarnpkg.com/global/-/global-4.3.2.tgz#e76989268a6c74c38908b1305b10fc0e394e9d0f" @@ -1911,9 +1953,9 @@ global@^4.3.0: min-document "^2.19.0" process "~0.5.1" -globals@^10.0.0: - version "10.1.0" - resolved "https://registry.yarnpkg.com/globals/-/globals-10.1.0.tgz#4425a1881be0d336b4a823a82a7be725d5dd987c" +globals@^11.0.1, globals@^11.1.0: + version "11.1.0" + resolved "https://registry.yarnpkg.com/globals/-/globals-11.1.0.tgz#632644457f5f0e3ae711807183700ebf2e4633e4" globals@^9.17.0, globals@^9.18.0: version "9.18.0" @@ -1934,13 +1976,9 @@ graceful-fs@^4.1.2, graceful-fs@^4.1.4: version "4.1.11" resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658" -"graceful-readlink@>= 1.0.0": - version "1.0.1" - resolved "https://registry.yarnpkg.com/graceful-readlink/-/graceful-readlink-1.0.1.tgz#4cafad76bc62f02fa039b2f94e9a3dd3a391a725" - -growl@1.9.2: - version "1.9.2" - resolved "https://registry.yarnpkg.com/growl/-/growl-1.9.2.tgz#0ea7743715db8d8de2c5ede1775e1b45ac85c02f" +growl@1.10.3: + version "1.10.3" + resolved "https://registry.yarnpkg.com/growl/-/growl-1.10.3.tgz#1926ba90cf3edfe2adb4927f5880bc22c66c790f" handlebars@^4.0.1: version "4.0.11" @@ -2320,6 +2358,10 @@ json-schema@0.2.3: version "0.2.3" resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.2.3.tgz#b480c892e59a2f05954ce727bd3f2a4e882f9e13" +json-stable-stringify-without-jsonify@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz#9db7b59496ad3f3cfef30a75142d2d930ad72651" + json-stable-stringify@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz#9a759d39c5f2ff503fd5300646ed445f88c4f9af" @@ -2330,10 +2372,6 @@ json-stringify-safe@~5.0.1: version "5.0.1" resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" -json3@3.3.2: - version "3.3.2" - resolved "https://registry.yarnpkg.com/json3/-/json3-3.3.2.tgz#3c0434743df93e2f5c42aee7b19bcb483575f4e1" - json5@^0.5.1: version "0.5.1" resolved "https://registry.yarnpkg.com/json5/-/json5-0.5.1.tgz#1eade7acc012034ad84e2396767ead9fa5495821" @@ -2351,10 +2389,6 @@ jsprim@^1.2.2: json-schema "0.2.3" verror "1.10.0" -jsx-ast-utils@^1.4.0: - version "1.4.1" - resolved "https://registry.yarnpkg.com/jsx-ast-utils/-/jsx-ast-utils-1.4.1.tgz#3867213e8dd79bf1e8f2300c0cfc1efb182c0df1" - jsx-ast-utils@^2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/jsx-ast-utils/-/jsx-ast-utils-2.0.1.tgz#e801b1b39985e20fffc87b40e3748080e2dcac7f" @@ -2406,57 +2440,10 @@ locate-path@^2.0.0: p-locate "^2.0.0" path-exists "^3.0.0" -lodash._baseassign@^3.0.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/lodash._baseassign/-/lodash._baseassign-3.2.0.tgz#8c38a099500f215ad09e59f1722fd0c52bfe0a4e" - dependencies: - lodash._basecopy "^3.0.0" - lodash.keys "^3.0.0" - -lodash._basecopy@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/lodash._basecopy/-/lodash._basecopy-3.0.1.tgz#8da0e6a876cf344c0ad8a54882111dd3c5c7ca36" - -lodash._basecreate@^3.0.0: - version "3.0.3" - resolved "https://registry.yarnpkg.com/lodash._basecreate/-/lodash._basecreate-3.0.3.tgz#1bc661614daa7fc311b7d03bf16806a0213cf821" - -lodash._getnative@^3.0.0: - version "3.9.1" - resolved "https://registry.yarnpkg.com/lodash._getnative/-/lodash._getnative-3.9.1.tgz#570bc7dede46d61cdcde687d65d3eecbaa3aaff5" - -lodash._isiterateecall@^3.0.0: - version "3.0.9" - resolved "https://registry.yarnpkg.com/lodash._isiterateecall/-/lodash._isiterateecall-3.0.9.tgz#5203ad7ba425fae842460e696db9cf3e6aac057c" - lodash.cond@^4.3.0: version "4.5.2" resolved "https://registry.yarnpkg.com/lodash.cond/-/lodash.cond-4.5.2.tgz#f471a1da486be60f6ab955d17115523dd1d255d5" -lodash.create@3.1.1: - version "3.1.1" - resolved "https://registry.yarnpkg.com/lodash.create/-/lodash.create-3.1.1.tgz#d7f2849f0dbda7e04682bb8cd72ab022461debe7" - dependencies: - lodash._baseassign "^3.0.0" - lodash._basecreate "^3.0.0" - lodash._isiterateecall "^3.0.0" - -lodash.isarguments@^3.0.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/lodash.isarguments/-/lodash.isarguments-3.1.0.tgz#2f573d85c6a24289ff00663b491c1d338ff3458a" - -lodash.isarray@^3.0.0: - version "3.0.4" - resolved "https://registry.yarnpkg.com/lodash.isarray/-/lodash.isarray-3.0.4.tgz#79e4eb88c36a8122af86f844aa9bcd851b5fbb55" - -lodash.keys@^3.0.0: - version "3.1.2" - resolved "https://registry.yarnpkg.com/lodash.keys/-/lodash.keys-3.1.2.tgz#4dbc0472b156be50a0b286855d1bd0b0c656098a" - dependencies: - lodash._getnative "^3.0.0" - lodash.isarguments "^3.0.0" - lodash.isarray "^3.0.0" - lodash.unescape@4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/lodash.unescape/-/lodash.unescape-4.0.1.tgz#bf2249886ce514cda112fae9218cdc065211fc9c" @@ -2558,22 +2545,20 @@ mkdirp@0.5.1, mkdirp@0.5.x, "mkdirp@>=0.5 0", mkdirp@^0.5.0, mkdirp@^0.5.1: dependencies: minimist "0.0.8" -mocha@^3.4.2: - version "3.5.3" - resolved "https://registry.yarnpkg.com/mocha/-/mocha-3.5.3.tgz#1e0480fe36d2da5858d1eb6acc38418b26eaa20d" +mocha@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/mocha/-/mocha-4.1.0.tgz#7d86cfbcf35cb829e2754c32e17355ec05338794" dependencies: browser-stdout "1.3.0" - commander "2.9.0" - debug "2.6.8" - diff "3.2.0" + commander "2.11.0" + debug "3.1.0" + diff "3.3.1" escape-string-regexp "1.0.5" - glob "7.1.1" - growl "1.9.2" + glob "7.1.2" + growl "1.10.3" he "1.1.1" - json3 "3.3.2" - lodash.create "3.1.1" mkdirp "0.5.1" - supports-color "3.1.2" + supports-color "4.4.0" ms@2.0.0: version "2.0.0" @@ -2865,9 +2850,9 @@ preserve@^0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b" -"prettier@<2.0 >= 1.7.2": - version "1.8.2" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.8.2.tgz#bff83e7fd573933c607875e5ba3abbdffb96aeb8" +"prettier@<2.0 >= 1.9.2": + version "1.9.2" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.9.2.tgz#96bc2132f7a32338e6078aeb29727178c6335827" private@^0.1.6, private@^0.1.7: version "0.1.8" @@ -2891,7 +2876,7 @@ promise@^7.1.1: dependencies: asap "~2.0.3" -prop-types@^15.5.10, prop-types@^15.5.4: +prop-types@^15.5.4, prop-types@^15.6.0: version "15.6.0" resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.6.0.tgz#ceaf083022fc46b4a35f69e13ef75aed0d639856" dependencies: @@ -2935,14 +2920,14 @@ react-deep-force-update@^2.0.1: version "2.1.1" resolved "https://registry.yarnpkg.com/react-deep-force-update/-/react-deep-force-update-2.1.1.tgz#8ea4263cd6455a050b37445b3f08fd839d86e909" -react-dom@^15.6.1: - version "15.6.2" - resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-15.6.2.tgz#41cfadf693b757faf2708443a1d1fd5a02bef730" +react-dom@^16.2.0: + version "16.2.0" + resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-16.2.0.tgz#69003178601c0ca19b709b33a83369fe6124c044" dependencies: - fbjs "^0.8.9" + fbjs "^0.8.16" loose-envify "^1.1.0" - object-assign "^4.1.0" - prop-types "^15.5.10" + object-assign "^4.1.1" + prop-types "^15.6.0" react-hot-loader@3.0.0-beta.6: version "3.0.0-beta.6" @@ -2961,15 +2946,14 @@ react-proxy@^3.0.0-alpha.0: dependencies: lodash "^4.6.1" -react@^15.6.1: - version "15.6.2" - resolved "https://registry.yarnpkg.com/react/-/react-15.6.2.tgz#dba0434ab439cfe82f108f0f511663908179aa72" +react@^16.2.0: + version "16.2.0" + resolved "https://registry.yarnpkg.com/react/-/react-16.2.0.tgz#a31bd2dab89bff65d42134fa187f24d054c273ba" dependencies: - create-react-class "^15.6.0" - fbjs "^0.8.9" + fbjs "^0.8.16" loose-envify "^1.1.0" - object-assign "^4.1.0" - prop-types "^15.5.10" + object-assign "^4.1.1" + prop-types "^15.6.0" read-pkg-up@^2.0.0: version "2.0.0" @@ -3348,11 +3332,11 @@ strip-json-comments@~2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a" -supports-color@3.1.2: - version "3.1.2" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-3.1.2.tgz#72a262894d9d408b956ca05ff37b2ed8a6e2a2d5" +supports-color@4.4.0: + version "4.4.0" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-4.4.0.tgz#883f7ddabc165142b2a61427f3352ded195d1a3e" dependencies: - has-flag "^1.0.0" + has-flag "^2.0.0" supports-color@^2.0.0: version "2.0.0" @@ -3458,9 +3442,9 @@ typedarray@^0.0.6: version "0.0.6" resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" -typescript-eslint-parser@^9.0.0: - version "9.0.0" - resolved "https://registry.yarnpkg.com/typescript-eslint-parser/-/typescript-eslint-parser-9.0.0.tgz#6a9e9c4bafbebc7e6df53c631bc7036597227d18" +typescript-eslint-parser@^11.0.0: + version "11.0.0" + resolved "https://registry.yarnpkg.com/typescript-eslint-parser/-/typescript-eslint-parser-11.0.0.tgz#37dba6a0130dd307504aa4b4b21b0d3dc7d4e9f2" dependencies: lodash.unescape "4.0.1" semver "5.4.1"