Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(eslint): disable prevent abbreviations #33

Merged
merged 5 commits into from
Jun 30, 2020
Merged

fix(eslint): disable prevent abbreviations #33

merged 5 commits into from
Jun 30, 2020

Conversation

stevensacks
Copy link
Contributor

Preventing abbreviations is incompatible with React standards (props, ref, etc.). Additionally, there are many scenarios where abbreviations are acceptable.

In the future, we may decide to make a whitelist, but since that will take time to decide and this rule is currently in the published ruleset, we are releasing it with the rule disabled for now to address this problem quickly.

@stevensacks stevensacks requested a review from a team as a code owner May 11, 2020 20:02
JAdshead
JAdshead previously approved these changes May 11, 2020
JamesSingleton
JamesSingleton previously approved these changes May 11, 2020
@JAdshead
Copy link
Contributor

This should probably be of type feat unless preventing abbreviations is really breaking

@jsmartfo jsmartfo requested review from smackfu, drewcur and a team May 11, 2020 21:00
@stevensacks
Copy link
Contributor Author

stevensacks commented May 11, 2020

This should probably be of type feat unless preventing abbreviations is really breaking

Technically, it is. You get an error when you useRef or <Component ref={}/>

index.js Outdated Show resolved Hide resolved
@JamesSingleton
Copy link
Contributor

@stevensacks you just need to resolve the conflicts here.

JamesSingleton
JamesSingleton previously approved these changes Jun 5, 2020
@stevensacks
Copy link
Contributor Author

@PixnBits I made the change you requested. Conflicts resolved.

@JAdshead JAdshead changed the base branch from master to feature/v13 June 30, 2020 23:08
@JAdshead JAdshead requested a review from PixnBits June 30, 2020 23:08
@JAdshead JAdshead merged commit 8285114 into americanexpress:feature/v13 Jun 30, 2020
oneamexbot added a commit that referenced this pull request Jul 16, 2020
# [13.0.0](v12.2.0...v13.0.0) (2020-07-16)

### Bug Fixes

* **eslint:** disable prevent abbreviations ([#33](#33)) ([6647bef](6647bef))

### Features

* **eslint:** configuration ([#30](#30)) ([6229d4a](6229d4a))
* **eslint:** disable function scoping ([#35](#35)) ([0a0c5bb](0a0c5bb))
* **eslint:** disable prefer default export ([#26](#26)) ([45b88d3](45b88d3))
* **eslint:** enable jest rules ([#29](#29)) ([846bbf7](846bbf7))
* **eslint:** react/jsx quality of life rules ([#24](#24)) ([facff92](facff92))
* **js:** additional js rules ([58df834](58df834))
* **prettier:** add ([#45](#45)) ([00cecaf](00cecaf))
* **unicorn:** update and seperate rules ([#43](#43)) ([940eb66](940eb66))
* **unicorn/consistent-function-scoping:** disable ([#42](#42)) ([54dd5a3](54dd5a3))

### BREAKING CHANGES

* **unicorn:** major update to unicorn
* **js:** no-lonely-if errors
* **js:** no-return-assign, errors
* **js:** prefer-object-spread, errors
* **js:** no-bitwise, errors
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.

6 participants