Skip to content

Implement static analysis linting#46

Closed
macintoshhelper wants to merge 1 commit intocommaai:masterfrom
macintoshhelper:dev/lint
Closed

Implement static analysis linting#46
macintoshhelper wants to merge 1 commit intocommaai:masterfrom
macintoshhelper:dev/lint

Conversation

@macintoshhelper
Copy link
Contributor

Disabled create-react-app runtime linting and replaced it with Airbnb static code analysis linting.

Best used with VS Code + https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint , but should have wide compatibility with other code editors.

I've disabled linting for a large chunk of the existing code for now to allow for iterative clean up, don't want massive merge conflicts or bug introduction.

New script: npm run lint to check the linting, and could later be integrated with a precommit hook or CI checks.

There is a debate between using Prettier or ESLint, this PR is opinionated. I personally prefer ESLint, since it lets you override it nicely when you intend to do so, has less magic and is nicer for git diffs. There might be ways to integrate the two, but might be unstable and overkill for now.

fixes #43

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Airbnb lint config proposal

2 participants