0.1.2 • Published 6 years ago

eslint-config-mfe v0.1.2

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

eslint-config-mfe

Chinese Version

Sharable ESLint configuration for mfe team, supporting es6、react、react-native、vue、node。All configuration based on airbnb and modified for mfe team requirements.

And TypeScript is supported with followed structure:

structure

What's more, the specific ts eslint rules refers to eslint-config-alloy directly.

Installation & Usage

install eslint-config-mfe

use npm or yarn:

  npm install eslint-config-mfe

install dependencies

follow deps are required:

  • base depends:
    • eslint
    • babel-eslint
    • typescript-eslint-parser
  • plugins & config:
    • eslint-config-airbnb-base or eslint-config-airbnb
    • eslint-plugin-import
    • eslint-plugin-vue
    • eslint-plugin-react
    • eslint-plugin-node
    • eslint-plugin-jsx-a11y
    • eslint-plugin-typescript

within them,please install plugins according to the requirements for special project type

config .eslintrc.js

create .eslintrc.js file under the root path of your project, then copy follow codes into the file

  module.exports = {
    extend: [
      'eslint-config-mfe/eslintrc.react.js',
      // add typescript config for ts support
      // 'eslint-config-mfe/eslintrc.typescript-react.js'
    ]
  };

for es6、vue、node project, please modify extend path to corresponding file, such as eslintrc.es6.js

quickly integration

For quickly integration, CLI tool is supported: eslint-init.

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago