зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1265796 - add .eslintrc to devtools/shared/platform/content/; r=gregtatum
devtools/shared/platform/content/ should never require chrome or a few other things; enforce this with eslint. MozReview-Commit-ID: DLgWITOvWeB --HG-- extra : rebase_source : 3590da90f4796a03c8ab9c001f58d470ea2f5daa
This commit is contained in:
Родитель
894924cc78
Коммит
13f43b54e3
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
// Extend from the devtools eslintrc.
|
||||
"extends": "../../../.eslintrc",
|
||||
|
||||
"rules": {
|
||||
// All code in this directory must be content-clean.
|
||||
"mozilla/reject-some-requires": [2, "^(chrome|chrome:.*|resource:.*|devtools/server/.*|.*\\.jsm|devtools/shared/platform/(chome|content)/.*)$"],
|
||||
},
|
||||
}
|
Загрузка…
Ссылка в новой задаче