eslint-config-luo

2.0.2 • Public • Published

eslint-config-luo

usage

参考至 eslint-config-alloy

Add the extension:

// .eslintrc.js
module.exports = {
   extends: "luo",
   globals: {
         // 这里填入你的项目需要的全局变量
         // 这里值为 false 表示这个全局变量不允许被重新赋值,比如:
         //
         // jQuery: false,
         // $: false
   },
   rules: {
         // 这里填入你的项目需要的个性化配置,比如:
         //
         // // 一个缩进必须用两个空格替代
         // 'indent': [
         //     'error',
         //     2,
         //     {
         //         SwitchCase: 1,
         //         flatTernaryExpressions: true
         //     }
         // ]
         // // 一个缩进必须用两个空格替代
         // '@typescript-eslint/indent': [
         //     'error',
         //     2,
         //     {
         //         SwitchCase: 1,
         //         flatTernaryExpressions: true
         //     }
         // ]
   }
}

// OR

// .eslintrc
{
   "extends": "luo",
   globals: {
         // 这里填入你的项目需要的全局变量
         // 这里值为 false 表示这个全局变量不允许被重新赋值,比如:
         //
         // jQuery: false,
         // $: false
   },
   rules: {
         // 这里填入你的项目需要的个性化配置,比如:
         //
         // // 一个缩进必须用两个空格替代
         // 'indent': [
         //     'error',
         //     2,
         //     {
         //         SwitchCase: 1,
         //         flatTernaryExpressions: true
         //     }
         // ]
         // // 一个缩进必须用两个空格替代
         // '@typescript-eslint/indent': [
         //     'error',
         //     2,
         //     {
         //         SwitchCase: 1,
         //         flatTernaryExpressions: true
         //     }
         // ]
   }
}

Then install the config:

npm i eslint-config-luo --save-dev

Package Sidebar

Install

npm i eslint-config-luo

Weekly Downloads

6

Version

2.0.2

License

MIT

Unpacked Size

90.1 kB

Total Files

14

Last publish

Collaborators

  • luoshilu