Skip to content

Commit 556eceb

Browse files
committed
chore(dev): fix lint/prettier flows
1 parent ee87a83 commit 556eceb

File tree

14 files changed

+119
-108
lines changed

14 files changed

+119
-108
lines changed

.babelrc.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
// @flow
22

3-
const es6Compat = process.env.BABEL_ES_COMPAT === "6" || process.env.NODE_ENV === "test";
3+
const es6Compat =
4+
process.env.BABEL_ES_COMPAT === "6" || process.env.NODE_ENV === "test";
45

56
module.exports = {
67
presets: [
78
[
89
"@babel/preset-env",
910
{
1011
targets: es6Compat ? "maintained node versions" : "> 0.25%, not dead"
11-
},
12+
}
1213
],
1314
"@babel/react",
1415
"@babel/preset-flow"

.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
node_modules/**/*
2+
build
3+
dist
4+
flow-typed

.eslintrc.json

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,15 @@
11
{
22
"root": true,
33
"parser": "@babel/eslint-parser",
4-
"plugins": [
5-
"react",
6-
"flowtype",
7-
"unicorn"
8-
],
4+
"plugins": ["react", "flowtype", "unicorn"],
95
"extends": [
106
"eslint:recommended",
117
"plugin:react/recommended",
128
"plugin:flowtype/recommended"
139
],
1410
"rules": {
1511
"no-console": "off",
16-
"no-use-before-define": [
17-
"error",
18-
"nofunc"
19-
],
12+
"no-use-before-define": ["error", "nofunc"],
2013
"no-unused-vars": [
2114
"warn",
2215
{
@@ -26,10 +19,7 @@
2619
}
2720
],
2821
"prefer-const": "error",
29-
"react/jsx-boolean-value": [
30-
"error",
31-
"always"
32-
],
22+
"react/jsx-boolean-value": ["error", "always"],
3323
"unicorn/better-regex": "warn",
3424
"unicorn/expiring-todo-comments": "error",
3525
"unicorn/no-abusive-eslint-disable": "error"
@@ -44,4 +34,4 @@
4434
"version": "detect"
4535
}
4636
}
47-
}
37+
}
Lines changed: 33 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,35 @@
11
{
2-
"categories": [
3-
{
4-
"title": "## 🚀 Features",
5-
"labels": ["feature"]
6-
},
7-
{
8-
"title": "## 🐛 Fixes",
9-
"labels": ["fix"]
10-
},
11-
{
12-
"title": "## 🧪 Tests",
13-
"labels": ["test"]
14-
}
15-
],
16-
"ignore_labels": [
17-
"ignore_changelog"
18-
],
19-
"sort": "ASC",
20-
"template": "${{CHANGELOG}}\n\n<details open>\n<summary>Uncategorized</summary>\n\n${{UNCATEGORIZED}}\n</details>",
21-
"pr_template": "- ${{TITLE}}\n - PR: #${{NUMBER}}",
22-
"empty_template": "- no changes",
23-
"label_extractor": [
24-
{
25-
"pattern": "\\[Issue\\]",
26-
"on_property": "title",
27-
"method": "match"
28-
}
29-
],
30-
"transformers": [
31-
],
32-
"max_tags_to_fetch": 200,
33-
"max_pull_requests": 200,
34-
"max_back_track_time_days": 365,
35-
"exclude_merge_branches": [
36-
],
37-
"tag_resolver": {
2+
"categories": [
3+
{
4+
"title": "## 🚀 Features",
5+
"labels": ["feature"]
386
},
39-
"base_branches": [
40-
]
41-
}
7+
{
8+
"title": "## 🐛 Fixes",
9+
"labels": ["fix"]
10+
},
11+
{
12+
"title": "## 🧪 Tests",
13+
"labels": ["test"]
14+
}
15+
],
16+
"ignore_labels": ["ignore_changelog"],
17+
"sort": "ASC",
18+
"template": "${{CHANGELOG}}\n\n<details open>\n<summary>Uncategorized</summary>\n\n${{UNCATEGORIZED}}\n</details>",
19+
"pr_template": "- ${{TITLE}}\n - PR: #${{NUMBER}}",
20+
"empty_template": "- no changes",
21+
"label_extractor": [
22+
{
23+
"pattern": "\\[Issue\\]",
24+
"on_property": "title",
25+
"method": "match"
26+
}
27+
],
28+
"transformers": [],
29+
"max_tags_to_fetch": 200,
30+
"max_pull_requests": 200,
31+
"max_back_track_time_days": 365,
32+
"exclude_merge_branches": [],
33+
"tag_resolver": {},
34+
"base_branches": []
35+
}

.github/labeler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ infrastructure:
2626
- .travis.yml
2727
- build.sh
2828
- package.json
29-
- webpack*
29+
- webpack*

.github/workflows/changelog.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
name: 'changelog'
1+
name: "changelog"
22
on:
33
push:
44
tags:
5-
- '*'
5+
- "*"
66

77
jobs:
88
release:
@@ -27,4 +27,4 @@ jobs:
2727
release_name: ${{ github.ref }}
2828
body: ${{steps.github_release.outputs.changelog}}
2929
env:
30-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/gh-pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Build and Deploy to GitHub Pages
22
on:
33
push:
44
tags:
5-
- '*'
5+
- "*"
66
jobs:
77
build-and-deploy:
88
runs-on: ubuntu-latest

.github/workflows/label.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name: Pull request labeler
33
on:
44
schedule:
5-
- cron: '*/5 * * * *'
5+
- cron: "*/5 * * * *"
66
jobs:
77
labeler:
88
runs-on: ubuntu-latest

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ jobs:
3535

3636
# Flow is not supported by lint-action, so we run it raw
3737
- name: Run Flow
38-
run: yarn flow
38+
run: yarn flow

.github/workflows/stale.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
name: "Close stale issues and PRs"
22
on:
33
schedule:
4-
- cron: "0 0,6,12,18 * * *"
4+
- cron: "0 0,6,12,18 * * *"
55

66
jobs:
77
stale:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/stale@v1
11-
with:
12-
repo-token: ${{ secrets.GITHUB_TOKEN }}
13-
stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this issue will be closed in 7 days'
14-
stale-pr-message: 'This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this PR will be closed in 7 days'
15-
stale-pr-label: 'stale'
16-
exempt-pr-label: 'stale'
17-
days-before-stale: 90
18-
days-before-close: 30
19-
operations-per-run: 30
10+
- uses: actions/stale@v1
11+
with:
12+
repo-token: ${{ secrets.GITHUB_TOKEN }}
13+
stale-issue-message: "This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this issue will be closed in 7 days"
14+
stale-pr-message: "This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this PR will be closed in 7 days"
15+
stale-pr-label: "stale"
16+
exempt-pr-label: "stale"
17+
days-before-stale: 90
18+
days-before-close: 30
19+
operations-per-run: 30

0 commit comments

Comments
 (0)