1.0.0 • Published 2 years ago

@rbflabs/eslint-config v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

@rbflabs/eslint-config

Install

@rbflabs/eslint-config needs to be installed with all of it peerdependencies. In your project run:

npx install-peerdeps --dev @rbflabs/eslint-config

Usage

ESLint

Create .eslintrc.js file:

module.exports = {
  // root: true // this might be needed for projects, where tsconfig and eslintrc are not in the root
  extends: ['@rbflabs'],
  parserOptions: {
    project: './tsconfig.json',
    // tsconfigRootDir: __dirname, // this might be needed for projects, where tsconfig and eslintrc are not in the root
  },
  /** All project specific eslint rules, ignorePatterns, ...  */
};

Prettier

Create .prettierrc.js file:

module.exports = require('@rbflabs/eslint-config/.prettierrc.js');
  • prettier still needs to be configured in your text editor of choice.