[gnome-shell] lint: Enforce camelCase
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] lint: Enforce camelCase
- Date: Fri, 12 Jul 2019 16:07:46 +0000 (UTC)
commit f6bed089939fce78b7fa0f97a4e9e189d60df3ae
Author: Florian Müllner <fmuellner gnome org>
Date: Mon Jan 28 05:52:24 2019 +0100
lint: Enforce camelCase
All variables should be in camelCase, so configure the corresponding
rule to enforce this. Exempt properties for now, to accommodate the
existing practice of using C-style underscore names for construct
properties of introspected objects.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/609
lint/eslintrc-shell.json | 7 +++++++
1 file changed, 7 insertions(+)
---
diff --git a/lint/eslintrc-shell.json b/lint/eslintrc-shell.json
index c5bed8690..194966b13 100644
--- a/lint/eslintrc-shell.json
+++ b/lint/eslintrc-shell.json
@@ -1,5 +1,12 @@
{
"rules": {
+ "camelcase": [
+ "error",
+ {
+ "properties": "never",
+ "allow": ["^vfunc_", "^on_"]
+ }
+ ],
"object-curly-spacing": [
"error",
"always"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]