mirror of
https://github.com/HorlogeSkynet/thunderbird-user.js.git
synced 2025-09-01 01:18:31 +02:00
Compare commits
20 Commits
v102.2
...
version/11
Author | SHA1 | Date | |
---|---|---|---|
824edabe63 | |||
48529d1963 | |||
c6fef1356e | |||
ebeb8cf3fb | |||
ee7649a8b4 | |||
7390a8056c | |||
e6c5df30f2 | |||
ad0cac10b2 | |||
d6b18302e4 | |||
ee80afc278 | |||
3996c279fd | |||
088da14f7e | |||
87b0d325e2 | |||
5a59c1b7e7 | |||
167ddc02be | |||
8bd612fd82 | |||
fc144d3cb1 | |||
ac8a715b06 | |||
439e5b5e7d | |||
07d26c7881 |
36
.eslint.config.mjs
Normal file
36
.eslint.config.mjs
Normal file
@ -0,0 +1,36 @@
|
||||
// Thunderbird User.JS ESLint configuration file
|
||||
|
||||
import js from "@eslint/js";
|
||||
|
||||
export default [
|
||||
js.configs.recommended,
|
||||
{
|
||||
rules: {
|
||||
// Expect only double-quoted strings.
|
||||
quotes: ["error", "double"],
|
||||
|
||||
// Expect a semicolon after each statement.
|
||||
semi: ["error", "always", {"omitLastInOneLineBlock": false}],
|
||||
|
||||
// As project code style, don't allow tabulation nor trailing whitespaces.
|
||||
"no-tabs": "error",
|
||||
"no-trailing-spaces": "error",
|
||||
|
||||
// Don't allow whitespace before semicolons.
|
||||
"semi-spacing": ["error", {"before": false}],
|
||||
|
||||
// Don't allow irregular whitespace characters in our sheet.
|
||||
"no-irregular-whitespace": ["error", {"skipStrings": false, "skipComments": false}],
|
||||
},
|
||||
languageOptions: {
|
||||
// From <https://searchfox.org/mozilla-central/rev/c938c7416c633639a5c8ce4412be586eefb48005/modules/libpref/parser/src/lib.rs#296>
|
||||
globals: {
|
||||
pref: "readonly",
|
||||
user_pref: "readonly",
|
||||
sticky: "readonly",
|
||||
locked: "readonly",
|
||||
sticky_pref: "readonly",
|
||||
},
|
||||
},
|
||||
},
|
||||
];
|
@ -1,45 +0,0 @@
|
||||
%YAML 1.2
|
||||
---
|
||||
|
||||
root: true
|
||||
|
||||
extends: 'eslint:recommended'
|
||||
|
||||
globals:
|
||||
# From <https://searchfox.org/mozilla-central/rev/c938c7416c633639a5c8ce4412be586eefb48005/modules/libpref/parser/src/lib.rs#296>
|
||||
pref: true
|
||||
user_pref: true
|
||||
sticky: true
|
||||
locked: true
|
||||
sticky_pref: true
|
||||
|
||||
rules:
|
||||
# Expect a semicolon after each statement.
|
||||
semi:
|
||||
- "error"
|
||||
- "always"
|
||||
-
|
||||
omitLastInOneLineBlock: false
|
||||
|
||||
# As internal code style, don't allow tabulation.
|
||||
no-tabs: "error"
|
||||
# ... nor trailing spaces !
|
||||
no-trailing-spaces: "error"
|
||||
|
||||
# Expect only double-quoted strings.
|
||||
quotes:
|
||||
- "error"
|
||||
- "double"
|
||||
|
||||
# Don't allow whitespace before semicolons.
|
||||
semi-spacing:
|
||||
- "error"
|
||||
-
|
||||
before: false
|
||||
|
||||
# Don't allow irregular whitespace characters in our sheet.
|
||||
no-irregular-whitespace:
|
||||
- "error"
|
||||
-
|
||||
skipStrings: false
|
||||
skipComments: false
|
8
.github/workflows/linting.yml
vendored
8
.github/workflows/linting.yml
vendored
@ -9,9 +9,9 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: actions/setup-node@v3
|
||||
- uses: actions/setup-node@v4
|
||||
|
||||
- run: npm install -g eslint
|
||||
- run: eslint user.js
|
||||
- run: npm install eslint @eslint/js
|
||||
- run: npx eslint -c .eslint.config.mjs user.js
|
||||
|
2
LICENSE
2
LICENSE
@ -1,6 +1,6 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2019-2023 HorlogeSkynet
|
||||
Copyright (c) 2019-2024 HorlogeSkynet
|
||||
Copyright (c) 2019 dngray
|
||||
Copyright (c) 2019 arkenfox [prev. ghacksuserjs]
|
||||
|
||||
|
@ -39,4 +39,4 @@ Also be aware that this `user.js` is made specifically for Thunderbird and is on
|
||||
|
||||
* [Privacy Handbuch](https://www.privacy-handbuch.de/handbuch_31p.htm)
|
||||
* [Privacy Haters](http://r-36.net/scm/privacy-haters/file/README.md.html)
|
||||
* [12bytes.org's user-overrides.js](https://codeberg.org/12bytes.org/thunderbird-user.js-supplement)
|
||||
* [12bytes's user-overrides.js](https://codeberg.org/12bytes/thunderbird-user.js-supplement)
|
||||
|
Reference in New Issue
Block a user