mirror of
https://github.com/HorlogeSkynet/thunderbird-user.js.git
synced 2024-10-01 06:35:47 -04:00
b36710a76e
> See #11, Acorn was great but not sufficient for Mozilla's libPref syntax...
46 lines
887 B
YAML
46 lines
887 B
YAML
%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
|