Lines Matching refs:and
4 - [ESLint and Prettier](#eslint-and-prettier)
11 - [Classes, functions, and variables](#classes--functions--and-variables)
16 - [let and const](#let-and-const)
20 …and also is meant to simplify small decisions when writing code. Most of this guide applies widely…
26 # ESLint and Prettier
28 …and warnings for several style guidelines. Generally, the Expo ESLint configuration will report an…
30 ESLint also uses Prettier, a code formatter, to check code formatting and to reformat code automati…
32 ESLint has a `--fix` flag that tells it to fix errors and warnings when it can. Not all errors and …
39 - **Atom and Nuclide:** https://atom.io/packages/linter-eslint
50 …mat code disappear with Prettier so we think less about formatting when writing and reviewing code.
52 …ignore` comment above the expression whose formatting you want to preserve and let Prettier format…
69 …ost places. Use `/** block */` comments above classes, methods, and other structures and use `/* i…
87 …ugin for these choices. This section is meant to be read as light guidance and not for code review…
89 Group and sort `import` statements and `require()` calls in this order:
95 1. External modules and Node.js built-in modules (`path`, `react`) before aliased internal modules …
130 ## React and JSX
132 …ations and static methods near the top, followed by the constructor and lifecycle methods, followe…
203 …asier to find how the thing with the name is used, easier to rename and refactor, and is less cont…
218 ## Classes, functions, and variables
220 Use camel case for all names. Capitalize the names of classes and constructor functions. Start othe…
245 …and other functions that return promises with “Async” at the end if they may complete asynchronous…
270 // work itself and the reader sees it operates on promises that do the actual work.
276 …ate data while keeping it accessible in a simple way for debugging, tests, and (sparingly) patches.
286 …rnal to a module to make it clearer to readers which variables are defined and used only within th…
301 …ribe an object (or program state) or reference an object, and using verbs like “is”, “was”, and “d…
313 ## `let` and `const`
315 …and `let` when you need to reassign a variable. This is simple to explain to developers working on…
317 …riable just happens not to be reassigned at this point in the code's lifetime, and `let` otherwise.
319 …and reviewing code, using `const` when possible is easy to enforce and auto-fix with a linter. Thi…
321 …ty in exchange for reducing our attention cost by writing `const` by default and `let` when needed.