@funboxteam/eslint-config

7.4.0 • Public • Published

@funboxteam/eslint-config

npm

ESLint rules that follow our style guide.

Based on the well-known Airbnb JS Style Guide.

По-русски

Installation

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

Usage

Include into a project config using flag -c, and pass paths for files as arguments:

eslint -c node_modules/@funboxteam/eslint-config/.eslintrc.js src/app src/sandbox

To lint tests files use the separated config:

eslint -c node_modules/@funboxteam/eslint-config/.eslintrc.tests.js src/tests

Also you can create your own .eslintrc.js and extend this config there:

module.exports = {
  extends: '@funboxteam',
  env: {
    browser: true
  },
  globals: {
    fetcher: 'readonly',
    System: 'readonly',
    moment: 'readonly'
  },
  settings: {
    'import/resolver': {
      webpack: {
        config: 'config/webpack.config.dev.js',
      }
    }
  },
}

Same for tests' config:

module.exports = {
  extends: '@funboxteam/eslint-config/tests',
  globals: {
    __utils__: 'readonly',
  }
}

Read more about .eslintrc.js in ESLint docs.

Sponsored by FunBox

Readme

Keywords

Package Sidebar

Install

npm i @funboxteam/eslint-config

Weekly Downloads

113

Version

7.4.0

License

MIT

Unpacked Size

23.2 kB

Total Files

9

Last publish

Collaborators

  • m.galochkin
  • netdead
  • funbox
  • m.mamontenko