keith.pepin keith.pepin - 7 months ago 127
Javascript Question

Looking for an .eslintrc that conforms to the Google JavaScript Style Guide

I can't seem to find a publicly available

.eslintrc
file that implements Google's JavaScript Style Guide.

Does anyone out there have one for their projects that they would be willing to share?

Answer

https://gist.github.com/dmnsgn/75926316af5360c379da

The .eslintrc.js file of that gist lists only the properties required by the Google JavaScript Style Guide that are taken into account by ESLint. It means that it will also adhere to Code Conventions for the Java Programming Language and Douglas Crockford's Code Conventions.

The reset.eslintrc.js resets all the properties along with the properties required by the Google JavaScript Style Guide.

UPDATE: https://github.com/google/eslint-config-google

Comments