mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
Add eslint ban rule (#2517)
This commit is contained in:
committed by
GitHub
parent
9a2bca0611
commit
1b61687a1d
@@ -19,9 +19,20 @@
|
|||||||
"plugins": [
|
"plugins": [
|
||||||
"eslint-plugin-rxjs",
|
"eslint-plugin-rxjs",
|
||||||
"eslint-plugin-unicorn",
|
"eslint-plugin-unicorn",
|
||||||
"prettier"
|
"prettier",
|
||||||
|
"ban"
|
||||||
],
|
],
|
||||||
"rules": {
|
"rules": {
|
||||||
|
"ban/ban": [
|
||||||
|
"error",
|
||||||
|
{ "name": "eval", "message": "Calls to eval is not allowed." },
|
||||||
|
{ "name": "fdescribe", "message": "Calls to fdescribe is not allowed" },
|
||||||
|
{ "name": "fit", "message": "Calls to fit is not allowed" },
|
||||||
|
{ "name": "xit", "message": "Calls to xit is not allowed" },
|
||||||
|
{ "name": "xdescribe", "message": "Calls to xdescribe is not allowed" },
|
||||||
|
{ "name": ["test", "only"], "message": "Calls to test.only is not allowed" },
|
||||||
|
{ "name": ["describe", "only"], "message": "Calls to describe.only is not allowed" }
|
||||||
|
],
|
||||||
"prettier/prettier": "error",
|
"prettier/prettier": "error",
|
||||||
"no-shadow": "off",
|
"no-shadow": "off",
|
||||||
"@typescript-eslint/no-shadow": "error",
|
"@typescript-eslint/no-shadow": "error",
|
||||||
|
9
package-lock.json
generated
9
package-lock.json
generated
@@ -8105,6 +8105,15 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"eslint-plugin-ban": {
|
||||||
|
"version": "1.6.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/eslint-plugin-ban/-/eslint-plugin-ban-1.6.0.tgz",
|
||||||
|
"integrity": "sha512-gZptoV+SFHOHO57/5lmPvizMvSXrjFatP9qlVQf3meL/WHo9TxSoERygrMlESl19CPh95U86asTxohT8OprwDw==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"requireindex": "~1.2.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"eslint-plugin-import": {
|
"eslint-plugin-import": {
|
||||||
"version": "2.25.4",
|
"version": "2.25.4",
|
||||||
"resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.25.4.tgz",
|
"resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.25.4.tgz",
|
||||||
|
@@ -87,6 +87,7 @@
|
|||||||
"dotenv-expand": "^5.1.0",
|
"dotenv-expand": "^5.1.0",
|
||||||
"envsub": "^4.0.7",
|
"envsub": "^4.0.7",
|
||||||
"eslint": "^7.6.0",
|
"eslint": "^7.6.0",
|
||||||
|
"eslint-plugin-ban": "^1.6.0",
|
||||||
"eslint-plugin-import": "^2.25.4",
|
"eslint-plugin-import": "^2.25.4",
|
||||||
"eslint-plugin-jsdoc": "30.7.6",
|
"eslint-plugin-jsdoc": "30.7.6",
|
||||||
"eslint-plugin-prefer-arrow": "1.2.3",
|
"eslint-plugin-prefer-arrow": "1.2.3",
|
||||||
|
Reference in New Issue
Block a user