Skip to content

Commit 632eca4

Browse files
authored
fix: unified hosts (#56)
1 parent a2ad68c commit 632eca4

29 files changed

+10619
-8994
lines changed

.github/workflows/cli-tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,20 @@ jobs:
99
runs-on: ubuntu-latest
1010
defaults:
1111
run:
12-
working-directory: ./modules/guard-cli
12+
working-directory: ./modules/cli
1313

1414
steps:
1515
- uses: actions/checkout@v4
1616
with:
17-
path: 'modules/guard-cli'
17+
path: 'modules/cli'
1818

1919
- uses: actions/setup-node@v4
2020
with:
2121
node-version: 22
2222

2323
- name: Install, build, and test
2424
run: |
25-
cd ./modules/guard-cli
25+
cd ./modules/cli
2626
npm ci
2727
npm run build
2828
env:

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ jobs:
2121
- name: Install & Build
2222
run: |
2323
mkdir public
24-
cd ./modules/guard-cli
24+
cd ./modules/cli
2525
npm ci
2626
npm run build
2727
env:
2828
CI: true
2929

3030
- name: Generate AllowList
3131
run: |
32-
node ./modules/guard-cli/dist/main.js generate \
32+
node ./modules/cli/dist/main.js generate \
3333
--name AdGuard-Home-List.Allow.txt \
3434
--badge badge-allow.json \
3535
--external ./allowlist/external \
@@ -40,7 +40,7 @@ jobs:
4040
4141
- name: Generate BlockList
4242
run: |
43-
node ./modules/guard-cli/dist/main.js generate \
43+
node ./modules/cli/dist/main.js generate \
4444
--name AdGuard-Home-List.Block.txt \
4545
--badge badge-block.json \
4646
--external ./blocklist/external \

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Local
2+
.env
3+
.npmrc
4+
15
### JetBrains+all ###
26
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
37
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839

README.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ These lists are downloaded, cleaned and combined during a release.
7575
- [firebog.net](https://firebog.net)
7676
- [disconnect.me](https://disconnect.me)
7777
- [phishing.army](https://phishing.army)
78-
- [oisd](https://oisd.nl)
7978

8079
#### Community
8180

@@ -132,22 +131,20 @@ tls://1.1.1.1
132131
## Local
133132

134133
```sh
135-
node ./modules/guard-cli/dist/main.js generate \
134+
node ./modules/cli/dist/main.js generate \
136135
--name AdGuard-Home-List.Allow.txt \
137136
--badge badge-allow.json \
138137
--external ./allowlist/external \
139138
--custom ./allowlist/custom \
140139
--concatExternal ./allowlist/concat \
141140
--convertToAllow \
142-
--debug \
143141
--output ./dist
144142

145-
node ./modules/guard-cli/dist/main.js generate \
143+
node ./modules/cli/dist/main.js generate \
146144
--name AdGuard-Home-List.Block.txt \
147145
--badge badge-block.json \
148146
--external ./blocklist/external \
149147
--custom ./blocklist/custom \
150148
--concatExternal ./blocklist/concat \
151-
--debug \
152149
--output ./dist
153150
```
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
https://raw.githubusercontent.com/anudeepND/whitelist/master/domains/whitelist.txt
22
https://raw.githubusercontent.com/kaythomas0/CryptoScamDB-Lists/master/cryptoscamdb-allowlist.txt
33
https://raw.githubusercontent.com/Dogino/Discord-Phishing-URLs/main/official-domains.txt
4+
https://raw.githubusercontent.com/AdguardTeam/AdGuardSDNSFilter/refs/heads/master/Filters/exceptions.txt

blocklist/concat/blocklist.external.adguard.list

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
https://adguardteam.github.io/AdGuardSDNSFilter/Filters/filter.txt
1+
https://adguardteam.github.io/AdguardFilters/BaseFilter/sections/adservers.txt
2+
https://adguardteam.github.io/AdguardFilters/MobileFilter/sections/adservers.txt
3+
https://raw.githubusercontent.com/easylist/easylist/master/easylist/easylist_adservers.txt
24
https://raw.githubusercontent.com/curbengh/urlhaus-filter/master/urlhaus-filter-agh.txt
35
https://raw.githubusercontent.com/Perflyst/PiHoleBlocklist/master/SmartTV-AGH.txt
46
https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/data/combined_disguised_trackers.txt

blocklist/external/blocklist.external.hosts.list

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ https://raw.githubusercontent.com/FadeMind/hosts.extras/master/GoodbyeAds-YouTub
55
https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts
66
https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts
77
https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts
8-
https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts
8+
https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
99
https://raw.githubusercontent.com/anudeepND/blacklist/master/adservers.txt
1010
https://raw.githubusercontent.com/anudeepND/blacklist/master/CoinMiner.txt
1111
https://winhelp2002.mvps.org/hosts.txt

blocklist/external/blocklist.external.pihole.list

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ https://s3.amazonaws.com/lists.disconnect.me/simple_malware.txt
66
https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt
77
https://phishing.army/download/phishing_army_blocklist.txt
88
https://raw.githubusercontent.com/Spam404/lists/master/main-blacklist.txt
9-
https://dbl.oisd.nl/basic
109
https://raw.githubusercontent.com/kaythomas0/CryptoScamDB-Lists/master/cryptoscamdb-blocklist.txt
1110
https://raw.githubusercontent.com/elliotwutingfeng/GlobalAntiScamOrg-blocklist/main/global-anti-scam-org-scam-urls-pihole.txt
1211
https://raw.githubusercontent.com/Dogino/Discord-Phishing-URLs/main/scam-urls.txt
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"singleQuote": true,
33
"trailingComma": "all"
4-
}
4+
}

modules/cli/eslint.config.mjs

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// @ts-check
2+
import eslint from '@eslint/js';
3+
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
4+
import globals from 'globals';
5+
import tseslint from 'typescript-eslint';
6+
7+
export default tseslint.config(
8+
{
9+
ignores: ['eslint.config.mjs'],
10+
},
11+
eslint.configs.recommended,
12+
...tseslint.configs.recommendedTypeChecked,
13+
eslintPluginPrettierRecommended,
14+
{
15+
languageOptions: {
16+
globals: {
17+
...globals.node,
18+
...globals.jest,
19+
},
20+
sourceType: 'commonjs',
21+
parserOptions: {
22+
projectService: true,
23+
tsconfigRootDir: import.meta.dirname,
24+
},
25+
},
26+
},
27+
{
28+
rules: {
29+
'@typescript-eslint/no-explicit-any': 'off',
30+
'@typescript-eslint/no-floating-promises': 'warn',
31+
'@typescript-eslint/no-unsafe-argument': 'warn'
32+
},
33+
},
34+
);

0 commit comments

Comments
 (0)