Skip to content

Commit

Permalink
Add prettier & web-ext as packages & Add run-lint GitHub action
Browse files Browse the repository at this point in the history
  • Loading branch information
Nitrrine committed Aug 29, 2024
1 parent 635e7ef commit 0521edc
Show file tree
Hide file tree
Showing 6 changed files with 3,433 additions and 2 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/run-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Run Lint
on:
push:
branches: [main]

jobs:
run-lint:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20]
steps:
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Run web-ext lint
run: pnpm exec web-ext lint
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules/
.env
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
html/i18n/
3 changes: 1 addition & 2 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"tabWidth": 2,
"useTabs": false,
"semi": false
"useTabs": false
}
16 changes: 16 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "smc-extension",
"version": "1.0.0",
"description": "Restricts access to harmful or unwanted web resources.",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "StopMalwareContent's Contributors",
"license": "GPL-3.0",
"packageManager": "pnpm@9.6.0",
"devDependencies": {
"prettier": "^3.3.3",
"web-ext": "^8.2.0"
}
}
Loading

0 comments on commit 0521edc

Please sign in to comment.