Created
          November 12, 2021 04:42 
        
      - 
      
 - 
        
Save michaelfortunato/204735fad0c34c55f100ee1263ec9ed3 to your computer and use it in GitHub Desktop.  
    Eslint Configuration (with prettier + typescript support)
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | env: | |
| commonjs: true | |
| es2021: true | |
| node: true | |
| extends: | |
| - airbnb-base | |
| - "prettier" | |
| parser: "@typescript-eslint/parser" | |
| parserOptions: | |
| ecmaVersion: 5 | |
| plugins: | |
| - "@typescript-eslint" | |
| - "prettier" | |
| rules: { "prettier/prettier": "error" } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | npm install --save-dev eslint | |
| npx eslint --init | |
| #Override generated eslint.yaml with new eslint | |
| npm install --save-dev eslint-config-prettier eslint-plugin-prettier | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment