Skip to content

Commit

Permalink
chore: use eslint-plugin-playlyfe and upgrade all packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Mayank1791989 committed May 15, 2017
1 parent b6f067d commit a1b3c73
Show file tree
Hide file tree
Showing 74 changed files with 1,503 additions and 691 deletions.
37 changes: 10 additions & 27 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,33 +1,16 @@
/* @flow */
module.exports = {
extends: [
'eslint-config-airbnb-base/rules/best-practices',
'eslint-config-airbnb-base/rules/errors',
'eslint-config-airbnb-base/rules/node',
'eslint-config-airbnb-base/rules/style',
'eslint-config-airbnb-base/rules/variables',
'eslint-config-airbnb-base/rules/es6',
].map(require.resolve),

parser: require.resolve('babel-eslint'),

globals: {
describe: false,
beforeEach: false,
jest: false,
it: false,
expect: false,
test: false,
plugins: [
"playlyfe",
],

// flow
$Exact: false,
$Keys: false,
},
extends: [
"plugin:playlyfe/js",
"plugin:playlyfe/flow",
"plugin:playlyfe/testing:jest",
],

rules: {
'no-param-reassign': ['error', { 'props': false }],
'no-underscore-dangle': 'off',
'global-require': 'off',
'arrow-parens': 'off',
env: {
node: true,
},
};
2 changes: 1 addition & 1 deletion .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ suppress_comment=\\(.\\|\n\\)*\\$FlowIssue
suppress_comment=\\(.\\|\n\\)*\\$FlowDisableNextLine

[version]
^0.45.0
^0.46.0
18 changes: 18 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// Place your settings in this file to overwrite default and user settings.
{
"search.exclude": {
"**/node_modules": true,
"lib/**": true
},

"prettier.eslintIntegration": true,
"prettier.bracketSpacing": true,
"prettier.semi": true,
"prettier.parser": "flow",
"prettier.tabWidth": 2,
"prettier.singleQuote": true,
"prettier.jsxBracketSameLine": false,
"prettier.printWidth": 80,
"prettier.trailingComma": "all",
"prettier.useTabs": false
}
4 changes: 2 additions & 2 deletions flow-typed/npm/apollo-codegen_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: cfa0d8893229c95fd887ed3b5c6af094
// flow-typed version: <<STUB>>/apollo-codegen_v0.10.13/flow_v0.45.0
// flow-typed signature: b6f73c0c3859c2e1f264b0d51606058c
// flow-typed version: <<STUB>>/apollo-codegen_v0.10.13/flow_v0.46.0

/**
* This is an autogenerated libdef stub for:
Expand Down
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: 62d5a342fa15ea201e409973136ddcb4
// flow-typed version: <<STUB>>/babel-cli_v6.24.1/flow_v0.45.0
// flow-typed signature: bef8cad2bb32428fdb45a8c60c66782c
// flow-typed version: <<STUB>>/babel-cli_v6.24.1/flow_v0.46.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/babel-jest_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: d4d4654ad3732220fd3ecfe85e58a0b4
// flow-typed version: <<STUB>>/babel-jest_v20.0.0/flow_v0.45.0
// flow-typed signature: e116367f1052e4367e3c1026974705e2
// flow-typed version: <<STUB>>/babel-jest_v20.0.1/flow_v0.46.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/babel-plugin-flow-runtime_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 6ffda7700a1b394304c135bdd9145fe5
// flow-typed version: <<STUB>>/babel-plugin-flow-runtime_v0.11.1/flow_v0.45.0
// flow-typed signature: dc60d7f07e7fb0f6458351084a2083fc
// flow-typed version: <<STUB>>/babel-plugin-flow-runtime_v0.11.1/flow_v0.46.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/babel-polyfill_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 0800d1ccddf24e17e857307bd563b4b0
// flow-typed version: <<STUB>>/babel-polyfill_v6.23.0/flow_v0.45.0
// flow-typed signature: e022b191a48f2fd6a8d4cdfbe18da486
// flow-typed version: <<STUB>>/babel-polyfill_v6.23.0/flow_v0.46.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/babel-preset-playlyfe_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: b5c1486632979e60a5cddfa948228a69
// flow-typed version: <<STUB>>/babel-preset-playlyfe_v1.2.0/flow_v0.45.0
// flow-typed signature: 48042622b76a327793ec9e6cea24665e
// flow-typed version: <<STUB>>/babel-preset-playlyfe_v1.2.0/flow_v0.46.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/babel-runtime_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 56d474d75123da9c54dfdd10fbb8d95b
// flow-typed version: <<STUB>>/babel-runtime_v6.23.0/flow_v0.45.0
// flow-typed signature: 7442be28083a77ed74071b25662c3c9c
// flow-typed version: <<STUB>>/babel-runtime_v6.23.0/flow_v0.46.0

/**
* This is an autogenerated libdef stub for:
Expand Down
18 changes: 16 additions & 2 deletions flow-typed/npm/codecov_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 559c5dc6ac0cf2bdbc482c36e48b44ff
// flow-typed version: <<STUB>>/codecov_v2.1.0/flow_v0.45.0
// flow-typed signature: 6fc611692e0632777ba4b3f4cad5e280
// flow-typed version: <<STUB>>/codecov_v2.2.0/flow_v0.46.0

/**
* This is an autogenerated libdef stub for:
Expand Down Expand Up @@ -30,6 +30,10 @@ declare module 'codecov/lib/detect' {
declare module.exports: any;
}

declare module 'codecov/lib/git' {
declare module.exports: any;
}

declare module 'codecov/lib/offline' {
declare module.exports: any;
}
Expand Down Expand Up @@ -90,6 +94,10 @@ declare module 'codecov/test/detect' {
declare module.exports: any;
}

declare module 'codecov/test/git' {
declare module.exports: any;
}

declare module 'codecov/test/index' {
declare module.exports: any;
}
Expand Down Expand Up @@ -167,6 +175,9 @@ declare module 'codecov/lib/codecov.js' {
declare module 'codecov/lib/detect.js' {
declare module.exports: $Exports<'codecov/lib/detect'>;
}
declare module 'codecov/lib/git.js' {
declare module.exports: $Exports<'codecov/lib/git'>;
}
declare module 'codecov/lib/offline.js' {
declare module.exports: $Exports<'codecov/lib/offline'>;
}
Expand Down Expand Up @@ -212,6 +223,9 @@ declare module 'codecov/lib/services/wercker.js' {
declare module 'codecov/test/detect.js' {
declare module.exports: $Exports<'codecov/test/detect'>;
}
declare module 'codecov/test/git.js' {
declare module.exports: $Exports<'codecov/test/git'>;
}
declare module 'codecov/test/index.js' {
declare module.exports: $Exports<'codecov/test/index'>;
}
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/commitizen_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 8cc47cfb416b05322bf93b28eb231e03
// flow-typed version: <<STUB>>/commitizen_v2.9.6/flow_v0.45.0
// flow-typed signature: 0b2a83fc9a96bc29594c0d5628585d1c
// flow-typed version: <<STUB>>/commitizen_v2.9.6/flow_v0.46.0

/**
* This is an autogenerated libdef stub for:
Expand Down
11 changes: 9 additions & 2 deletions flow-typed/npm/cross-env_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 8fd5d17da1c49627f1d3edce176a3803
// flow-typed version: <<STUB>>/cross-env_v4.0.0/flow_v0.45.0
// flow-typed signature: a1cfec0fa34518a3533d8aa65cbb0113
// flow-typed version: <<STUB>>/cross-env_v5.0.0/flow_v0.46.0

/**
* This is an autogenerated libdef stub for:
Expand All @@ -22,6 +22,10 @@ declare module 'cross-env' {
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module 'cross-env/dist/bin/cross-env-shell' {
declare module.exports: any;
}

declare module 'cross-env/dist/bin/cross-env' {
declare module.exports: any;
}
Expand All @@ -39,6 +43,9 @@ declare module 'cross-env/dist/variable' {
}

// Filename aliases
declare module 'cross-env/dist/bin/cross-env-shell.js' {
declare module.exports: $Exports<'cross-env/dist/bin/cross-env-shell'>;
}
declare module 'cross-env/dist/bin/cross-env.js' {
declare module.exports: $Exports<'cross-env/dist/bin/cross-env'>;
}
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/cz-conventional-changelog_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: dadc6bbcba876d4e4b6ecf630d10923a
// flow-typed version: <<STUB>>/cz-conventional-changelog_v2.0.0/flow_v0.45.0
// flow-typed signature: 01effcfca0e631b0a9f79497615fa7e4
// flow-typed version: <<STUB>>/cz-conventional-changelog_v2.0.0/flow_v0.46.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/dentist_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: ecca4dece5de02b6f637965a7e8637c2
// flow-typed version: <<STUB>>/dentist_v1.0.3/flow_v0.45.0
// flow-typed signature: a6d887c2da6f81d300d7163501bdefdd
// flow-typed version: <<STUB>>/dentist_v1.0.3/flow_v0.46.0

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

0 comments on commit a1b3c73

Please sign in to comment.