Skip to content

Commit

Permalink
Update dependencies and migrate to Manifest V3
Browse files Browse the repository at this point in the history
  • Loading branch information
aesy committed Jul 1, 2024
1 parent 9b187cb commit 9cc44f0
Show file tree
Hide file tree
Showing 80 changed files with 24,025 additions and 23,940 deletions.
8 changes: 4 additions & 4 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true

[*.{md}]
[*.md]
trim_trailing_whitespace = false

[*.{html, xml, json, yml}]
[*.{html,xml,json,yml}]
indent_style = space
tab_width = 4

[*.{js, jsx, ts, tsx}]
[*.{js,jsx,ts,tsx}]
indent_style = space
tab_width = 4

[*.{css, sass, scss}]
[*.{css,sass,scss}]
indent_style = space
tab_width = 4
47 changes: 47 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"extends": [
"eslint:recommended",
"plugin:prettier/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/recommended",
"plugin:import/typescript",
"plugin:promise/recommended"
],
"ignorePatterns": ["node_modules", "dist"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"ecmaFeatures": {
"impliedStrict": true
},
"env": {
"browser": true,
"es6": true
}
},
"settings": {
"import/resolver": {
"typescript": {}
}
},
"plugins": [
"import",
"promise",
"@typescript-eslint"
],
"rules": {
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-parameter-properties": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-this-alias": "off",
"@typescript-eslint/explicit-function-return-type": ["warn", {
"allowExpressions": true
}],
"promise/always-return": "off",
"no-constant-condition": "off"
}
}
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 14 ]
node-version: [ 20 ]
steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -21,15 +21,15 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm ci --legacy-peer-deps
run: npm ci
- name: Build with Node
run: npm run build:prod
test:
name: Test using Node ${{ matrix.node-version }}
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 14 ]
node-version: [ 20 ]
steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -38,12 +38,12 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm ci --legacy-peer-deps
run: npm ci
- name: Lint with ESLint
run: npm run lint:scripts
- name: Lint with StyleLint
run: npm run lint:styles
- name: Test with Node
run: npm run test:unit
run: npm run test:unit -- --coverage
- name: Upload coverage to CodeCov
uses: codecov/codecov-action@v1
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
dist
public
node_modules
.idea
*.iml
Expand Down
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
legacy-peer-deps=true
6 changes: 3 additions & 3 deletions config/.stylelintrc.json → .stylelintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
"stylelint-scss"
],
"rules": {
"indentation": "tab",
"at-rule-no-unknown": null,
"color-function-notation": null,
"function-no-unknown": null,
"import-notation": null,
"property-no-vendor-prefix": null,
"selector-class-pattern": null,
"scss/at-rule-no-unknown": true
"scss/at-rule-no-unknown": true,
"selector-class-pattern": null
}
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ A browser extension that highlights unread comments on [Reddit](https://www.redd
### Support
| Chrome | Firefox |
|:------:|:-------:|
| 32+ | 53+ |
| 88+ | 109+ |

### Contribute
Use the [issue tracker](https://github.com/aesy/reddit-comment-highlights/issues) to report bugs or make feature requests.
Expand Down
20 changes: 0 additions & 20 deletions config/.eslintrc.json

This file was deleted.

13 changes: 0 additions & 13 deletions config/tsconfig.json

This file was deleted.

137 changes: 0 additions & 137 deletions config/webpack.config.base.js

This file was deleted.

32 changes: 0 additions & 32 deletions config/webpack.config.production.js

This file was deleted.

Loading

0 comments on commit 9cc44f0

Please sign in to comment.