Skip to content

VinceOPS/eslint-config

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yet another opinionated ESLint configuration

Feel free to extend it.
Initially made at Gojob, see @gojob/eslint-config.

TypeScript

With the deprecation of TSLint (we'll miss you, buddy), we decided to progressively switch all our linting processes to ESLint.

Installation

You can extend our default configuration, in your own ESLint configuration (e.g. .eslintrc):

{
  "extends": [
    "@vinceops/eslint-config/typescript" // or typescript-react
  ],
}

Assuming you already installed typescript...

yarn add --dev eslint @vinceops/eslint-config prettier
# or
npm install --save-dev eslint @vinceops/eslint-config prettier

Integration with VSCode

At the present time, the ESLint plugin for VSCode has difficulties parsing/fixing TypeScript. Adding the following configuration to VSCode settings (.vscode/settings.json in your project) solves the problem:

{
  "eslint.validate": [
    "javascript",
    "javascriptreact",
    { "language": "typescript", "autoFix": true },
    "typescriptreact"
  ],
  "typescript.tsdk": "node_modules/typescript/lib"
}

About

Gojob default ESLint configurations

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%