WordPress-Coding-Standards / eslint-config-wordpress

This package has been deprecated, please use @wordpress/eslint-plugin or @wordpress/scripts
https://www.npmjs.com/package/@wordpress/eslint-plugin
MIT License
45 stars 13 forks source link

Use valid JSON syntax for usage #30

Closed westonruter closed 7 years ago

westonruter commented 7 years ago

This could fix a parse error when someone adds the line to a .eslintrc which is strict JSON.

westonruter commented 7 years ago

This being said, I see that .eslintrc is deprecated and:

JSON - use .eslintrc.json to define the configuration structure. ESLint’s JSON files also allow JavaScript-style comments.

http://eslint.org/docs/user-guide/configuring

ntwb commented 7 years ago

Thanks, I added .json as the extension in the example and added some docs for other syntax ref's