3.0.0 • Published 2 months ago

@tiffinger-thiel/eslint-config v3.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

@tiffinger-thiel/eslint-config

Usage

  1. Install
yarn add -D @tiffinger-thiel/eslint-config
  1. Setup your config files .eslintrc.js
// For yarn2 you will need this
require('@rushstack/eslint-config/patch/modern-module-resolution');

module.exports = {
  // Pick one profile.
  // Possible profiles:
  // - @tiffinger-thiel/eslint-config/profile/react
  // - @tiffinger-thiel/eslint-config/profile/node
  // - @tiffinger-thiel/eslint-config/profile/nest
  extends: ['@tiffinger-thiel/eslint-config/profile/react'],
  
  // The following is optional, it speeds up prettier if passed.
  // It should match your react version.
  settings: {
    react: {
      version: '17.0'
    }
  }
};

.prettierrc.js

module.exports = require('@tiffinger-thiel/eslint-config/prettier');

package.json

{
  "scripts": {
    "lint": "eslint \"src/**/*.{js,jsx,ts,tsx}\""
  },

  "devDependencies": {
    "@rushstack/eslint-config": "^2.5.1"
  }
}

VSCode

You only need "dbaeumer.vscode-eslint". No Prettier plugin needed. Example .vscode/settings.json:

{
  "eslint.format.enable": true,
  "eslint.packageManager": "yarn",
  "editor.formatOnSave": true,
  "[javascript]": {
    "editor.defaultFormatter": "dbaeumer.vscode-eslint"
  },
  "[javascriptreact]": {
    "editor.defaultFormatter": "dbaeumer.vscode-eslint"
  },
  "[typescript]": {
    "editor.defaultFormatter": "dbaeumer.vscode-eslint"
  },
  "[typescriptreact]": {
    "editor.defaultFormatter": "dbaeumer.vscode-eslint"
  },
}

Release

Run following

yarn
yarn release
3.0.0

2 months ago

1.4.0

2 years ago

2.0.0

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

1.2.1

2 years ago

1.2.0

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago