Go to file
Florian Müllner fa6a712a34 lint: Transition to gjs' object spacing rule
When gjs overhauled its coding style, it opted for disallowing
spaces around braces in object literals: `{foo: 42}`.

We opted out of that particular rule in commit 09b8e8f, primarily
because it would have been a very intrusive change with the old
style of object literals:

```js
   let oldStyle = { foo: 42,
                    bar: 23 };
```

Alas, all multi-line object literals have been transitioned to
the new style where braces go on separate lines, so they are no
longer subject to the rule one way or the other.

Nowadays the rule mostly affects destructuring, and there it
is a bit odd to apply different spacing rules to arrays and
objects:

```js
    const [foo, bar] = someArray;
    const { baz, quz } = someObject;
```

This is now the main divergence from the canonical gnome style,
and the only one where we directly contradict it.

It would be good to transition away from that, and as the rule
now only affect destructuring and single-line object literals,
we can do that on a case-by-case bases by moving the override
to the legacy configuration.

As desctructuring imports makes up a fair share of the affected
code, and those will change when moving to ES6 modules, this
seems like a good moment to start that transition.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2375>
2022-07-18 21:54:22 +00:00
.gitlab/issue_templates Add a link to supported releases in the README and bug template 2021-03-03 14:47:20 +00:00
.gitlab-ci ci: Try falling back to stable branch before HEAD 2022-07-04 17:47:36 +02:00
.settings Clean out some eclipse artefacts 2019-02-13 04:39:26 +01:00
data theme: Center access dialog text 2022-07-14 16:51:52 +00:00
docs/reference build: Replace deprecated meson functions 2021-12-23 15:52:21 +00:00
js accessDialog: Allow body label to wrap lines 2022-07-14 16:51:52 +00:00
lint lint: Transition to gjs' object spacing rule 2022-07-18 21:54:22 +00:00
man man: Update options 2020-12-28 02:25:17 +01:00
meson build: Use meson's gnome.post_install() 2021-12-23 15:52:21 +00:00
po Update Catalan translation 2022-07-17 09:38:25 +02:00
src shell/app: Fix small memory leak in get_pids() 2022-07-06 18:13:46 +00:00
subprojects extensions-app: Use apps.gnome.org as website 2022-07-13 17:10:25 -04:00
tests Adopt EventEmitter class instead of injecting Signal methods 2022-07-04 18:30:49 -04:00
tools *: Fix spelling mistakes found by codespell 2020-08-21 18:25:09 +00:00
.eslintrc.yml init: Set console log domain 2021-09-01 14:55:47 +00:00
.gitignore Add small gnome-shell-extension-prefs script 2020-04-28 00:06:19 +02:00
.gitlab-ci.yml ci: Bump mutter image 2022-07-15 18:58:05 +02:00
.gitmodules submodules: Replace non-functional git.gnome.org URL by GNOME Gitlab URL 2018-09-25 08:41:30 +02:00
.jscheckignore init: Set console log domain 2021-09-01 14:55:47 +00:00
config.h.meson build: Do not redefine polkit autocleanup 2022-05-17 14:04:01 +00:00
COPYING Changed obsolete FSF postal address. 2014-01-08 04:35:14 +07:00
gnome-shell.doap gnome-shell.doap: Make marge-bot a maintainer 2020-11-17 17:29:56 +00:00
HACKING.md *: Fix spelling mistakes found by codespell 2020-08-21 18:25:09 +00:00
meson_options.txt build: Default to soup3 2022-06-21 19:29:02 +00:00
meson.build build: Use multi-line string for embedded code 2022-07-11 14:21:58 +00:00
NEWS Bump version to 43.alpha 2022-07-10 14:18:49 +02:00
README.md readme: Change "GNOME 3" to "GNOME" 2021-08-11 14:41:15 +00:00

GNOME Shell

GNOME Shell provides core user interface functions for the GNOME desktop, like switching to windows and launching applications. GNOME Shell takes advantage of the capabilities of modern graphics hardware and introduces innovative user interface concepts to provide a visually attractive and easy to use experience.

For more information about GNOME Shell, including instructions on how to build GNOME Shell from source and how to get involved with the project, see the project wiki.

Bugs should be reported to the GNOME bug tracking system. Please refer to the Schedule wiki page to see the supported versions.

Contributing

To contribute, open merge requests at https://gitlab.gnome.org/GNOME/gnome-shell.

Commit messages should follow the GNOME commit message guidelines. We require an URL to either an issue or a merge request in each commit.

Default branch

The default development branch is main. If you still have a local checkout under the old name, use:

git checkout master
git branch -m master main
git fetch
git branch --unset-upstream
git branch -u origin/main
git symbolic-ref refs/remotes/origin/HEAD refs/remotes/origin/main

License

GNOME Shell is distributed under the terms of the GNU General Public License, version 2 or later. See the COPYING file for details.