eslint私人规范
rules
:{
"no-duplicate-case": 2,
"no-eq-null": 2,
"no-func-assign": 2,
"no-mixed-spaces-and-tabs": [2, false],
"no-nested-ternary": 0,
"no-redeclare": 2,
"no-unreachable": 2,
"no-unused-expressions": 2,
"no-use-before-define": 2,
"camelcase": 2,
"complexity": [0, 5],
"indent": [2, 4],
"max-depth": [0, 4],
"keyword-spacing":["error",{"before": true, "after": true}]
}
转载请注明原文地址: https://lol.8miu.com/read-28296.html