hapijs / eslint-config-hapi

Shareable ESLint config for the hapi ecosystem
Other
22 stars 23 forks source link

Rule request: key-spacing #64

Closed DiegoRBaquero closed 4 years ago

DiegoRBaquero commented 4 years ago

Support plan

Context

What problem are you trying to solve?

I believe https://eslint.org/docs/rules/key-spacing should be added, this should at least warn:

const object = {
    myKey1:'hello'
    myKey2:        123
};

Hopefully to be consistent with spaces and strict mode:

const object = {
    myKey1: 'hello'
    myKey2: 123
};

Do you have a new or modified API suggestion to solve the problem?

Add https://eslint.org/docs/rules/key-spacing rule

Would gladly PR