@vinceops/eslint-config

2.1.0 • Public • Published

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"
}

Readme

Keywords

none

Package Sidebar

Install

npm i @vinceops/eslint-config

Weekly Downloads

0

Version

2.1.0

License

MIT

Unpacked Size

4.89 kB

Total Files

5

Last publish

Collaborators

  • vinceops