Use eslint-plugin-amo (#4824)
This commit is contained in:
Родитель
9d266da34f
Коммит
40df084eb0
|
@ -1,13 +1,15 @@
|
|||
{
|
||||
"rules": {
|
||||
// This project uses `console.log()`.
|
||||
"no-console": "off"
|
||||
"no-console": "off",
|
||||
"amo/i18n-no-tagged-templates": "error",
|
||||
},
|
||||
"env": {
|
||||
"node": true,
|
||||
"browser": true,
|
||||
"es6": true,
|
||||
},
|
||||
"plugins": ["amo"],
|
||||
"extends": ["amo/base"],
|
||||
"parser": "@babel/eslint-parser",
|
||||
"settings": {
|
||||
|
|
|
@ -64,6 +64,7 @@
|
|||
"babel-loader": "9.1.2",
|
||||
"comment-json": "4.2.3",
|
||||
"eslint-config-amo": "5.9.0",
|
||||
"eslint-plugin-amo": "1.23.0",
|
||||
"github-markdown-css": "5.2.0",
|
||||
"gunzip-maybe": "1.4.2",
|
||||
"hashish": "0.0.4",
|
||||
|
@ -5017,6 +5018,19 @@
|
|||
"ms": "^2.1.1"
|
||||
}
|
||||
},
|
||||
"node_modules/eslint-plugin-amo": {
|
||||
"version": "1.23.0",
|
||||
"resolved": "https://registry.npmjs.org/eslint-plugin-amo/-/eslint-plugin-amo-1.23.0.tgz",
|
||||
"integrity": "sha512-kBe3j6VFRVP2A91D1JNkPn23nkOhd161EoSObV7A244TRiZDEJ/XuUtrlX8gxM8qXJDUPw/hjiz1sJSHn4rNOg==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"requireindex": "1.2.0",
|
||||
"string-natural-compare": "3.0.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 12.x"
|
||||
}
|
||||
},
|
||||
"node_modules/eslint-plugin-import": {
|
||||
"version": "2.27.5",
|
||||
"resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.27.5.tgz",
|
||||
|
@ -9579,6 +9593,15 @@
|
|||
"node": ">=0.10.0"
|
||||
}
|
||||
},
|
||||
"node_modules/requireindex": {
|
||||
"version": "1.2.0",
|
||||
"resolved": "https://registry.npmjs.org/requireindex/-/requireindex-1.2.0.tgz",
|
||||
"integrity": "sha512-L9jEkOi3ASd9PYit2cwRfyppc9NoABujTP8/5gFcbERmo5jUoAKovIC3fsF17pkTnGsrByysqX+Kxd2OTNI1ww==",
|
||||
"dev": true,
|
||||
"engines": {
|
||||
"node": ">=0.10.5"
|
||||
}
|
||||
},
|
||||
"node_modules/resolve": {
|
||||
"version": "1.22.1",
|
||||
"resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.1.tgz",
|
||||
|
@ -10050,6 +10073,12 @@
|
|||
"node": ">=10"
|
||||
}
|
||||
},
|
||||
"node_modules/string-natural-compare": {
|
||||
"version": "3.0.1",
|
||||
"resolved": "https://registry.npmjs.org/string-natural-compare/-/string-natural-compare-3.0.1.tgz",
|
||||
"integrity": "sha512-n3sPwynL1nwKi3WJ6AIsClwBMa0zTi54fn2oLU6ndfTSIO05xaznjSf15PcBZU6FNWbmN5Q6cxT4V5hGvB4taw==",
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/string-width": {
|
||||
"version": "4.2.3",
|
||||
"resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
|
||||
|
|
|
@ -96,6 +96,7 @@
|
|||
"babel-loader": "9.1.2",
|
||||
"comment-json": "4.2.3",
|
||||
"eslint-config-amo": "5.9.0",
|
||||
"eslint-plugin-amo": "1.23.0",
|
||||
"github-markdown-css": "5.2.0",
|
||||
"gunzip-maybe": "1.4.2",
|
||||
"hashish": "0.0.4",
|
||||
|
|
Загрузка…
Ссылка в новой задаче