diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..3aeb9b4 --- /dev/null +++ b/.eslintignore @@ -0,0 +1,3 @@ +node_modules/* + +local_modules/cryptonote_utils/** diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 0000000..d2f4de5 --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,40 @@ +{ + "env": { + "browser": true, + "commonjs": true, + "es6": true, + "node": true + }, + "globals": { + "LocalFileSystem": false, + "cordova": false, + "device": false + }, + "extends": "eslint:recommended", + "rules": { + "indent": [ + "off", + "tab" + ], + "linebreak-style": [ + "error", + "unix" + ], + "no-unused-vars": [ + "off", + { + "vars": "all", + "args": "after-used", + "ignoreRestSiblings": false + } + ], + "no-console": [ + "warn", + { "allow": [ "warn", "error" ] } + ], + "no-extra-semi": [ "warn" ], + "no-redeclare": [ "warn" ], + // "no-unreachable": [ "warn" ], + "no-inner-declarations": [ "warn" ] + } +} \ No newline at end of file