eslint config

This commit is contained in:
antelle 2018-03-18 18:25:57 +01:00
parent af8966aab3
commit 3b056dfb68
3 changed files with 1483 additions and 0 deletions

37
.eslintrc Normal file
View File

@ -0,0 +1,37 @@
{
"extends": "standard",
"rules": {
"indent": ["error", 4, { "SwitchCase": 1 }],
"semi": ["error", "always"],
"one-var": "off",
"space-before-function-paren": "off",
"no-throw-literal": "off",
"camelcase": ["error", { "properties": "always" }],
"no-console": "error",
"no-alert": "error",
"no-debugger": "error",
"prefer-arrow-callback": "error",
"object-property-newline": "off",
"no-useless-escape": "off",
"no-var": "error",
"prefer-const": "error",
"no-unused-expressions": "error",
"strict": ["error", "never"],
"no-mixed-operators": "off",
"prefer-promise-reject-errors": "off",
"standard/no-callback-literal": "off"
},
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
"impliedStrict": true
}
},
"globals": {
"_": true,
"$": true
},
"env": {
"browser": true
}
}

1439
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -8,6 +8,7 @@
},
"scripts": {
"start": "node scripts/start.js",
"lint": "eslint scripts docs/plugins",
"update": "node scripts/update-plugins.js",
"translations": "node scripts/download-translations.js",
"watch": "run() { node ../keeweb/plugins/keeweb-plugin/keeweb-plugin.js watch docs/plugins/$1/ --bump-version --signer-module=../../../keeweb-plugins/scripts/sign; }; run",
@ -24,6 +25,12 @@
},
"homepage": "https://github.com/keeweb/keeweb-plugins#readme",
"devDependencies": {
"eslint": "^4.19.0",
"eslint-config-standard": "^11.0.0",
"eslint-plugin-import": "^2.9.0",
"eslint-plugin-node": "^6.0.1",
"eslint-plugin-promise": "^3.7.0",
"eslint-plugin-standard": "^3.0.1",
"keytar": "^4.0.3",
"pkcs15-smartcard-sign": "^1.0.0"
}