Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup .editorconfig, .eslintrc, .prettierrc, .styleci.yml #16

Open
4 tasks
zhorton34 opened this issue May 21, 2020 · 0 comments
Open
4 tasks

Setup .editorconfig, .eslintrc, .prettierrc, .styleci.yml #16

zhorton34 opened this issue May 21, 2020 · 0 comments
Assignees
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@zhorton34
Copy link
Owner

  • .editorconfig
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 4
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false

[*.yml]
indent_size = 2

[*.js]
indent_size = 2
  • .eslintrc
module.exports = {
    "env": {
        "browser": true,
        "es6": true
    },
    "extends": "eslint:recommended",
    "parserOptions": {
        "sourceType": "module"
    },
    "rules": {
        "indent": [
            "error",
            4
        ],
        "linebreak-style": [
            "error",
            "unix"
        ],
        "quotes": [
            "error",
            "single"
        ],
        "semi": [
            "error",
            "never"
        ]
    }
};
  • .prettierrc
{
    "printWidth": 80,
    "tabWidth": 2,
    "useTabs": false,
    "singleQuote": true,
    "trailingComma": "es5",
    "bracketSpacing": true,
    "jsxBracketSameLine": false,
    "semi": false,
    "requirePragma": false,
    "proseWrap": "preserve",
    "arrowParens": "avoid",

    "overrides": [
        {
            "files": "resources/css/**/*.css",
            "options": {
                "tabWidth": 2
            }
        }
    ]
}
  • .styleci.yml
js:
    tab-width: 2
    use-tabs: false
    print-width: 80
    double-quotes: false
    trailing-commas: es5
    semicolons: false
    arrow-parens: avoid
    bracket-spacing: true
    finder:
        exclude:
            - build
            - dist
            - node_modules
        name:
            - '*.js'
            - '*.jsx'
        not-name:
            - '*.min.js'
@zhorton34 zhorton34 added documentation Improvements or additions to documentation enhancement New feature or request labels May 21, 2020
@zhorton34 zhorton34 self-assigned this May 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant