@wwenv/eslint-config

0.1.1 • Public • Published

Web Working Environment ESLint config

This modules provides a recommended configuration for all parts of the Web Working Environment.

Usage

Add eslint and @wwenv/eslint-config to your devDependencies:

npm install --save-dev eslint @wwenv/eslint-config

Add a file named .eslintrc.js to your project root directory:

module.exports = {
  extends: [
    '@wwenv/eslint-config'
  ],
  parserOptions: {
    project: [
      './tsconfig.json',
    ],
  },
};

If you habe multiple tsconfig files, add them all to project like this:

module.exports = {
  extends: [
    '@wwenv/eslint-config'
  ],
  parserOptions: {
    project: [
      './tsconfig.backend.json',
      './tsconfig.frontend.json',
    ],
  },
};

License

Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0)

Copyright (c) 2021 Peter Müller peter@crycode.de

Package Sidebar

Install

npm i @wwenv/eslint-config

Weekly Downloads

0

Version

0.1.1

License

CC-BY-NC-SA-4.0

Unpacked Size

11.8 kB

Total Files

4

Last publish

Collaborators

  • crycode