Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First version #1

Merged
merged 43 commits into from
Nov 18, 2022
Merged
Show file tree
Hide file tree
Changes from 29 commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
d4e2a94
First version
scripthunter7 Nov 1, 2022
5042931
Resolve https://github.com/AdguardTeam/AGLint/pull/1#discussion_r1011…
scripthunter7 Nov 3, 2022
62045fd
Resolve https://github.com/AdguardTeam/AGLint/pull/1#discussion_r1011…
scripthunter7 Nov 3, 2022
55ef5d8
Resolve https://github.com/AdguardTeam/AGLint/pull/1#discussion_r1011…
scripthunter7 Nov 3, 2022
e177e88
Improve ESLint config, resolve https://github.com/AdguardTeam/AGLint/…
scripthunter7 Nov 3, 2022
be22994
Resolve https://github.com/AdguardTeam/AGLint/pull/1#discussion_r1011…
scripthunter7 Nov 3, 2022
897f737
Resolve https://github.com/AdguardTeam/AGLint/pull/1#discussion_r1011…
scripthunter7 Nov 3, 2022
79c2246
Improve Agents
scripthunter7 Nov 3, 2022
4afb94c
Fix typo, resolve https://github.com/AdguardTeam/AGLint/pull/1#discus…
scripthunter7 Nov 3, 2022
b5b1760
Improve network rule type, Resolve https://github.com/AdguardTeam/AGL…
scripthunter7 Nov 3, 2022
2538206
Improve modifier list type, resolve https://github.com/AdguardTeam/AG…
scripthunter7 Nov 3, 2022
d8497f8
Improve comment detection
scripthunter7 Nov 3, 2022
c704474
Improve code quality, complete JSDoc
scripthunter7 Nov 3, 2022
d80025b
Test cosmetic rule modifiers
scripthunter7 Nov 3, 2022
5ef546a
Update constants
scripthunter7 Nov 3, 2022
98fb7d7
Trim comments at main comment parser
scripthunter7 Nov 3, 2022
dc8a47d
CSSTree-related quality improvement
scripthunter7 Nov 3, 2022
d4a84ba
Update constants
scripthunter7 Nov 3, 2022
19f1b81
More CSSTree tests
scripthunter7 Nov 3, 2022
4b015e6
More tests
scripthunter7 Nov 3, 2022
a517c2e
Update readme
scripthunter7 Nov 3, 2022
e79f35f
Small improvements
scripthunter7 Nov 3, 2022
8f23f38
Consistent rule property ordering
scripthunter7 Nov 4, 2022
031402f
Improve preprocessor parser
scripthunter7 Nov 4, 2022
15ae8db
Add throws to JSDoc
scripthunter7 Nov 4, 2022
f5cb723
Update readme
scripthunter7 Nov 4, 2022
74a00b6
Use adblock syntax in MD
scripthunter7 Nov 4, 2022
22d08d4
Quality improvement
scripthunter7 Nov 4, 2022
49644f7
Checksum metadata
scripthunter7 Nov 4, 2022
8f0257f
Update src/parser/comment/agent.ts
scripthunter7 Nov 11, 2022
b5ac6cd
Update src/utils/cosmetic-rule-separator.ts
scripthunter7 Nov 11, 2022
3818df4
Update src/parser/cosmetic/cosmetic.ts
scripthunter7 Nov 11, 2022
4803d7d
Documentation of exported interfaces and classes
scripthunter7 Nov 11, 2022
9c7f38e
Test main parser interface
scripthunter7 Nov 11, 2022
8c1709e
Resolve https://github.com/AdguardTeam/AGLint/pull/1#discussion_r1020…
scripthunter7 Nov 11, 2022
4e8d9a7
Remove commented codes
scripthunter7 Nov 11, 2022
97a755e
Fix network rule separator order
scripthunter7 Nov 11, 2022
1d6ba5c
More detailed examples
scripthunter7 Nov 11, 2022
1be05c6
TODO: uBO responseheader
scripthunter7 Nov 11, 2022
9adafd5
Improve agents
scripthunter7 Nov 11, 2022
59e4be2
Improve ABP snippets parsing
scripthunter7 Nov 13, 2022
e43f6e5
Improve uBO options
scripthunter7 Nov 13, 2022
e8f2b8d
Basic dev docs - show commands
scripthunter7 Nov 13, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
dist
38 changes: 38 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "tsconfig.eslint.json"
},
"plugins": ["import", "@typescript-eslint", "prettier"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"airbnb-typescript/base",
"plugin:jsdoc/recommended",
"prettier"
],
"rules": {
"prettier/prettier": 2,

"max-len": [
"error",
{
"code": 120,
"comments": 120,
"tabWidth": 4,
"ignoreUrls": false,
"ignoreTrailingComments": false,
"ignoreComments": false
}
],
"indent": [
"error",
4,
{
"SwitchCase": 1
}
]
}
}
77 changes: 77 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
name: Release
on:
# Run manually
workflow_dispatch:

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Check out to repository
uses: actions/checkout@v3
with:
ref: main

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 16
cache: yarn

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Run ESLint
run: yarn lint

test:
needs: lint
runs-on: ubuntu-latest
steps:
- name: Check out to repository
uses: actions/checkout@v3
with:
ref: main

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 16
cache: yarn

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Run tests
run: yarn test

build:
needs: test
runs-on: ubuntu-latest
steps:
- name: Check out to repository
uses: actions/checkout@v3
with:
ref: main

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 16
cache: yarn

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Run build script
run: yarn build

# TODO: Artifact / Create release:

# - name: Create release artifact
scripthunter7 marked this conversation as resolved.
Show resolved Hide resolved
# uses: actions/upload-artifact@v3
# with:
# name: release_artifact
# path: |
# .
# !./node_modules
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules
dist
*.log
coverage
.vscode
6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"tabWidth": 4,
"endOfLine": "lf",
"printWidth": 120,
"singleQuote": false
}
Loading