Skip to content

k-yle/eslint-config-kyle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eslint-config-kyle

Build Status npm version

💚 The eslint config I use for all my side projects.

A stricter version of the airbnb config with TS support.

Usage (Flat Config)

Requires eslint ≥9 and node ≥18.18

npm i -D eslint-config-kyle eslint

Add the following to package.json:

{
  "scripts": { "lint": "eslint ." },
  "prettier": "eslint-config-kyle/prettier"
}

And create a file called eslint.config.js:

export { default } from 'eslint-config-kyle';

Usage (Legacy)

npm i -D eslint-config-kyle@22 eslint@8

Add the following to package.json:

{
  "eslintConfig": { "extends": "kyle" },
  "prettier": "eslint-config-kyle/prettier"
}

VS Code configuration

{
  // By default, VS Code will not show eslint errors
  // for css files, so we need to add this snippet:
  "eslint.validate": [
    "css",
    "javascript",
    "javascriptreact",
    "typescript",
    "typescriptreact",
  ],

  // for the best DX, enable format-on-save and
  // lint-on-save.
  "editor.formatOnSave": true,
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": "explicit",
  },
}