Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Integrate Lint-Staged w/ Prettier & light ESLint config + Minimal Linting of Current Codebase #1363

Merged
merged 6 commits into from Oct 23, 2018

Conversation

CruzMolina
Copy link
Contributor

@CruzMolina CruzMolina commented Oct 22, 2018

Ran the entire codebase through eslint using a very minimal setting (no-unused-vars, semi, indent (2 spaces), & block-spacing). Inspired by a quest to eliminate our unused global requires.

There are still a number of unused local vars (~100?) I erred on the side of leaving alone for now, I also only lightly touched truffle-debugger.

Moving forward, I've added lint-staged to run w/ prettier and eslint (minimal settings) precommit. Hopefully this helps minimize stylistic reviews and bikeshedding.

Copy link
Contributor

@gnidan gnidan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Could you also include the eslintrc file?

packages/truffle-debugger/lib/data/actions/index.js Outdated Show resolved Hide resolved
packages/truffle-debugger/lib/data/actions/index.js Outdated Show resolved Hide resolved
packages/truffle-debugger/lib/data/actions/index.js Outdated Show resolved Hide resolved
@CruzMolina
Copy link
Contributor Author

@gnidan I can also push an updated package.json with the eslint devDeps and a pretest script to include in CI. Might end up being noise instead of helpful though since there are ~250 warnings that pop up.

@CruzMolina CruzMolina changed the title Minimal Linting Integrate Lint-Staged w/ Prettier & light ESLint config & Minimal Linting of Current Codebase Oct 22, 2018
@CruzMolina CruzMolina merged commit 40c66da into next Oct 23, 2018
@CruzMolina CruzMolina deleted the eslint-minimal branch October 23, 2018 00:47
@CruzMolina CruzMolina changed the title Integrate Lint-Staged w/ Prettier & light ESLint config & Minimal Linting of Current Codebase Integrate Lint-Staged w/ Prettier & light ESLint config + Minimal Linting of Current Codebase Oct 23, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants