eslint-config-noamkadosh

1.1.5 • Public • Published

Exported configs:

  • noamkadosh - base for javascript and typescript
  • noamkadosh/browser - when working with code that runs on the browser
  • noamkadosh/node - when working with code that runs on node
  • noamkadosh/frameworks - detects frameworks in use
    • Note: configs for individual frameworks are exported too, e.g noamkadosh/frameworks/react
  • noamkadosh/jsx - when working with jsx
  • noamkadosh/testing - detects testing framework in use
  • noamkadosh/styling - detects styling framework in use

Installation

npm

npm install --save-dev eslint-config-noamkadosh

yarn

yarn add -D eslint-config-noamkadosh

pnpm

pnpm add -D eslint-config-noamkadosh

Usage

module.exports = {
    extends: ['noamkadosh'],
}

Monorepo

In a monorepo, you should add the following to every project's eslint configuration as the plugin can't detect the tsconfig.json file in such an environment.

module.exports = {

    // ... more configuration

    extends: [
        'noamkadosh'
    ],
    parserOptions: {
        project: 'tsconfig.json',
        tsconfigRootDir: __dirname
    },
    settings: {
        'import/resolver': {
            typescript: {
                project: 'tsconfig.json',
                tsconfigRootDir: __dirname
            }
        }
    },

    // ... more configuration

}

/eslint-config-noamkadosh/

    Package Sidebar

    Install

    npm i eslint-config-noamkadosh

    Weekly Downloads

    0

    Version

    1.1.5

    License

    MIT

    Unpacked Size

    23.2 kB

    Total Files

    20

    Last publish

    Collaborators

    • noam.kadosh