Skip to content

Commit

Permalink
Upgrade react (16.4.1), typescript, eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
tomwagner committed Jun 19, 2018
1 parent 92eebec commit 97a60fa
Show file tree
Hide file tree
Showing 74 changed files with 6,095 additions and 4,652 deletions.
8 changes: 8 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,30 @@
],
"extends" : ["airbnb"],
"rules": {
"class-methods-use-this": 0,
"comma-dangle": 0, // Nobody cares about commas.
"curly": 0, // Do not mess up code with {} for one-line ifs.
"default-case": 0, // Required default case is nonsense.
"function-paren-newline": 0,
"import/default": 2,
"import/export": 2,
"import/named": 2,
"import/namespace": 2,
"import/no-named-as-default": 0,
"import/no-unresolved": [2, {"commonjs": true}],
"jsx-a11y/label-has-for": 0,
"key-spacing": [2, {"beforeColon": false, "afterColon": true, "mode": "minimum"}], // Enable use of nice block object creation.
"max-len": 0,
"new-cap": [2, {"capIsNew": false, "newIsCap": true}], // For Record() etc.
"no-floating-decimal": 0, // .5 is just fine.
"no-shadow": 0, // Shadowing is a nice language feature.
"no-underscore-dangle": 0,
"no-use-before-define": 0, // Enable to define styles after using them in component.
"react/forbid-prop-types": 0,
"react/jsx-no-bind": 0, // Enable arrow functions in Props definitions.
"react/prefer-stateless-function": 0, // Enable functions with state.
"react/require-default-props": 0,
"react/jsx-filename-extension": 0,
"require-jsdoc": 0,
"valid-jsdoc": 2
},
Expand Down
3 changes: 3 additions & 0 deletions .eslintrc-test
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"comma-dangle": 0, // Nobody cares about commas.
"curly": 0, // Do not mess up code with {} for one-line ifs.
"default-case": 0, // Required default case is nonsense.
"function-paren-newline": 0,
"import/default": 2,
"import/export": 2,
"import/named": 2,
Expand All @@ -21,11 +22,13 @@
"no-confusing-arrow": 1,
"no-floating-decimal": 0, // .5 is just fine.
"no-shadow": 0, // Shadowing is a nice language feature.
"no-underscore-dangle": 0,
"no-unused-expressions": 0,
"no-use-before-define": 0, // Enable to define styles after using them in component.
"one-var": 0,
"one-var-declaration-per-line": 0,
"react/jsx-no-bind": 0, // Enable arrow functions in Props definitions.
"react/jsx-filename-extension": 0,
"react/prefer-stateless-function": 0, // Enable functions with state.
"require-jsdoc": 1,
"valid-jsdoc": 2
Expand Down
8 changes: 8 additions & 0 deletions .tidelift.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# nomnom is dependent on nearley, dependent on rst-selector-parser, dependent on enzyme,
# wontfix: https://github.com/kach/nearley/pull/284#issuecomment-326420646
ci:
platform:
NPM:
nomnom:
tests:
unmaintained: skip
4 changes: 2 additions & 2 deletions flow-typed/npm/babel-cli_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: ec07e1ab29842fd3d7dc0eb3f9066a92
// flow-typed version: <<STUB>>/babel-cli_v^6.11.4/flow_v0.46.0
// flow-typed signature: e84a4a2d2a749a32b9c4422f9d80e153
// flow-typed version: <<STUB>>/babel-cli_v^6.11.4/flow_v0.74.0

/**
* This is an autogenerated libdef stub for:
Expand Down
46 changes: 44 additions & 2 deletions flow-typed/npm/babel-core_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 6fff4386d09c7efe3eca630406d065ad
// flow-typed version: <<STUB>>/babel-core_v^6.13.2/flow_v0.46.0
// flow-typed signature: a841ee341f18d0965318b81b6788a02d
// flow-typed version: <<STUB>>/babel-core_v^6.26.3/flow_v0.74.0

/**
* This is an autogenerated libdef stub for:
Expand Down Expand Up @@ -30,6 +30,14 @@ declare module 'babel-core/lib/api/node' {
declare module.exports: any;
}

declare module 'babel-core/lib/helpers/get-possible-plugin-names' {
declare module.exports: any;
}

declare module 'babel-core/lib/helpers/get-possible-preset-names' {
declare module.exports: any;
}

declare module 'babel-core/lib/helpers/merge' {
declare module.exports: any;
}
Expand All @@ -38,6 +46,18 @@ declare module 'babel-core/lib/helpers/normalize-ast' {
declare module.exports: any;
}

declare module 'babel-core/lib/helpers/resolve-from-possible-names' {
declare module.exports: any;
}

declare module 'babel-core/lib/helpers/resolve-plugin' {
declare module.exports: any;
}

declare module 'babel-core/lib/helpers/resolve-preset' {
declare module.exports: any;
}

declare module 'babel-core/lib/helpers/resolve' {
declare module.exports: any;
}
Expand All @@ -58,6 +78,10 @@ declare module 'babel-core/lib/transformation/file/logger' {
declare module.exports: any;
}

declare module 'babel-core/lib/transformation/file/merge-map' {
declare module.exports: any;
}

declare module 'babel-core/lib/transformation/file/metadata' {
declare module.exports: any;
}
Expand Down Expand Up @@ -127,12 +151,27 @@ declare module 'babel-core/lib/api/browser.js' {
declare module 'babel-core/lib/api/node.js' {
declare module.exports: $Exports<'babel-core/lib/api/node'>;
}
declare module 'babel-core/lib/helpers/get-possible-plugin-names.js' {
declare module.exports: $Exports<'babel-core/lib/helpers/get-possible-plugin-names'>;
}
declare module 'babel-core/lib/helpers/get-possible-preset-names.js' {
declare module.exports: $Exports<'babel-core/lib/helpers/get-possible-preset-names'>;
}
declare module 'babel-core/lib/helpers/merge.js' {
declare module.exports: $Exports<'babel-core/lib/helpers/merge'>;
}
declare module 'babel-core/lib/helpers/normalize-ast.js' {
declare module.exports: $Exports<'babel-core/lib/helpers/normalize-ast'>;
}
declare module 'babel-core/lib/helpers/resolve-from-possible-names.js' {
declare module.exports: $Exports<'babel-core/lib/helpers/resolve-from-possible-names'>;
}
declare module 'babel-core/lib/helpers/resolve-plugin.js' {
declare module.exports: $Exports<'babel-core/lib/helpers/resolve-plugin'>;
}
declare module 'babel-core/lib/helpers/resolve-preset.js' {
declare module.exports: $Exports<'babel-core/lib/helpers/resolve-preset'>;
}
declare module 'babel-core/lib/helpers/resolve.js' {
declare module.exports: $Exports<'babel-core/lib/helpers/resolve'>;
}
Expand All @@ -148,6 +187,9 @@ declare module 'babel-core/lib/transformation/file/index.js' {
declare module 'babel-core/lib/transformation/file/logger.js' {
declare module.exports: $Exports<'babel-core/lib/transformation/file/logger'>;
}
declare module 'babel-core/lib/transformation/file/merge-map.js' {
declare module.exports: $Exports<'babel-core/lib/transformation/file/merge-map'>;
}
declare module 'babel-core/lib/transformation/file/metadata.js' {
declare module.exports: $Exports<'babel-core/lib/transformation/file/metadata'>;
}
Expand Down
98 changes: 74 additions & 24 deletions flow-typed/npm/babel-eslint_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 3ebd556e2e4cfa4d8dfae3ee2e22c5a6
// flow-typed version: <<STUB>>/babel-eslint_v^6.1.2/flow_v0.46.0
// flow-typed signature: 29a9ab2a912c69611161b434cd2fd17f
// flow-typed version: <<STUB>>/babel-eslint_v^8.2.3/flow_v0.74.0

/**
* This is an autogenerated libdef stub for:
Expand All @@ -22,52 +22,102 @@ declare module 'babel-eslint' {
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module 'babel-eslint/babylon-to-espree/attachComments' {
declare module 'babel-eslint/lib/analyze-scope' {
declare module.exports: any;
}

declare module 'babel-eslint/babylon-to-espree/convertTemplateType' {
declare module 'babel-eslint/lib/babylon-to-espree/attachComments' {
declare module.exports: any;
}

declare module 'babel-eslint/babylon-to-espree/index' {
declare module 'babel-eslint/lib/babylon-to-espree/convertComments' {
declare module.exports: any;
}

declare module 'babel-eslint/babylon-to-espree/toAST' {
declare module 'babel-eslint/lib/babylon-to-espree/convertTemplateType' {
declare module.exports: any;
}

declare module 'babel-eslint/babylon-to-espree/toToken' {
declare module 'babel-eslint/lib/babylon-to-espree/index' {
declare module.exports: any;
}

declare module 'babel-eslint/babylon-to-espree/toTokens' {
declare module 'babel-eslint/lib/babylon-to-espree/toAST' {
declare module.exports: any;
}

declare module 'babel-eslint/lib/babylon-to-espree/toToken' {
declare module.exports: any;
}

declare module 'babel-eslint/lib/babylon-to-espree/toTokens' {
declare module.exports: any;
}

declare module 'babel-eslint/lib/index' {
declare module.exports: any;
}

declare module 'babel-eslint/lib/parse-with-patch' {
declare module.exports: any;
}

declare module 'babel-eslint/lib/parse-with-scope' {
declare module.exports: any;
}

declare module 'babel-eslint/lib/parse' {
declare module.exports: any;
}

declare module 'babel-eslint/lib/patch-eslint-scope' {
declare module.exports: any;
}

declare module 'babel-eslint/lib/visitor-keys' {
declare module.exports: any;
}

// Filename aliases
declare module 'babel-eslint/babylon-to-espree/attachComments.js' {
declare module.exports: $Exports<'babel-eslint/babylon-to-espree/attachComments'>;
declare module 'babel-eslint/lib/analyze-scope.js' {
declare module.exports: $Exports<'babel-eslint/lib/analyze-scope'>;
}
declare module 'babel-eslint/lib/babylon-to-espree/attachComments.js' {
declare module.exports: $Exports<'babel-eslint/lib/babylon-to-espree/attachComments'>;
}
declare module 'babel-eslint/lib/babylon-to-espree/convertComments.js' {
declare module.exports: $Exports<'babel-eslint/lib/babylon-to-espree/convertComments'>;
}
declare module 'babel-eslint/lib/babylon-to-espree/convertTemplateType.js' {
declare module.exports: $Exports<'babel-eslint/lib/babylon-to-espree/convertTemplateType'>;
}
declare module 'babel-eslint/lib/babylon-to-espree/index.js' {
declare module.exports: $Exports<'babel-eslint/lib/babylon-to-espree/index'>;
}
declare module 'babel-eslint/lib/babylon-to-espree/toAST.js' {
declare module.exports: $Exports<'babel-eslint/lib/babylon-to-espree/toAST'>;
}
declare module 'babel-eslint/lib/babylon-to-espree/toToken.js' {
declare module.exports: $Exports<'babel-eslint/lib/babylon-to-espree/toToken'>;
}
declare module 'babel-eslint/babylon-to-espree/convertTemplateType.js' {
declare module.exports: $Exports<'babel-eslint/babylon-to-espree/convertTemplateType'>;
declare module 'babel-eslint/lib/babylon-to-espree/toTokens.js' {
declare module.exports: $Exports<'babel-eslint/lib/babylon-to-espree/toTokens'>;
}
declare module 'babel-eslint/babylon-to-espree/index.js' {
declare module.exports: $Exports<'babel-eslint/babylon-to-espree/index'>;
declare module 'babel-eslint/lib/index.js' {
declare module.exports: $Exports<'babel-eslint/lib/index'>;
}
declare module 'babel-eslint/babylon-to-espree/toAST.js' {
declare module.exports: $Exports<'babel-eslint/babylon-to-espree/toAST'>;
declare module 'babel-eslint/lib/parse-with-patch.js' {
declare module.exports: $Exports<'babel-eslint/lib/parse-with-patch'>;
}
declare module 'babel-eslint/babylon-to-espree/toToken.js' {
declare module.exports: $Exports<'babel-eslint/babylon-to-espree/toToken'>;
declare module 'babel-eslint/lib/parse-with-scope.js' {
declare module.exports: $Exports<'babel-eslint/lib/parse-with-scope'>;
}
declare module 'babel-eslint/babylon-to-espree/toTokens.js' {
declare module.exports: $Exports<'babel-eslint/babylon-to-espree/toTokens'>;
declare module 'babel-eslint/lib/parse.js' {
declare module.exports: $Exports<'babel-eslint/lib/parse'>;
}
declare module 'babel-eslint/index' {
declare module.exports: $Exports<'babel-eslint'>;
declare module 'babel-eslint/lib/patch-eslint-scope.js' {
declare module.exports: $Exports<'babel-eslint/lib/patch-eslint-scope'>;
}
declare module 'babel-eslint/index.js' {
declare module.exports: $Exports<'babel-eslint'>;
declare module 'babel-eslint/lib/visitor-keys.js' {
declare module.exports: $Exports<'babel-eslint/lib/visitor-keys'>;
}
32 changes: 32 additions & 0 deletions flow-typed/npm/babel-jest_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
// flow-typed signature: ea484138ccc5c38c4d5a8434d2a88c0a
// flow-typed version: <<STUB>>/babel-jest_v^23.0.1/flow_v0.74.0

/**
* This is an autogenerated libdef stub for:
*
* 'babel-jest'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/

declare module 'babel-jest' {
declare module.exports: any;
}

/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module 'babel-jest/build/index' {
declare module.exports: any;
}

// Filename aliases
declare module 'babel-jest/build/index.js' {
declare module.exports: $Exports<'babel-jest/build/index'>;
}
4 changes: 2 additions & 2 deletions flow-typed/npm/babel-plugin-add-module-exports_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 59a88fee1bbc005a0d55059507e4f194
// flow-typed version: <<STUB>>/babel-plugin-add-module-exports_v^0.2.1/flow_v0.46.0
// flow-typed signature: 479f94d7544da05dee834068931e2cef
// flow-typed version: <<STUB>>/babel-plugin-add-module-exports_v^0.2.1/flow_v0.74.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/babel-plugin-syntax-async-functions_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 11a28ba2e604ae3bcde6faafb793a46b
// flow-typed version: <<STUB>>/babel-plugin-syntax-async-functions_v^6.8.0/flow_v0.46.0
// flow-typed signature: f56b7707e027f678844b9d1a6b2bf184
// flow-typed version: <<STUB>>/babel-plugin-syntax-async-functions_v^6.8.0/flow_v0.74.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/babel-plugin-syntax-jsx_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 6d733906d340c097f877f5929ad9389d
// flow-typed version: <<STUB>>/babel-plugin-syntax-jsx_v^6.3.13/flow_v0.46.0
// flow-typed signature: 14f609c8768bc4e195a766f20d42f169
// flow-typed version: <<STUB>>/babel-plugin-syntax-jsx_v^6.3.13/flow_v0.74.0

/**
* This is an autogenerated libdef stub for:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: d6ee8c854f7b5b0a4e88aca23830f408
// flow-typed version: <<STUB>>/babel-plugin-transform-class-properties_v^6.9.1/flow_v0.46.0
// flow-typed signature: 23d0a1fd396a117543bd6d4816a01728
// flow-typed version: <<STUB>>/babel-plugin-transform-class-properties_v^6.9.1/flow_v0.74.0

/**
* This is an autogenerated libdef stub for:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: fe4c4115837f5c2771edb71ccf27af98
// flow-typed version: <<STUB>>/babel-plugin-transform-decorators-legacy_v^1.3.4/flow_v0.46.0
// flow-typed signature: e4c9a2b7fac68cf2eae96755e2f76bee
// flow-typed version: <<STUB>>/babel-plugin-transform-decorators-legacy_v^1.3.5/flow_v0.74.0

/**
* This is an autogenerated libdef stub for:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: fa3129952614c64f55776c233b5f3b10
// flow-typed version: <<STUB>>/babel-plugin-transform-flow-strip-types_v^6.22.0/flow_v0.46.0
// flow-typed signature: 10482ec48d1c3e4558e34d912537a0e6
// flow-typed version: <<STUB>>/babel-plugin-transform-flow-strip-types_v^6.22.0/flow_v0.74.0

/**
* This is an autogenerated libdef stub for:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 46372f92b41cdf641fba64f77fa06d25
// flow-typed version: <<STUB>>/babel-plugin-transform-react-constant-elements_v^6.9.1/flow_v0.46.0
// flow-typed signature: cfe4c8e0944210aa25aabed0f0047dc4
// flow-typed version: <<STUB>>/babel-plugin-transform-react-constant-elements_v^6.9.1/flow_v0.74.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/babel-plugin-transform-react-jsx_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 354a0d1eb05c0cdefa9b663fb1a04c1b
// flow-typed version: <<STUB>>/babel-plugin-transform-react-jsx_v^6.8.0/flow_v0.46.0
// flow-typed signature: 6688e3256c61cd68dc0d67751fc29b84
// flow-typed version: <<STUB>>/babel-plugin-transform-react-jsx_v^6.8.0/flow_v0.74.0

/**
* This is an autogenerated libdef stub for:
Expand Down
Loading

0 comments on commit 97a60fa

Please sign in to comment.