@chrisdothtml/eslint-config

My personal linting preferences

Usage no npm install needed!

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

README

@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

Use

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

Configure vscode

.vscode/extensions.json

{
  "recommendations": [
    "dbaeumer.vscode-eslint",
  ],
}

.vscode/settings.json

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

Badge

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