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

Eslint #42

Open
Asmaathabet opened this issue Aug 22, 2019 · 2 comments
Open

Eslint #42

Asmaathabet opened this issue Aug 22, 2019 · 2 comments

Comments

@Asmaathabet
Copy link
Member

why disable for eslint ??

@Amoodaa
Copy link
Collaborator

Amoodaa commented Aug 22, 2019

bc we agreed on the error that eslint gives and want to ignore it, to maintain consistency between the database fields names and the variable names, and converting them from underscore to camelcase would add unnecessary code
#33

// eslint-disable-next-line camelcase
const { name, content, list_id, user_id } = itemData;
const sql = {
text: 'INSERT INTO items (name, content, list_id, user_id) VALUES ($1, $2, $3, $4);',
// eslint-disable-next-line camelcase
values: [name, content, list_id, user_id]

@Amoodaa
Copy link
Collaborator

Amoodaa commented Aug 22, 2019

@Fatmasiam @Asmaathabet

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

No branches or pull requests

2 participants