@tsukuruba/eslint-config-cowcamo

1.0.3 • Public • Published

@tsukuruba/eslint-config-cowcamo

npm version test

cowcamo's ESLint rules and configurations, extending eslint-config-airbnb and eslint-config-airbnb-typescript respectively.

Installation

$ npm install --save-dev @tsukuruba/eslint-config-cowcamo

Usage

After installation, you can use @tsukuruba/eslint-config-cowcamo in the extends section of your ESLint configuration.

.eslintrc.js:

module.exports = {
  extends: [
    '@tsukuruba/eslint-config-cowcamo',
  ],

  overrides: [
    {
      files: [
        '*.ts',
        '*.tsx',
      ],

      extends: [
        '@tsukuruba/eslint-config-cowcamo/ts',
      ],

      parserOptions: {
        project: 'path/to/your/project/tsconfig.json',
        tsconfigRootDir: __dirname,
      },
    },
  ],
};

.eslintrc.yml:

extends:
  - '@tsukuruba/eslint-config-cowcamo'

overrides:
  - files:
    - '*.ts'
    - '*.tsx'

    extends:
    - '@tsukuruba/eslint-config-cowcamo/ts'

    parserOptions:
      project: 'path/to/your/project/tsconfig.json'
      tsconfigRootDir: __dirname

Happy coding!

/@tsukuruba/eslint-config-cowcamo/

    Package Sidebar

    Install

    npm i @tsukuruba/eslint-config-cowcamo

    Weekly Downloads

    11

    Version

    1.0.3

    License

    MIT

    Unpacked Size

    53.8 kB

    Total Files

    7

    Last publish

    Collaborators

    • kiichi-sugihara
    • tgfjt