Progressive-Victory / crm-bot

Internal Discord bot for member utilities
https://progress.win/
MIT License
3 stars 4 forks source link

Eslint and formating allingment #64

Closed bowenjw closed 1 year ago

bowenjw commented 1 year ago

Eslint Rules

Added new rules to a line git and Eslint

semi - Require or disallow semicolons instead of ASI key-spacing - Enforce consistent spacing between keys and values in object literal properties

{
    "semi" : ["error", "always"],
    "key-spacing": ["error", {
        "beforeColon": false,
        "afterColon": true,
        "mode": "strict"
    }]
}

Vscode settings

Added setting to reduce number of eslint fixes

files.eol - The default end of line character. editor.tabSize - The number of spaces a tab is equal to editor.insertSpaces - Insert spaces when pressing Tab

{
    "files.eol": "\n",
    "editor.tabSize": 4,
    "editor.insertSpaces": false
}

.gitattributes

Fixes issue with git changing LF to CRLF

* text eol=lf

Testing Fix

Fixed client test three failing not finding directory