eslint config
This commit is contained in:
parent
af8966aab3
commit
3b056dfb68
|
@ -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
|
||||||
|
}
|
||||||
|
}
|
File diff suppressed because it is too large
Load Diff
|
@ -8,6 +8,7 @@
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "node scripts/start.js",
|
"start": "node scripts/start.js",
|
||||||
|
"lint": "eslint scripts docs/plugins",
|
||||||
"update": "node scripts/update-plugins.js",
|
"update": "node scripts/update-plugins.js",
|
||||||
"translations": "node scripts/download-translations.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",
|
"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",
|
"homepage": "https://github.com/keeweb/keeweb-plugins#readme",
|
||||||
"devDependencies": {
|
"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",
|
"keytar": "^4.0.3",
|
||||||
"pkcs15-smartcard-sign": "^1.0.0"
|
"pkcs15-smartcard-sign": "^1.0.0"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue