diff --git a/.editorconfig b/.editorconfig index 3274ec3..57a1fc8 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,6 +1,62 @@ -root = true - [*] +cpp_indent_braces=false +cpp_indent_multi_line_relative_to=innermost_parenthesis +cpp_indent_within_parentheses=indent +cpp_indent_preserve_within_parentheses=false +cpp_indent_case_labels=false +cpp_indent_case_contents=true +cpp_indent_case_contents_when_block=false +cpp_indent_lambda_braces_when_parameter=true +cpp_indent_goto_labels=one_left +cpp_indent_preprocessor=leftmost_column +cpp_indent_access_specifiers=false +cpp_indent_namespace_contents=true +cpp_indent_preserve_comments=false +cpp_new_line_before_open_brace_namespace=ignore +cpp_new_line_before_open_brace_type=ignore +cpp_new_line_before_open_brace_function=ignore +cpp_new_line_before_open_brace_block=ignore +cpp_new_line_before_open_brace_lambda=ignore +cpp_new_line_scope_braces_on_separate_lines=false +cpp_new_line_close_brace_same_line_empty_type=false +cpp_new_line_close_brace_same_line_empty_function=false +cpp_new_line_before_catch=true +cpp_new_line_before_else=true +cpp_new_line_before_while_in_do_while=false +cpp_space_before_function_open_parenthesis=remove +cpp_space_within_parameter_list_parentheses=false +cpp_space_between_empty_parameter_list_parentheses=false +cpp_space_after_keywords_in_control_flow_statements=true +cpp_space_within_control_flow_statement_parentheses=false +cpp_space_before_lambda_open_parenthesis=false +cpp_space_within_cast_parentheses=false +cpp_space_after_cast_close_parenthesis=false +cpp_space_within_expression_parentheses=false +cpp_space_before_block_open_brace=true +cpp_space_between_empty_braces=false +cpp_space_before_initializer_list_open_brace=false +cpp_space_within_initializer_list_braces=true +cpp_space_preserve_in_initializer_list=true +cpp_space_before_open_square_bracket=false +cpp_space_within_square_brackets=false +cpp_space_before_empty_square_brackets=false +cpp_space_between_empty_square_brackets=false +cpp_space_group_square_brackets=true +cpp_space_within_lambda_brackets=false +cpp_space_between_empty_lambda_brackets=false +cpp_space_before_comma=false +cpp_space_after_comma=true +cpp_space_remove_around_member_operators=true +cpp_space_before_inheritance_colon=true +cpp_space_before_constructor_colon=true +cpp_space_remove_before_semicolon=true +cpp_space_after_semicolon=false +cpp_space_remove_around_unary_operator=true +cpp_space_around_binary_operator=insert +cpp_space_around_assignment_operator=insert +cpp_space_pointer_reference_alignment=left +cpp_space_around_ternary_operator=insert +cpp_wrap_preserve_blocks=one_liners indent_style = space indent_size = 2 charset = utf-8 diff --git a/.eslintignore b/.eslintignore deleted file mode 100644 index 04c01ba..0000000 --- a/.eslintignore +++ /dev/null @@ -1,2 +0,0 @@ -node_modules/ -dist/ \ No newline at end of file diff --git a/.eslintrc b/.eslintrc deleted file mode 100644 index bc2b024..0000000 --- a/.eslintrc +++ /dev/null @@ -1,65 +0,0 @@ -{ - "env": { - "es6": true, - "amd": true, - "node": true, - "mongo": true, - "jquery": true, - "browser": true, - "commonjs": true - }, - "parserOptions": { - "ecmaVersion": 9, - "sourceType": "module", - "ecmaFeatures": { - "jsx": true, - "forOf": true, - "spread": true, - "modules": true, - "classes": true, - "generators": true, - "restParams": true, - "regexUFlag": true, - "regexYFlag": true, - "globalReturn": true, - "destructuring": true, - "impliedStrict": true, - "blockBindings": true, - "defaultParams": true, - "octalLiterals": true, - "arrowFunctions": true, - "binaryLiterals": true, - "templateStrings": true, - "superInFunctions": true, - "unicodeCodePointEscapes": true, - "experimentalObjectRestSpread": true, - "objectLiteralShorthandMethods": true, - "objectLiteralComputedProperties": true, - "objectLiteralDuplicateProperties": true, - "objectLiteralShorthandProperties": true - } - }, - "plugins": [], - "rules": { - "semi": "warn", - "indent": [ "off", "error" ], - "strict": "off", - "eqeqeq": "error", - "no-var": "warn", - "no-undef": "warn", - "valid-jsdoc": "warn", - "comma-dangle": "warn", - "no-dupe-args": "warn", - "no-dupe-keys": "warn", - "require-await": "warn", - "spaced-comment": "error", - "space-in-parens": "error", - "no-global-assign": "warn", - "no-duplicate-imports": "error", - "no-dupe-class-members": "error" - }, - "globals": { - "_config": false, - "console": false - } -} diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 184de43..65e94c7 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -1,12 +1,11 @@ # Contributing -If you wish to contribute to $(PROJECT_NAME), feel free to fork the repository and submit a pull request. -[ESLint](https://eslint.org/) is enforced to correct most typo's you make and keep the code style the same throughout the whole project, so it would be appreciated if you installed [ESLint](https://eslint.org/) to your editor of choice +If you wish to contribute to c-boilerplate, feel free to fork the repository and submit a pull request. +[EditorConfig](https://editorconfig.org) is enforced to correct most typo's you make and keep the code style the same throughout the whole project, so it would be appreciated if you installed [EditorConfig](https://editorconfig.org) to your editor of choice ## Setup To get ready to work on the codebase, please do the following: 1. Fork & clone the repository, and make sure you're on the **master** branch -2. Run `yarn --dev` or `npm install --dev` -4. Code your heart out and test using `yarn test` or `npm run test` -6. [Submit a pull request](https://github.com/Wessel/$(PROJECT_NAME)/compare) +4. Code your heart out and test using `make dev` +6. [Submit a pull request](https://github.com/Wessel/c-boilerplate/compare) diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index a51e87b..f2ea954 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -1,2 +1,2 @@ -patreon: wessel +github: wessel ko_fi: wessel diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index f842d2d..0099bf1 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -1,6 +1,6 @@ --- name: Bug Report -about: Report an issue with $(PROJECT_NAME) +about: Report an issue with c-boilerplate title: "[BUG] Bug summed up in 1 sentence" labels: bug assignees: Wessel @@ -11,13 +11,13 @@ assignees: Wessel **Include a reproducible code sample here, if possible:** -```js +```c // Place your code here ``` **Further details:** -- $(PROJECT_NAME) version: -- Node.js version: +- c-boilerplate version: +- gcc version: - Operating system: