/
๐Ÿ™…โ€โ™€๏ธ

Ignoring code

csshtmljavascripttypescript
Table of contents
  • ESlint
  • Prettier
  • TypeScript
  • Stylelint

ESlint

eslint.org/docs/use...figuring

js
/* eslint-disable */
alert('foo')
/* eslint-enable */
/* eslint-disable no-alert, no-console */
alert('foo')
console.log('bar')
/* eslint-enable no-alert, no-console */
alert('foo') // eslint-disable-line
alert('foo') // eslint-disable-line no-alert

Prettier

prettier.io/docs/en...ore.html

js
// prettier-ignore
matrix(
1, 0, 0,
0, 1, 0,
0, 0, 1
)
html
<!-- prettier-ignore-start -->
<!-- prettier-ignore-end -->

TypeScript

ts
// @ts-ignore

TSLint

ts
/* tslint:disable no-console */
console.log()
/* tslint:disable no-console */
/* tslint:disable */
/* tslint:enable */
/* tslint:disable:rule */
/* tslint:enable:rule */
/* tslint:disable-next-line */
/* tslint:disable-line */
/* tslint:disable-next-line:rule */

Stylelint

js
/* stylelint-disable */
const Container = styled.div``
/* stylelint-enable */
Want to make your own site like this? Try gatsby-theme-code-notes by Zander Martineau.
Notes on code. My second brain, by Zander Martineau.