sheerun / prettier-standard

Formats with Prettier and lints with ESLint+Standard! (✿◠‿◠)
MIT License
868 stars 44 forks source link

Computed property even spacing standard #9

Closed celso-henrique closed 7 years ago

celso-henrique commented 7 years ago

Expected "[" and "]" to be on the same line (standard/computed-property-even-spacing)

Ex: attendancesByStudentId[studentId] = attendancesByStudentId[studentId] || [];

Prettier standard will turn it into: attendancesByStudentId[studentId] = attendancesByStudentId[ studentId ] || [];

In this case maybe it should be on the same line.

sheerun commented 7 years ago

Could you post this issue on https://github.com/prettier/prettier ?

celso-henrique commented 7 years ago

okay 👍