Fix misplaced braces in lint config (#31)

* fix misplaced braces in lint config

* add lint instructions
This commit is contained in:
Mohammed Saud 2021-04-18 16:58:36 +05:30 committed by GitHub
parent 8564c38970
commit 6bbdb04824
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 2 deletions

View File

@ -71,6 +71,19 @@ References
Contributing
------------
### Preparing code
Install `prettier` and `eslint` (required for linting & formatting code):
```sh
npm install -g prettier eslint
```
Next, run the following in the `webui-src` directory:
To run the linter: `eslint app`
To run the formatter: `prettier -c app`
Linting and formatting can also be done with editor/IDE plugins.
### Bug Reports & Feature requests
Please create an [issue](https://github.com/Retroshare/RsNewWebUI/issues) concisely describing the bug you faced, or the feature you would like to see implemented.

View File

@ -53,12 +53,12 @@
"args": "none",
"caughtErrors": "none",
"ignoreRestSiblings": true,
"vars": "all",
"vars": "all"
}],
"no-use-before-define": ["warn", { "functions": true, "classes": false }],
"object-shorthand": "error",
"prefer-const": ["error", { "destructuring": "all" }],
"semi-style": ["warn", "last"],
"spaced-comment": ["warn", "always"]
}]
}
}

View File

@ -1,6 +1,8 @@
{
"arrowParens": "always",
"printWidth": 100,
"tabWidth": 2,
"useTabs": false,
"singleQuote": true,
"trailingComma": "es5",
"bracketSpacing": true