Skip to content

lukasbach/eslint-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My Eslint Config

This is my personal eslint config. It's based on the Airbnb Javascript Style Guide and includes additional configuration for prettier and import rules.

Install the rules

npx install-peerdeps --dev @lukasbach/eslint-config-base
yarn add @lukasbach/eslint-config-base --dev

Add the following object to the eslint.rc:

{
  "extends": "@lukasbach/base",
  "parserOptions": {
    "project": "./tsconfig.json"
  },
  "ignorePatterns": ["lib", "*.js"]
}

or the following to your package.json:

{
  "eslintConfig": {
    "extends": "@lukasbach/base",
    "parserOptions": {
      "project": "./tsconfig.json"
    },
    "ignorePatterns": ["lib", "*.js"]
  }
}

If you need react, extend from "@lukasbach/base/react" instead.

Optionally, you can also add the following scripts to your package.json:

{
  "scripts": {
    "lint": "eslint .",
    "lint:fix": "eslint . --fix"
  }
}

You can also install "@lukasbach/eslint-config-deps" to get all peer dependencies included as actual dependencies.

yarn add @lukasbach/eslint-config-deps --dev

About

My Eslint Config

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published