[gjs: 1/2] add .editorconfig file




commit 2f67bcd5ffa5e5d5a37827af44f345a70db484fc
Author: Sonny Piers <sonny fastmail net>
Date:   Thu Jan 21 13:26:22 2021 +0100

    add .editorconfig file

 .editorconfig      | 14 ++++++++++++++
 doc/Environment.md | 26 +++++++++++++-------------
 doc/Modules.md     |  2 +-
 3 files changed, 28 insertions(+), 14 deletions(-)
---
diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 00000000..848b14fc
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,14 @@
+# SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+# SPDX-FileCopyrightText: 2021 Sonny Piers <sonny fastmail net>
+
+# EditorConfig is awesome: https://EditorConfig.org
+
+root = true
+
+[*]
+indent_style = space
+indent_size = 4
+charset = utf-8
+trim_trailing_whitespace = true
+end_of_line = lf
+insert_final_newline = true
diff --git a/doc/Environment.md b/doc/Environment.md
index 68ac0fd1..c584498c 100644
--- a/doc/Environment.md
+++ b/doc/Environment.md
@@ -5,34 +5,34 @@ GJS allows runtime configuration with a number of environment variables.
 ### General
 
 * `GJS_PATH`
-  
+
   Set this variable to a list of colon-separated (`:`) paths (just like `PATH`),
   to add them to the search path for the importer. Use of the `--include-path`
   command-line option is preferred over this variable.
 
 * `GJS_ABORT_ON_OOM`
-  
+
   > NOTE: This feature is not well tested.
-  
+
   Setting this variable to any value causes GJS to exit when an out-of-memory
   condition is encountered, instead of just printing a warning.
-  
+
 ### JavaScript Engine
 
 * `JS_GC_ZEAL`
-  
+
   Enable GC zeal, a testing and debugging feature that helps find GC-related
   bugs in JSAPI applications. See the [Hacking][hacking-gczeal] and the
   [JSAPI Documentation][mdn-gczeal] for more information about this variable.
 
 * `GJS_DISABLE_JIT`
-  
+
   Setting this variable to any value will disable JIT compiling in the
   JavaScript engine.
 
 
 ### Debugging
-  
+
 * `GJS_DEBUG_HEAP_OUTPUT`
 
   In addition to `System.dumpHeap()`, you can dump a heap from a running program
@@ -40,14 +40,14 @@ GJS allows runtime configuration with a number of environment variables.
   `SIGUSR1` signal.
 
 * `GJS_DEBUG_OUTPUT`
-  
+
   Set this to "stderr" to log to `stderr` or a file path to save to.
 
 * `GJS_DEBUG_TOPICS`
-  
+
   Set this to a semi-colon delimited (`;`) list of prefixes to allow to be
   logged. Prefixes include:
-  
+
    * "JS GI USE"
    * "JS MEMORY"
    * "JS CTX"
@@ -78,19 +78,19 @@ GJS allows runtime configuration with a number of environment variables.
 ### Testing
 
 * `GJS_COVERAGE_OUTPUT`
-  
+
   Set this variable to define an output path for code coverage information. Use
   of the `--coverage-output` command-line option is preferred over this
   variable.
 
 * `GJS_COVERAGE_PREFIXES`
-  
+
   Set this variable to define a colon-separated (`:`) list of prefixes to output
   code coverage information for. Use of the `--coverage-prefix` command-line
   option is preferred over this variable.
 
 * `GJS_ENABLE_PROFILER`
-  
+
   Set this variable to `1` to enable or `0` to disable the profiler. Use of the
   `--profile` command-line option is preferred over this variable.
 
diff --git a/doc/Modules.md b/doc/Modules.md
index e03605ba..c3b9baf4 100644
--- a/doc/Modules.md
+++ b/doc/Modules.md
@@ -314,7 +314,7 @@ Introspection lib as module, there are 4 special properties of **imports**:
 Any other properties of **imports** is treated as a module, if you access these
 properties, an import is attempted. Gjs try to look up a js file or directory by property name
 from each location in `imports.searchPath`. For `imports.foo`, if a file named
-`foo.js` is found, this file is executed and then imported as a module object; else if 
+`foo.js` is found, this file is executed and then imported as a module object; else if
 a directory `foo` is found, a new importer object is returned and its `searchPath` property
 is replaced by the path of `foo`.
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]