Skip to content

Commit cdc0a0e

Browse files
author
Michael Babker
authored
Merge pull request #253 from Sandra97/patch-1
Double blank space
2 parents 01b3895 + 76b4e5e commit cdc0a0e

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

manual/javascript-j4.md

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,15 @@
11
### Javascript in Joomla 4
22

3-
Joomla 4 uses ES6 syntax where ever possible. As part of this change we decided to use an industry standard codestyle
4-
rules for our javascript - the AirBNB coding standards. These can be found [on their GitHub page](https://github.com/airbnb/javascript#table-of-contents)
3+
Joomla 4 uses ES6 syntax where ever possible. As part of this change we decided to use an industry standard codestyle rules for our JavaScript - the AirBNB coding standards. These can be found [on their GitHub page](https://github.com/airbnb/javascript#table-of-contents)
54

65
We have four modifications to the defaults.
76

8-
1. We allow parameter reassignment of function parameters to allow easier setting
9-
of defaults (for examples please see the ESLint rules [here](https://eslint.org/docs/rules/no-param-reassign)).
7+
1. We allow parameter reassignment of function parameters to allow easier setting of defaults (for examples please see the ESLint rules [here](https://eslint.org/docs/rules/no-param-reassign))
108

11-
2. Secondly we only allow the imports of dev dependencies from npm in our build directory (`build/`) (rather than in all
12-
files).
9+
2. Secondly we only allow the imports of dev dependencies from npm in our build directory (`build/`) (rather than in all files)
1310

14-
3. We currently allow browser alerts using the `alert()` function (the long term intention is to disable this as we move
15-
to our custom element alerts)
11+
3. We currently allow browser alerts using the `alert()` function (the long term intention is to disable this as we move to our custom element alerts)
1612

1713
4. We always enable javascript strict mode as we aren't using javascript modules at the moment
1814

19-
We also use ESLint to enforce these rules. If you are familiar with javascript from other projects you've worked on you
20-
can find our eslint rules at [in the following location on GitHub](https://github.com/joomla/joomla-cms/blob/4.0-dev/.eslintrc)
15+
We also use ESLint to enforce these rules. If you are familiar with JavaScript from other projects you've worked on you can find our ESLint rules [in the following location on GitHub](https://github.com/joomla/joomla-cms/blob/4.0-dev/.eslintrc).

0 commit comments

Comments
 (0)