Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
10 changes: 10 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Dependencies
node_modules/

# Distribution directories
OSINT-Extension-Prod/
OSINT-Extension-Testing-v1.3.1/
OSINT-Extension-ChromeStore-v1.3.1/

# Documentation
docs/
38 changes: 38 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"env": {
"browser": true,
"es2021": true,
"webextensions": true
},
"extends": [
"eslint:recommended"
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"security",
"no-unsanitized"
],
"rules": {
"no-unsanitized/method": "error",
"no-unsanitized/property": "error",
"security/detect-object-injection": "warn",
"security/detect-non-literal-regexp": "warn",
"security/detect-unsafe-regex": "error",
"security/detect-buffer-noassert": "error",
"security/detect-child-process": "error",
"security/detect-disable-mustache-escape": "error",
"security/detect-eval-with-expression": "error",
"security/detect-no-csrf-before-method-override": "error",
"security/detect-non-literal-fs-filename": "warn",
"security/detect-non-literal-require": "warn",
"security/detect-possible-timing-attacks": "warn",
"security/detect-pseudoRandomBytes": "error",
"no-eval": "error",
"no-implied-eval": "error",
"no-new-func": "error",
"no-script-url": "error"
}
}
41 changes: 41 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Lint

on:
push:
branches: [ main ]
pull_request:
branches: [ '**' ]

jobs:
lint:
name: Run Linters
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Run ESLint
id: eslint
continue-on-error: true
run: npm run lint

- name: Run web-ext lint
id: webext-lint
continue-on-error: true
run: npm run lint:webext

- name: Check linting results
if: steps.eslint.outcome == 'failure' || steps.webext-lint.outcome == 'failure'
run: |
echo "::error::One or more linting checks failed"
exit 1
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
node_modules/
jspm_packages/

# Package manager lock files
package-lock.json

# Build outputs
dist/
build/
Expand Down Expand Up @@ -38,6 +41,7 @@ Thumbs.db
# Chrome Extension specific
*.pem
*.crx
web-ext-artifacts/

# Personal notes
notes.txt
Expand Down
252 changes: 0 additions & 252 deletions OSINT-Extension-ChromeStore-v1.3.1/background.js

This file was deleted.

17 changes: 0 additions & 17 deletions OSINT-Extension-ChromeStore-v1.3.1/icons/README.txt

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Loading