Skip to content

Commit 143fb1c

Browse files
authored
chore: Synced file(s) with googlemaps/.github (#118)
* chore: Synced local '.eslintrc.json' with remote 'sync-files/js/.eslintrc.json' * chore: Synced local '.github/' with remote 'sync-files/js/.github/'
1 parent 16ff2f2 commit 143fb1c

3 files changed

Lines changed: 67 additions & 2 deletions

File tree

.eslintrc.json

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,27 @@
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
19-
},
18+
"@typescript-eslint/no-empty-function": 1,
19+
// disable the rule for all files
20+
"@typescript-eslint/explicit-member-accessibility": "off"
21+
},
22+
"overrides": [
23+
{
24+
// enable the rule specifically for TypeScript files
25+
"files": ["*.ts", "*.tsx"],
26+
"rules": {
27+
"@typescript-eslint/explicit-member-accessibility": [
28+
1, {
29+
"accessibility": "explicit",
30+
"overrides": {
31+
"accessors": "explicit",
32+
"constructors": "no-public",
33+
"methods": "explicit",
34+
"properties": "explicit",
35+
"parameterProperties": "explicit"
36+
}}]
37+
}
38+
}],
2039
"env": {
2140
"browser": true,
2241
"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

0 commit comments

Comments
 (0)