Fix errors
This commit is contained in:
Родитель
843a6e04a1
Коммит
60fdb61a89
|
@ -7,13 +7,13 @@
|
|||
{
|
||||
"files": "bin/*",
|
||||
"options": {
|
||||
"parser": "babylon"
|
||||
"parser": "babel"
|
||||
}
|
||||
},
|
||||
{
|
||||
"files": "scripts/*",
|
||||
"options": {
|
||||
"parser": "babylon"
|
||||
"parser": "babel"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
|
|
@ -28,9 +28,7 @@ function publish() {
|
|||
name: process.env.GH_USER,
|
||||
email: process.env.GH_EMAIL,
|
||||
},
|
||||
repo: `https://${
|
||||
process.env.GH_TOKEN
|
||||
}@github.com/mozilla/addons-linter.git`,
|
||||
repo: `https://${process.env.GH_TOKEN}@github.com/mozilla/addons-linter.git`,
|
||||
message: `Publish rules (auto)${getDeployMessage()}`,
|
||||
});
|
||||
}
|
||||
|
|
|
@ -205,9 +205,7 @@ describe('no_unsafe_innerhtml', () => {
|
|||
];
|
||||
|
||||
invalidCodes.forEach((code) => {
|
||||
it(`should not allow the use of innerHTML examples ${
|
||||
code.code
|
||||
}`, async () => {
|
||||
it(`should not allow the use of innerHTML examples ${code.code}`, async () => {
|
||||
const jsScanner = new JavaScriptScanner(code.code, 'badcode.js');
|
||||
|
||||
const { linterMessages } = await jsScanner.scan();
|
||||
|
|
Загрузка…
Ссылка в новой задаче