JavaScript Manual of Style
How to use this manual
WIP NOTE: configuration is set for ES2022
Updating Configs
WIP
Conventions
- use single quotes
- use semicolons
- two spaces for indentation
- no comma dangles
Favor...
- explicit over implicit
- developer intention over assumed developer intention
Helpful Resources
- https://eslint.org/docs/user-guide/configuring
- https://www.npmjs.com/package/eslint-config-airbnb
- https://github.com/benmosher/eslint-plugin-import
- https://google.github.io/styleguide/jsguide.html
NB:
Discussions / Questions
Difference between
env.es*
&parserOptions.ecmaVersion
env
indicates that you want to add thees*
global variables.parserOptions
indicates the syntax you want to allow. -- https://github.com/eslint/eslint/discussions/15166