Skip to content

Commit 63aceed

Browse files
chore: Synced file(s) with googlemaps/.github (#12)
1 parent ddd8969 commit 63aceed

File tree

8 files changed

+185
-2
lines changed

8 files changed

+185
-2
lines changed

.eslintrc.json

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,32 @@
1515
"prefer-arrow-callback": 2,
1616
"@typescript-eslint/ban-ts-comment": 0,
1717
"@typescript-eslint/ban-types": 1,
18-
"@typescript-eslint/no-empty-function": 1
18+
"@typescript-eslint/no-empty-function": 1,
19+
"@typescript-eslint/member-ordering": 1,
20+
// disable the rule for all files
21+
"@typescript-eslint/explicit-member-accessibility": "off"
1922
},
23+
"overrides": [
24+
{
25+
// enable the rule specifically for TypeScript files
26+
"files": ["*.ts", "*.tsx"],
27+
"rules": {
28+
"@typescript-eslint/explicit-member-accessibility": [
29+
1,
30+
{
31+
"accessibility": "explicit",
32+
"overrides": {
33+
"accessors": "explicit",
34+
"constructors": "no-public",
35+
"methods": "explicit",
36+
"properties": "explicit",
37+
"parameterProperties": "explicit"
38+
}
39+
}
40+
]
41+
}
42+
}
43+
],
2044
"env": {
2145
"browser": true,
2246
"node": true,

.github/bundlewatch.config.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"files": [
3+
{
4+
"path": "dist/index.*.js"
5+
}
6+
],
7+
"ci": {
8+
"trackBranches": ["main"],
9+
"repoBranchBase": "main"
10+
}
11+
}

.github/workflows/bundlewatch.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Copyright 2021 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
name: Bundlewatch
16+
17+
on:
18+
push:
19+
branches:
20+
- main
21+
pull_request:
22+
types: [synchronize, opened]
23+
24+
jobs:
25+
bundlewatch:
26+
runs-on: ubuntu-latest
27+
env:
28+
CI_BRANCH_BASE: main
29+
steps:
30+
- uses: actions/checkout@v2
31+
- uses: jackyef/bundlewatch-gh-action@b9753bc9b3ea458ff21069eaf6206e01e046f0b5
32+
with:
33+
build-script: npm i
34+
bundlewatch-github-token: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }}
35+
bundlewatch-config: .github/bundlewatch.config.json

.github/workflows/ci.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,14 @@ on: [push, pull_request]
1717
jobs:
1818
test:
1919
runs-on: ubuntu-latest
20-
steps:
20+
steps:
2121
- uses: actions/checkout@v2
22+
- uses: actions/cache@v2
23+
with:
24+
path: ~/.npm
25+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
26+
restore-keys: |
27+
${{ runner.os }}-node-
2228
- run: npm i
2329
- run: npm run lint
2430
- run: npm test

.github/workflows/codeql.yml

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
# Copyright 2021 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# For most projects, this workflow file will not need changing; you simply need
16+
# to commit it to your repository.
17+
#
18+
# You may wish to alter this file to override the set of languages analyzed,
19+
# or to provide custom queries or build logic.
20+
#
21+
# ******** NOTE ********
22+
# We have attempted to detect the languages in your repository. Please check
23+
# the `language` matrix defined below to confirm you have the correct set of
24+
# supported CodeQL languages.
25+
#
26+
name: "CodeQL"
27+
28+
on:
29+
push:
30+
branches: [main]
31+
pull_request:
32+
# The branches below must be a subset of the branches above
33+
branches: [main]
34+
schedule:
35+
- cron: "0 13 * * *"
36+
37+
jobs:
38+
analyze:
39+
name: Analyze
40+
runs-on: ubuntu-latest
41+
permissions:
42+
actions: read
43+
contents: read
44+
security-events: write
45+
46+
strategy:
47+
fail-fast: false
48+
matrix:
49+
language: ["javascript"]
50+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
51+
# Learn more:
52+
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
53+
54+
steps:
55+
- name: Checkout repository
56+
uses: actions/checkout@v2
57+
58+
# Initializes the CodeQL tools for scanning.
59+
- name: Initialize CodeQL
60+
uses: github/codeql-action/init@v1
61+
with:
62+
languages: ${{ matrix.language }}
63+
# If you wish to specify custom queries, you can do so here or in a config file.
64+
# By default, queries listed here will override any specified in a config file.
65+
# Prefix the list here with "+" to use these queries and those in the config file.
66+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
67+
68+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
69+
# If this step fails, then you should remove it and run the build manually (see below)
70+
- name: Autobuild
71+
uses: github/codeql-action/autobuild@v1
72+
73+
# ℹ️ Command-line programs to run using the OS shell.
74+
# 📚 https://git.io/JvXDl
75+
76+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
77+
# and modify them (or add more) to build your code if your project
78+
# uses a compiled language
79+
80+
#- run: |
81+
# make bootstrap
82+
# make release
83+
84+
- name: Perform CodeQL Analysis
85+
uses: github/codeql-action/analyze@v1

.github/workflows/docs.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ jobs:
1919
runs-on: ubuntu-latest
2020
steps:
2121
- uses: actions/checkout@v2
22+
- uses: actions/cache@v2
23+
with:
24+
path: ~/.npm
25+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
26+
restore-keys: |
27+
${{ runner.os }}-node-
2228
- run: |
2329
npm i
2430
npm run docs

.github/workflows/release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ jobs:
2323
runs-on: ubuntu-latest
2424
steps:
2525
- uses: actions/checkout@v2
26+
- uses: actions/cache@v2
27+
with:
28+
path: ~/.npm
29+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
30+
restore-keys: |
31+
${{ runner.os }}-node-
2632
- name: Test
2733
run: |
2834
npm i

SECURITY.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Report a security issue
2+
3+
To report a security issue, please use https://g.co/vulnz. We use
4+
https://g.co/vulnz for our intake, and do coordination and disclosure here on
5+
GitHub (including using GitHub Security Advisory). The Google Security Team will
6+
respond within 5 working days of your report on g.co/vulnz.
7+
8+
To contact us about other bugs, please open an issue on GitHub.
9+
10+
> **Note**: This file is synchronized from the https://github.com/googlemaps/.github repository.

0 commit comments

Comments
 (0)