Skip to content

Commit 5030ef9

Browse files
committed
Edited ch01.asciidoc with Atlas code editor
1 parent 6c95368 commit 5030ef9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ch01.asciidoc

+2-1
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ image::images/pmjs_0102.png["Validating a piece of source code through ESLint."]
294294

295295
ESLint is able to fix most style problems automatically if we pass in a `--fix` flag. Add the following script to your _package.json_:
296296

297-
[role="pagebreak-before"]
297+
298298
[source,json]
299299
----
300300
{
@@ -306,6 +306,7 @@ ESLint is able to fix most style problems automatically if we pass in a `--fix`
306306

307307
When we run `lint-fix` we'll only get a pair of errors: `hello` is never used and `false` is a constant condition. Every other error has been fixed in place, resulting in the following bit of source code. The remaining errors weren't fixed because ESLint avoids making assumptions about our code, and prefers not to incur semantic changes. In doing so, `--fix` becomes a useful tool to resolve code style wrinkles without risking a broken program as a result.
308308

309+
[role="pagebreak-before"]
309310
[source,javascript]
310311
----
311312
var goodbye = 'Goodbye!'

0 commit comments

Comments
 (0)