You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CODE_QUALITY.md
+6-13Lines changed: 6 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,23 +1,16 @@
1
1
### Code Quality Requirements for Homeworks
2
2
3
-
The code submitted to this repository is required to be formatted with [Prettier](https://github.com/prettier/prettier) (for config details see "prettier" section in `package.json`) and match [Airbnb code style](https://github.com/airbnb/javascript).
4
-
5
-
Install and use [yarn](https://yarnpkg.com/en/docs/install)
6
-
instead of `npm`.
3
+
The code submitted to this repository is required to match [JavaScript Standard Style](https://standardjs.com/).
7
4
8
5
Please follow these steps:
9
-
1. After cloning this repository install the dependencies (run `yarn` in project directory). This will install the following tools:
10
-
- eslint
11
-
- eslint-config-airbnb-base
12
-
- prettier
13
-
- eslint-config-prettier
14
-
- eslint-plugin-prettier
6
+
1. After cloning this repository install the dependencies (run `npm install` or `yarn` in project directory). This will install the following tools:
7
+
-[semistandard](https://github.com/standard/semistandard) - JavaAscript Standard style guide, linter and formatted, plus semicolon requirement
15
8
16
-
1. Install plugins for ESLint and Prettier for your code editor. Additionally you can enable "formatOnSave" option in your code editor, so that Prettier plugin will format your code every time you save a file.
9
+
1. Install plugins for Semistandard code style for your code editor. Here is an [example for VSCode](https://marketplace.visualstudio.com/items?itemName=flet.vscode-semistandard). Additionally you can enable "formatOnSave" option in your code editor, so that Standard plugin will format your code every time you save a file.
17
10
18
-
1. Before submitting the PR run `yarn run lint:js`and fix errors (if any).
11
+
1. Before submitting the PR run `npm run lint:js --fix` or `yarn run lint:js --fix`. This will check your code and fix all auto-fixable errors like missing semicolons or spaces. After that fix the remaining errors (if any).
19
12
20
-
1. This repository also enables ESLint change on pre-commit hook, so you should not be able to commit any code not conforming to ESLint rules.
13
+
1. This repository also enables Standard check on pre-commit hook, so you should not be able to commit any code not conforming to ESLint rules.
21
14
22
15
1. Make sure your files end with an empty line.
23
16
Most of the IDEs are capable of doing this for you.
0 commit comments