Add eslint import/no-unresolved

This commit is contained in:
Vitaliy Filippov
2024-06-05 10:51:20 +03:00
parent 1f6da79463
commit 86832dc43f
2 changed files with 7 additions and 4 deletions
+5
View File
@@ -11,6 +11,7 @@ module.exports = {
"ecmaVersion": 2020
},
"plugins": [
"import"
],
"rules": {
"indent": [
@@ -44,6 +45,10 @@ module.exports = {
],
"node/shebang": [
"off"
],
"import/no-unresolved": [
2,
{ "commonjs": true }
]
}
};
+2 -4
View File
@@ -4,7 +4,7 @@
"description": "Vitastor SDS monitor service",
"main": "mon-main.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"lint": "eslint *.js"
},
"author": "Vitaliy Filippov",
"license": "UNLICENSED",
@@ -14,12 +14,10 @@
},
"devDependencies": {
"eslint": "^8.0.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-node": "^11.1.0"
},
"engines": {
"node": ">=12.0.0"
},
"scripts": {
"lint": "eslint *.js"
}
}