C2LC-277: Use ESLint to check indentation

Metadata

Source
C2LC-277
Type
Task
Priority
N/A
Status
Done
Resolution
N/A
Assignee
N/A
Reporter
Created
2020-12-10T11:23:35.893-0500
Updated
2020-12-11T10:06:15.926-0500
Versions
N/A
Fixed Versions
  1. Coding Env 0.6
Component
N/A

Description

Add rules to our eslintConfig to check indentation.

I did a little experimenting this morning and the following seems like a good starting place:

"indent": ["error", 4, {
    "CallExpression": {"arguments": "off"},
    "SwitchCase": 1
}],

See: https://eslint.org/docs/rules/indent

src/serviceWorker.js was generated by create-react-app and doesn't match our 4 space indentation. We may as well update its indentation as part of this work.

Comments