@opendt/eslint-config

ESLint configs for javascript

Usage no npm install needed!

<script type="module">
  import opendtEslintConfig from 'https://cdn.skypack.dev/@opendt/eslint-config';
</script>

README

ESLint Configs

Install

  1. install the dependency
npm install @opendt/config-config --save-dev
  1. use one of the following configs in your eslintrc file
{
  extends: [
    "@opendt",                              // default, common rules for js
    "@opendt/eslint-config/react-native",   // for react-native
    "@opendt/eslint-config/wechat-mini",    // for wechat mini program
    "@opendt/eslint-config/web",            // for web project
  ],
}

Coding Rules

See: JS代码规范