mirror of
https://github.com/RetroShare/RSNewWebUI.git
synced 2026-09-12 19:50:04 +05:00
Fix misplaced braces in lint config (#31)
* fix misplaced braces in lint config * add lint instructions
This commit is contained in:
parent
8564c38970
commit
6bbdb04824
13
README.md
13
README.md
@ -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.
|
||||
|
||||
|
||||
@ -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"]
|
||||
}]
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,6 +1,8 @@
|
||||
{
|
||||
"arrowParens": "always",
|
||||
"printWidth": 100,
|
||||
"tabWidth": 2,
|
||||
"useTabs": false,
|
||||
"singleQuote": true,
|
||||
"trailingComma": "es5",
|
||||
"bracketSpacing": true
|
||||
|
||||
Loading…
Reference in New Issue
Block a user