这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@robdodson
Copy link
Collaborator

@alice PTAL.

I really dislike ESLint because it mixes style guide enforcement with error checking and is super wonky to configure.

Having said that, as soon as I published v3.0 someone pointed out that I had snuck an untranspiled const in there.

This PR adds ESLint back but scopes it to only lint the src/focus-ring.js file, and to only check that we're not using ES2015 features. It does not try to do style guide enforcement via ESLint (instead it defers to Prettier). Finally, the PR adds a precommit hook to run ESLint against any file changes to src/focus-ring.js and bail if it fails.

@robdodson
Copy link
Collaborator Author

giphy

@robdodson robdodson merged commit d4ba797 into master Nov 22, 2017
@alice
Copy link
Member

alice commented Nov 26, 2017

Everything about this PR is excellent.

@robdodson robdodson deleted the ugh-eslint branch February 7, 2018 16:26
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.

3 participants