Skip to content

Latest commit

 

History

History
80 lines (56 loc) · 1.41 KB

CONTRIBUTING.md

File metadata and controls

80 lines (56 loc) · 1.41 KB

Hello world, this is iris-utilities!

Contributing

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

  1. Please follow the Code of Conduct.
  2. Open a new issue before submitting a pull request (unless when submitting a bug fix, security patch, grammatical correction, or simple change).
  3. Keep your pull request short and to the point. Don't include unrelated or biased changes.
  4. Don't include code that is not compatible with the current License.
  5. Please 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.

const example_variable = {};

class ExampleClass {
    static example_property = {};
}

Comments.

// Single-line comment.

/* Single-line comment. */

// Multi-line
// comment.

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

Whitespace, Indentation, and Newlines.

if (
    very_long_condition &&
    another_very_long_condition
) {
    // ...
}

const example_nested_array: [ number, string ][] = [
    [ 1, 'one' ],
    [ 2, 'two' ],
    [ 3, 'three' ],
];