basic eslint config .. eslintignoring cryptonote_utils for now for emscripten anyway but that can probably be made more specific to the files we want to exclude
parent
e4366a708b
commit
35752d4d61
@ -0,0 +1,3 @@
|
||||
node_modules/*
|
||||
|
||||
local_modules/cryptonote_utils/**
|
@ -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" ]
|
||||
}
|
||||
}
|
Loading…
Reference in new issue