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: README.md
+8-9Lines changed: 8 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,6 @@ Then enhance it with one or more **addons**:
43
43
-`browser` - If you are going to develop code for the browser (assumes you use CommonJS or AMD)
44
44
-`node` - If you are going to develop code for [NodeJS](nodejs.org)
45
45
-`es6-modules`: If you are going to use ES6 import & export instead of CommonJS or AMD
46
-
-`object-spread`: Allows to use [object rest spread](https://github.com/tc39/proposal-object-rest-spread) when destructuring objects (not necessary if you are using the `es9` base configuration)
47
46
-`babel-parser`: Use [babel-eslint](https://github.com/babel/babel-eslint) parser so that you may use language features that are not yet implemented in eslint (e.g.: dynamic imports)
48
47
-`react` - If you are going to use [React](https://reactjs.org/) (requires `es6` base configuration or higher)
49
48
-`jest` - If you are going to use [Jest](https://facebook.github.io/jest/) to develop tests
@@ -57,35 +56,35 @@ Cutting edge react in the browser:
57
56
{
58
57
"root": true,
59
58
"extends": [
60
-
"eslint-config-moxy/es8",
59
+
"eslint-config-moxy/es9",
61
60
"eslint-config-moxy/addons/browser",
62
61
"eslint-config-moxy/addons/es6-modules",
63
62
"eslint-config-moxy/addons/react"
64
63
]
65
64
}
66
65
```
67
66
68
-
ES6 with modules in NodeJS (requires a transpiler such as Babel or similar):
67
+
Cutting edge in NodeJS:
69
68
70
69
```json
71
70
{
72
71
"root": true,
73
72
"extends": [
74
-
"eslint-config-moxy/es6",
75
-
"eslint-config-moxy/addons/node",
76
-
"eslint-config-moxy/addons/es6-modules"
73
+
"eslint-config-moxy/es9",
74
+
"eslint-config-moxy/addons/node"
77
75
]
78
76
}
79
77
```
80
78
81
-
Use ES6 in NodeJS without any transpiler:
79
+
Cutting edge with modules in NodeJS (requires a transpiler such as Babel or similar):
0 commit comments