Change rule for func-names to as-needed
This commit is contained in:
parent
0a94082983
commit
e31e9cd345
1 changed files with 5 additions and 6 deletions
|
@ -1,7 +1,5 @@
|
||||||
{
|
{
|
||||||
"plugins": [
|
"plugins": ["flowtype"],
|
||||||
"flowtype"
|
|
||||||
],
|
|
||||||
"extends": [
|
"extends": [
|
||||||
"airbnb",
|
"airbnb",
|
||||||
"plugin:import/electron",
|
"plugin:import/electron",
|
||||||
|
@ -28,7 +26,8 @@
|
||||||
"app": true
|
"app": true
|
||||||
},
|
},
|
||||||
"rules": {
|
"rules": {
|
||||||
"import/no-commonjs": 1,
|
"import/no-commonjs": "warn",
|
||||||
"import/no-amd": 1
|
"import/no-amd": "warn",
|
||||||
|
"func-names": ["warn", "as-needed"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue