UNPKG
eslint-config-alloy
Version:
alpha (2.0.0-alpha.3)
latest (5.1.2)
5.1.2
5.1.1
5.1.0
5.0.0
4.9.0
4.8.0
4.7.0
4.6.2
4.6.1
4.6.0
4.5.1
4.5.0
4.4.0
4.3.0
4.2.0
4.1.0
4.0.0
3.10.0
3.9.0
3.8.2
3.8.0
3.7.4
3.7.3
3.7.2
3.7.1
3.7.0
3.6.0
3.5.0
3.4.0
3.3.0
3.2.0
3.1.1
3.1.0
3.0.0
2.1.1
2.1.0
2.0.5
2.0.4
2.0.3
2.0.2
2.0.1
2.0.0
2.0.0-alpha.3
2.0.0-alpha.2
2.0.0-alpha.1
1.4.2
1.4.1
1.4.0
1.3.1
1.3.0
1.2.1
1.2.0
1.1.1
1.1.0
1.0.0
1.0.0-beta.2
AlloyTeam ESLint 规则
alloyteam.github.io/eslint-config-alloy/
AlloyTeam/eslint-config-alloy
eslint-config-alloy
/
test
/
index
/
space-before-function-paren
/
good.js
16 lines
(13 loc)
•
289 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// good 函数名称后禁止有空格
function
foo
(
) {
console
.
log
(
'foo'
); }
// good 箭头函数的箭头前后必须有空格
let
bar
= (
) => {
console
.
log
(
'bar'
); };
// good 匿名函数的 function 后面不限制有没有空格
bar =
function
(
) { }; bar =
function
(
) { };