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

Commit c816ed7

Browse files
authored
Merge pull request #2591 from withspectrum/2.1.8
2.1.8
2 parents 5a88362 + e2ea500 commit c816ed7

35 files changed

Lines changed: 508 additions & 405 deletions

.eslintignore

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Note: This is a copy of the .gitignore,
2+
# with flow-typed added
3+
flow-typed
4+
node_modules
5+
.sass-cache
6+
npm-debug.log
7+
build
8+
.DS_Store
9+
src/config/FirebaseConfig.js
10+
npm-debug.log
11+
rethinkdb_data
12+
debug
13+
now-secrets.json
14+
build-iris
15+
build-athena
16+
build-hermes
17+
build-chronos
18+
build-mercury
19+
build-vulcan
20+
build-hyperion
21+
build-pluto
22+
package-lock.json
23+
.vscode
24+
dump.rdb
25+
*.swp
26+
queries-by-response-size.js
27+
queries-by-time.js
28+
test-extend.js
29+
stats.json
30+
iris/.env
31+
.expo
32+
mobile/.expo
33+
test-results.json

.eslintrc.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
module.exports = {
2+
extends: 'react-app',
3+
env: {
4+
node: false,
5+
},
6+
rules: {
7+
'no-unused-vars': 0,
8+
'no-undef': 0,
9+
radix: 0,
10+
'import/first': 0,
11+
},
12+
};

.eslintrc.json

Lines changed: 0 additions & 47 deletions
This file was deleted.

athena/utils/actors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export const getDistinctActors = (array: Array<any>): Array<any> => {
44
let unique = {};
55
let distinct = [];
66
for (let actor of array) {
7-
if (typeof unique[actor.id] == 'undefined') {
7+
if (typeof unique[actor.id] === 'undefined') {
88
distinct.push(actor);
99
}
1010
unique[actor.id] = 0;

dangerfile.js

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,11 @@ schedule(async () => {
4343
.filter(Boolean)
4444
.map(res => res[1]);
4545

46-
const matchingLabels = matches.filter(
47-
match => Object.keys(possibleAutoLabels).indexOf(match.toLowerCase()) > -1
48-
);
46+
const matchingLabels = matches
47+
.filter(
48+
match => Object.keys(possibleAutoLabels).indexOf(match.toLowerCase()) > -1
49+
)
50+
.map(key => possibleAutoLabels[key.toLowerCase()]);
4951

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

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

73-
7475
schedule(noConsole({ whitelist: ['error'] }));
7576

7677
schedule(
7778
flow({
78-
// Don't fail the build, only warn the submitter
79-
warn: true,
79+
// Fail on newly created untyped files
80+
created: 'fail',
81+
// Warn on modified untyped files
82+
modified: 'warn',
8083
blacklist: ['flow-typed/**/*.js', 'public/**/*.js'],
8184
})
8285
);

0 commit comments

Comments
 (0)