Skip to content

Commit

Permalink
Fix lint config
Browse files Browse the repository at this point in the history
  • Loading branch information
joao Felipe Santoro Pinto committed Feb 25, 2021
1 parent 3a5a34c commit 0b3d09a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/node_modules/*
/public/workbox-*.js
/public/sw.js
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "./node_modules/.bin/eslint ./pages/posts/* --max-warnings=0",
"lint": "./node_modules/.bin/eslint . --max-warnings=0",
"test": "jest",
"test:watch": "yarn test --watchAll",
"predeploy": "npm run build",
Expand Down
10 changes: 6 additions & 4 deletions pages/posts/lazy-loading-nativo-de-imagens-sem-javascript.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,10 @@ export default function NativeLazyLoading() {
O lazy-loading é uma técnica que adia o carregamento de recursos
não-críticos no momento do carregamento da página. Em vez disso,
esses recursos não-críticos são carregados no momento em que forem
necessários. No que diz respeito às imagens, "não crítico" costuma
ser sinônimo de "fora da tela". fonte: web.dev/lazy-loading
escrito por Jeremy Wagner e Rachel Andrew
necessários. No que diz respeito às imagens, "não
crítico" costuma ser sinônimo de "fora da tela".
fonte: web.dev/lazy-loading escrito por Jeremy Wagner e Rachel
Andrew
</blockquote>
<p>
Isso significa que, usando o lazy-loading, alcançamos os seguintes
Expand Down Expand Up @@ -146,7 +147,8 @@ export default function NativeLazyLoading() {
<p>
Então, como é essa nova forma de <code>lazy-loading?</code> Não se
preocupe, é bastante simples. Você apenas tem que adicionar{' '}
<code>"loading = &quot;lazy"</code> à sua tag de imagem e pronto.
<code>&quot;loading = &quot;lazy&quot;</code> à sua tag de imagem{' '}
e pronto.
</p>
<pre className={styles.pre}>
<Highlight language="javascript">
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8647,7 +8647,7 @@ typedarray@^0.0.6:
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=

typescript@^4.2.2:
typescript@^4.2.0:
version "4.2.2"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.2.2.tgz#1450f020618f872db0ea17317d16d8da8ddb8c4c"
integrity sha512-tbb+NVrLfnsJy3M59lsDgrzWIflR4d4TIUjz+heUnHZwdF7YsrMTKoRERiIvI2lvBG95dfpLxB21WZhys1bgaQ==
Expand Down

0 comments on commit 0b3d09a

Please sign in to comment.