mirror of
https://gitlab.gnome.org/julianschacher/top-bar-organizer.git
synced 2025-10-27 15:19:09 +00:00
Migrate with the help of, among others, the following resources: https://blogs.gnome.org/shell-dev/2023/09/02/extensions-in-gnome-45/ https://gjs.guide/extensions/upgrading/gnome-shell-45.html Only support GNOME Shell version 45, since only 45 is compatible with the new ESM system. Since panel._originalAddToPanelBox is no longer valid, just overwrite using the prototype on disable. Add "sourceType": "module" to eslintrc.yml to get rid of: "Parsing error: 'import' and 'export' may appear only with 'sourceType: module'" See here: https://eslint.org/docs/latest/use/configure/language-options#specifying-parser-options
54 lines
891 B
YAML
54 lines
891 B
YAML
env:
|
|
es2021: true
|
|
extends: 'eslint:recommended'
|
|
parserOptions:
|
|
ecmaVersion: 2022
|
|
sourceType: module
|
|
rules:
|
|
indent:
|
|
- error
|
|
- 4
|
|
- SwitchCase: 1
|
|
linebreak-style:
|
|
- error
|
|
- unix
|
|
quotes:
|
|
- error
|
|
- double
|
|
semi:
|
|
- error
|
|
- always
|
|
no-unused-vars:
|
|
- error
|
|
- argsIgnorePattern: "^_"
|
|
curly:
|
|
- error
|
|
- all
|
|
brace-style:
|
|
- error
|
|
- 1tbs
|
|
# Rules from GJS Style Guide regarding whitespace.
|
|
# See here: https://gjs.guide/guides/gjs/style-guide.html#whitespace
|
|
func-call-spacing:
|
|
- error
|
|
- never
|
|
array-bracket-spacing:
|
|
- error
|
|
- never
|
|
space-before-function-paren:
|
|
- error
|
|
- never
|
|
space-before-blocks:
|
|
- error
|
|
- always
|
|
key-spacing:
|
|
- error
|
|
- beforeColon: false
|
|
afterColon: true
|
|
mode: strict
|
|
object-curly-spacing:
|
|
- error
|
|
- always
|
|
globals:
|
|
log: readonly
|