Skip to content

Latest commit

 

History

History
88 lines (61 loc) · 1.46 KB

CONTRIBUTING.md

File metadata and controls

88 lines (61 loc) · 1.46 KB

Hello world, this is iris-utilities!

Contributing

When contributing to I.R.I.S. Utilities, please follow these guidelines:

  1. Demonstrate the Code of Conduct.
  2. Open an issue before opening a pull request (unless for bug fixes, security patches, grammatical corrections, or simple changes).
  3. Keep your pull request short and simple. Try not to include unrelated or biased changes.
  4. Maintain compatibility with the License.
  5. Follow the Code Style Guide.

Code Style Guide

Type, Interface, Enum, and Class names.

type ExampleType = {};

interface ExampleInterface {}

enum ExampleEnum {}

class ExampleClass {}

Function, methods, and lambda names.

function exampleFunction() {}

class ExampleClass {
    exampleMethod() {}
}

const exampleLambda = () => {};

Variable and Property names.

enum ExampleEnum {
    ExampleKey,
}

const example_variable = {};

class ExampleClass {
    static ExampleEnum = ExampleEnum;

    static example_property = {};
}

Comments.

// Single-line comment.

/* Single-line comment. */

// Multi-line
// comment.

/**
 * Multi-line
 * comment.
 */

Whitespace, Indentation, and Newlines.

if (
    long_condition &&
    another_long_condition
) {
    // ...
}

type ExampleTupleType = [ number, string ];

const example_tuple_array: ExampleTupleType[] = [
    [ 1, 'one' ],
    [ 2, 'two' ],
    [ 3, 'three' ],
];