Skip to content
This repository has been archived by the owner on Oct 11, 2022. It is now read-only.

Commit

Permalink
Merge pull request #2591 from withspectrum/2.1.8
Browse files Browse the repository at this point in the history
2.1.8
  • Loading branch information
brianlovin authored Mar 15, 2018
2 parents 5a88362 + e2ea500 commit c816ed7
Show file tree
Hide file tree
Showing 35 changed files with 508 additions and 405 deletions.
33 changes: 33 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Note: This is a copy of the .gitignore,
# with flow-typed added
flow-typed
node_modules
.sass-cache
npm-debug.log
build
.DS_Store
src/config/FirebaseConfig.js
npm-debug.log
rethinkdb_data
debug
now-secrets.json
build-iris
build-athena
build-hermes
build-chronos
build-mercury
build-vulcan
build-hyperion
build-pluto
package-lock.json
.vscode
dump.rdb
*.swp
queries-by-response-size.js
queries-by-time.js
test-extend.js
stats.json
iris/.env
.expo
mobile/.expo
test-results.json
12 changes: 12 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module.exports = {
extends: 'react-app',
env: {
node: false,
},
rules: {
'no-unused-vars': 0,
'no-undef': 0,
radix: 0,
'import/first': 0,
},
};
47 changes: 0 additions & 47 deletions .eslintrc.json

This file was deleted.

2 changes: 1 addition & 1 deletion athena/utils/actors.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export const getDistinctActors = (array: Array<any>): Array<any> => {
let unique = {};
let distinct = [];
for (let actor of array) {
if (typeof unique[actor.id] == 'undefined') {
if (typeof unique[actor.id] === 'undefined') {
distinct.push(actor);
}
unique[actor.id] = 0;
Expand Down
15 changes: 9 additions & 6 deletions dangerfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,11 @@ schedule(async () => {
.filter(Boolean)
.map(res => res[1]);

const matchingLabels = matches.filter(
match => Object.keys(possibleAutoLabels).indexOf(match.toLowerCase()) > -1
);
const matchingLabels = matches
.filter(
match => Object.keys(possibleAutoLabels).indexOf(match.toLowerCase()) > -1
)
.map(key => possibleAutoLabels[key.toLowerCase()]);

if (!matchingLabels || matchingLabels.length === 0) return;

Expand All @@ -70,13 +72,14 @@ noTestShortcuts({
testFilePredicate: filePath => filePath.endsWith('.test.js'),
});


schedule(noConsole({ whitelist: ['error'] }));

schedule(
flow({
// Don't fail the build, only warn the submitter
warn: true,
// Fail on newly created untyped files
created: 'fail',
// Warn on modified untyped files
modified: 'warn',
blacklist: ['flow-typed/**/*.js', 'public/**/*.js'],
})
);
Loading

0 comments on commit c816ed7

Please sign in to comment.