1 Star 0 Fork 10

德古拉 / QMUI_Web

forked from QMUI / QMUI_Web 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.eslintrc.js 6.91 KB
一键复制 编辑 原始数据 按行查看 历史
kayo5994 提交于 2018-01-23 14:08 . update: open the indent option of ESLint
module.exports = {
'env': {
'node': true,
'commonjs': true,
'es6': true
},
'extends': 'eslint:recommended',
'parserOptions': {
'sourceType': 'module'
},
'rules': {
'accessor-pairs': 'error',
'array-bracket-spacing': [
'error',
'never'
],
'array-callback-return': 'error',
'arrow-body-style': 'error',
'arrow-parens': 'error',
'arrow-spacing': 'error',
'block-scoped-var': 'error',
'block-spacing': 'error',
'brace-style': [
'error',
'1tbs'
],
'callback-return': 'error',
'camelcase': 'error',
'comma-spacing': 'off',
'comma-style': [
'error',
'last'
],
'complexity': 'error',
'computed-property-spacing': [
'error',
'never'
],
'consistent-return': 'off',
'consistent-this': 'error',
'curly': 'error',
'default-case': 'error',
'dot-location': [
'error',
'property'
],
'dot-notation': 'error',
'eol-last': 'error',
'eqeqeq': 'error',
'func-names': 'off',
'func-style': 'off',
'generator-star-spacing': 'error',
'global-require': 'off',
'guard-for-in': 'off',
'handle-callback-err': 'error',
'id-blacklist': 'error',
'id-length': ['error', {'exceptions': ['_']}],
'id-match': 'error',
'indent': 'error',
'init-declarations': 'off',
'jsx-quotes': 'error',
'key-spacing': 'error',
'keyword-spacing': 'off',
'linebreak-style': [
'error',
'unix'
],
'lines-around-comment': 'off',
'max-depth': [2, 10],
'max-len': 'off',
'max-nested-callbacks': 'error',
'max-params': 'error',
'max-statements': 'off',
'max-statements-per-line': 'error',
'new-cap': 'error',
'new-parens': 'error',
'newline-after-var': 'off',
'newline-before-return': 'off',
'newline-per-chained-call': 'off',
'no-alert': 'error',
'no-array-constructor': 'error',
'no-bitwise': 'error',
'no-caller': 'error',
'no-catch-shadow': 'error',
'no-confusing-arrow': 'error',
'no-continue': 'error',
'no-div-regex': 'error',
'no-duplicate-imports': 'error',
'no-else-return': 'error',
'no-empty-function': 'error',
'no-eq-null': 'error',
'no-eval': 'error',
'no-extend-native': 'error',
'no-extra-bind': 'error',
'no-extra-label': 'error',
'no-extra-parens': 'error',
'no-floating-decimal': 'error',
'no-implicit-coercion': 'error',
'no-implicit-globals': 'error',
'no-implied-eval': 'error',
'no-inline-comments': 'off',
'no-inner-declarations': [
'error',
'functions'
],
'no-invalid-this': 'error',
'no-iterator': 'error',
'no-label-var': 'error',
'no-labels': 'error',
'no-lone-blocks': 'error',
'no-lonely-if': 'error',
'no-loop-func': 'error',
'no-magic-numbers': 'off',
'no-mixed-requires': 'off',
'no-multi-spaces': 'off',
'no-multi-str': 'error',
'no-multiple-empty-lines': 'error',
'no-native-reassign': 'error',
'no-negated-condition': 'off',
'no-nested-ternary': 'error',
'no-new': 'error',
'no-new-func': 'error',
'no-new-object': 'error',
'no-new-require': 'error',
'no-new-wrappers': 'error',
'no-octal-escape': 'error',
'no-param-reassign': 'off',
'no-path-concat': 'error',
'no-plusplus': [
'error',
{
'allowForLoopAfterthoughts': true
}
],
'no-process-env': 'error',
'no-process-exit': 'error',
'no-proto': 'error',
'no-restricted-globals': 'error',
'no-restricted-imports': 'error',
'no-restricted-modules': 'error',
'no-restricted-syntax': 'error',
'no-return-assign': 'error',
'no-script-url': 'error',
'no-self-compare': 'error',
'no-sequences': 'off',
'no-shadow': 'error',
'no-shadow-restricted-names': 'error',
'no-spaced-func': 'error',
'no-sync': 'off',
'no-ternary': 'off',
'no-throw-literal': 'error',
'no-trailing-spaces': 'off',
'no-undef-init': 'error',
'no-undefined': 'error',
'no-underscore-dangle': 'off',
'no-unmodified-loop-condition': 'error',
'no-unneeded-ternary': 'error',
'no-unsafe-finally': 'error',
'no-unused-expressions': 'off',
'no-unused-vars': ['error', { 'varsIgnorePattern': 'reload' }],
'no-use-before-define': 'off',
'no-useless-call': 'error',
'no-useless-computed-key': 'error',
'no-useless-concat': 'error',
'no-useless-constructor': 'error',
'no-useless-escape': 'error',
'no-var': 'off',
'no-void': 'error',
'no-warning-comments': 'off',
'no-whitespace-before-property': 'error',
'no-with': 'error',
'object-curly-spacing': [
'error',
'never'
],
'object-property-newline': 'error',
'object-shorthand': 'off',
'one-var': 'off',
'one-var-declaration-per-line': 'error',
'operator-assignment': 'error',
'operator-linebreak': 'error',
'padded-blocks': 'off',
'prefer-arrow-callback': 'off',
'prefer-const': 'error',
'prefer-reflect': [2, { exceptions: ['delete', 'apply'] }],
'prefer-rest-params': 'off',
'prefer-spread': 'off',
'prefer-template': 'off',
'quote-props': 'off',
'quotes': [
'error',
'single'
],
'radix': 'error',
'require-jsdoc': 'off',
'require-yield': 'error',
'semi': 'off',
'semi-spacing': [
'error',
{
'after': true,
'before': false
}
],
'sort-imports': 'error',
'sort-vars': 'off',
'space-before-blocks': 'off',
'space-before-function-paren': 'off',
'space-in-parens': [
'error',
'never'
],
'space-infix-ops': 'error',
'space-unary-ops': 'error',
'spaced-comment': [
'error',
'always'
],
'strict': 'error',
'template-curly-spacing': 'error',
'valid-jsdoc': 'error',
'vars-on-top': 'off',
'wrap-iife': 'error',
'wrap-regex': 'error',
'yield-star-spacing': 'error',
'yoda': [
'error',
'never'
]
}
};
JavaScript
1
https://gitee.com/voyllente/QMUI_Web.git
git@gitee.com:voyllente/QMUI_Web.git
voyllente
QMUI_Web
QMUI_Web
master

搜索帮助