Skip to content

Dozalex/lint-configs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code style configuration

Includes:

Configuration

Example of lint-staged in your package.json:

{
  "lint-staged": {
    "*.{ts,tsx}": [
      "bash -c tsc --noEmit",
      "stylelint --fix",
      "eslint --fix --quiet",
      "prettier --write"
    ]
  }
}

Example of scripts in your package.json:

{
  "scripts": {
    "prepare": "husky install",
    "lint:ts": "tsc --noEmit",
    "lint:eslint": "eslint 'src/**/*.{ts,tsx}' --fix",
    "lint:prettier": "prettier 'src/**/*.{ts,tsx}' -c",
    "lint:style": "stylelint 'src/**/styled.ts' --fix",
    "lint": "yarn lint:eslint && yarn lint:prettier && yarn lint:style && yarn lint:ts"
  }
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •