mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 14:13:34 +01:00
lint: Treat helper.js
and friends as normal browser files
This enables the prefer-arrow/prefer-arrow-functions rule.
This commit is contained in:
parent
bcd5e36688
commit
db8ca2818f
1 changed files with 18 additions and 2 deletions
|
@ -125,7 +125,9 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"files": [
|
"files": [
|
||||||
"static/**/*"
|
"static/**/*",
|
||||||
|
"tests/frontend/helper.js",
|
||||||
|
"tests/frontend/helper/**/*"
|
||||||
],
|
],
|
||||||
"excludedFiles": [
|
"excludedFiles": [
|
||||||
"**/.eslintrc.js"
|
"**/.eslintrc.js"
|
||||||
|
@ -133,7 +135,17 @@
|
||||||
"extends": "etherpad/browser",
|
"extends": "etherpad/browser",
|
||||||
"env": {
|
"env": {
|
||||||
"shared-node-browser": true
|
"shared-node-browser": true
|
||||||
}
|
},
|
||||||
|
"overrides": [
|
||||||
|
{
|
||||||
|
"files": [
|
||||||
|
"tests/frontend/helper/**/*"
|
||||||
|
],
|
||||||
|
"globals": {
|
||||||
|
"helper": "readonly"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"files": [
|
"files": [
|
||||||
|
@ -142,6 +154,8 @@
|
||||||
"excludedFiles": [
|
"excludedFiles": [
|
||||||
"**/.eslintrc.js",
|
"**/.eslintrc.js",
|
||||||
"tests/frontend/travis/**/*",
|
"tests/frontend/travis/**/*",
|
||||||
|
"tests/frontend/helper.js",
|
||||||
|
"tests/frontend/helper/**/*",
|
||||||
"tests/ratelimit/**/*"
|
"tests/ratelimit/**/*"
|
||||||
],
|
],
|
||||||
"extends": "etherpad/tests",
|
"extends": "etherpad/tests",
|
||||||
|
@ -179,6 +193,8 @@
|
||||||
],
|
],
|
||||||
"excludedFiles": [
|
"excludedFiles": [
|
||||||
"**/.eslintrc.js",
|
"**/.eslintrc.js",
|
||||||
|
"tests/frontend/helper.js",
|
||||||
|
"tests/frontend/helper/**/*",
|
||||||
"tests/frontend/travis/**/*"
|
"tests/frontend/travis/**/*"
|
||||||
],
|
],
|
||||||
"extends": "etherpad/tests/frontend",
|
"extends": "etherpad/tests/frontend",
|
||||||
|
|
Loading…
Reference in a new issue