@mrowa96/eslint-config-react
Eslint configuration for React based projects.
Last updated 2 months ago by mrowa96 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @mrowa96/eslint-config-react 
SYNC missed versions from official npm registry.

ESLint config for React based projects

What is included?

Configuration for JavaScript files e.g. webpack.config.js etc.

Based on airbnb-base with additional prettier rules

Configuration for TypeScript source files

Based on airbnb-typescript with @typescript-eslint, import and prettier

Separate configuration for TypeScript tests files

Based on previous config, but with some rules disabled for easier testing

How to use it?

You can configure your .eslintrc for example in this way:

module.exports = {
  extends: ['@mrowa96/eslint-config-react/base'],
  overrides: [
    {
      files: ['**/*.ts', '**/*.tsx'],
      extends: ['@mrowa96/eslint-config-react/typescript'],
    },
    {
      files: ['**/*.test.ts', '**/*.test.tsx'],
      extends: ['@mrowa96/eslint-config-react/typescript-test'],
    },
  ],
};

Current Tags

  • 1.3.0                                ...           latest (2 months ago)

5 Versions

  • 1.3.0                                ...           2 months ago
  • 1.2.0                                ...           3 months ago
  • 1.1.0                                ...           3 months ago
  • 1.0.0                                ...           3 months ago
  • 0.2.0                                ...           3 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dev Dependencies (3)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |