My personal linting preferences

Usage no npm install needed!

<script type="module">
  import chrisdothtmlEslintConfig from 'https://cdn.skypack.dev/@chrisdothtml/eslint-config';



chrisdothtml code style

My personal linting preferences

Mostly based on Standard JS. Not made to be inherited by other eslint configs. Made to be a simple install that includes prettier and easily integrates with vscode-eslint


yarn add --dev eslint @chrisdothtml/eslint-config &&\
printf '{\n  "root": true,\n  "extends": "@chrisdothtml"\n}\n' > .eslintrc

Configure vscode


  "recommendations": [


  "eslint.autoFixOnSave": true,
  "eslint.validate": [
    // required for autoFix to work in markdown files
    { "language": "markdown", "autoFix": true },
  "javascript.format.enable": false,
  "javascript.validate.enable": false,


[![chrisdothtml code style](https://img.shields.io/badge/code_style-chrisdothtml-brightgreen.svg)](https://github.com/chrisdothtml/eslint-config)