Skip to content

Commit 5a36dd3

Browse files
committed
📦 NEW: ecmaVersion: 8
1 parent c6e68b1 commit 5a36dd3

3 files changed

Lines changed: 49 additions & 54 deletions

File tree

‎.eslintrc.json‎

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
{
22
"root": true,
33
"parser": "babel-eslint",
4-
"extends": [
5-
"wordpress",
6-
"plugin:react/recommended",
7-
"plugin:jsx-a11y/recommended",
8-
"plugin:jest/recommended"
9-
],
4+
"extends": ["wordpress", "plugin:react/recommended", "plugin:jsx-a11y/recommended", "plugin:jest/recommended"],
105
"env": {
116
"browser": false,
127
"es6": true,
@@ -16,8 +11,10 @@
1611
},
1712
"parserOptions": {
1813
"sourceType": "module",
14+
"ecmaVersion": 8,
1915
"ecmaFeatures": {
20-
"jsx": true
16+
"jsx": true,
17+
"experimentalObjectRestSpread": true
2118
}
2219
},
2320
"globals": {
@@ -86,8 +83,7 @@
8683
"no-restricted-syntax": [
8784
"error",
8885
{
89-
"selector":
90-
"ImportDeclaration[source.value=/^@wordpress\\u002F.+\\u002F/]",
86+
"selector": "ImportDeclaration[source.value=/^@wordpress\\u002F.+\\u002F/]",
9187
"message": "Path access on WordPress dependencies is not allowed."
9288
},
9389
{
@@ -133,8 +129,7 @@
133129
"message": "Translate function arguments must be string literals."
134130
},
135131
{
136-
"selector":
137-
"CallExpression[callee.name=_nx]:not([arguments.2.type=/^Literal|BinaryExpression$/])",
132+
"selector": "CallExpression[callee.name=_nx]:not([arguments.2.type=/^Literal|BinaryExpression$/])",
138133
"message": "Translate function arguments must be string literals."
139134
}
140135
],

‎package.json‎

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,44 @@
11
{
2-
"private": true,
3-
"workspaces": ["packages/*"],
4-
"repository": {
5-
"type": "git",
6-
"url": "git+https://github.com/ahmadawais/create-guten-block.git"
7-
},
8-
"author": "AhmadAwais",
9-
"bugs": {
10-
"url": "https://github.com/ahmadawais/create-guten-block/issues"
11-
},
12-
"homepage": "https://github.com/ahmadawais/create-guten-block#readme",
13-
"devDependencies": {
14-
"babel-eslint": "^8.2.1",
15-
"chalk": "^2.3.0",
16-
"eslint": "^4.17.0",
17-
"eslint-config-wordpress": "^2.0.0",
18-
"eslint-plugin-jest": "^21.7.0",
19-
"eslint-plugin-jsx-a11y": "^6.0.3",
20-
"eslint-plugin-react": "^7.6.1",
21-
"eslint-plugin-wordpress": "^0.1.0",
22-
"execa": "^0.9.0",
23-
"lerna": "^2.8.0",
24-
"ora": "^1.3.0",
25-
"shelljs": "^0.8.1",
26-
"update-notifier": "^2.3.0"
27-
},
28-
"scripts": {
29-
"create-guten-block": "node tasks/cgb.js",
30-
"demo": "node tasks/cgb.js demo",
31-
"cgb": "node packages/create-guten-block/index.js",
32-
"startCGB": "node packages/cgb-scripts/scripts/start.js",
33-
"changelog": "lerna-changelog",
34-
"updated": "lerna updated",
35-
"beforepublish": "lerna bootstrap",
36-
"publishScript":
37-
"bash tasks/publish.sh && echo 'Now update dependency packages.'",
38-
"publishNPM": "bash tasks/publish.sh --npm-client=npm",
39-
"publishAlpha":
40-
"yarn && lerna bootstrap && lerna publish --independent --npm-client=npm --canary",
41-
"lerna":
42-
"yarn && lerna updated && lerna bootstrap && lerna publish --independent --npm-client=npm"
43-
}
2+
"private": true,
3+
"workspaces": [
4+
"packages/*"
5+
],
6+
"repository": {
7+
"type": "git",
8+
"url": "git+https://github.com/ahmadawais/create-guten-block.git"
9+
},
10+
"author": "AhmadAwais",
11+
"bugs": {
12+
"url": "https://github.com/ahmadawais/create-guten-block/issues"
13+
},
14+
"homepage": "https://github.com/ahmadawais/create-guten-block#readme",
15+
"devDependencies": {
16+
"babel-eslint": "^8.2.1",
17+
"chalk": "^2.3.0",
18+
"eslint": "^4.17.0",
19+
"eslint-config-wordpress": "^2.0.0",
20+
"eslint-plugin-jest": "^21.7.0",
21+
"eslint-plugin-jsx-a11y": "^6.0.3",
22+
"eslint-plugin-react": "^7.6.1",
23+
"eslint-plugin-wordpress": "^0.1.0",
24+
"execa": "^0.9.0",
25+
"lerna": "^2.8.0",
26+
"ora": "^1.3.0",
27+
"shelljs": "^0.8.1",
28+
"update-notifier": "^2.3.0"
29+
},
30+
"scripts": {
31+
"create-guten-block": "node tasks/cgb.js",
32+
"demo": "node tasks/cgb.js demo",
33+
"cgb": "node packages/create-guten-block/index.js",
34+
"startCGB": "node packages/cgb-scripts/scripts/start.js",
35+
"changelog": "lerna-changelog",
36+
"updated": "lerna updated",
37+
"beforepublish": "lerna bootstrap",
38+
"publishScript": "bash tasks/publish.sh && echo 'Now update dependency packages.'",
39+
"publishNPM": "bash tasks/publish.sh --npm-client=npm",
40+
"publishAlpha": "yarn && lerna bootstrap && lerna publish --independent --npm-client=npm --canary",
41+
"lerna": "yarn && lerna updated && lerna bootstrap && lerna publish --independent --npm-client=npm",
42+
"release": "yarn && lerna updated && lerna bootstrap && lerna publish --independent --npm-client=npm"
43+
}
4444
}

‎yarn.lock‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ babel-plugin-check-es2015-constants@^6.22.0:
500500
dependencies:
501501
babel-runtime "^6.22.0"
502502

503-
babel-plugin-syntax-async-functions@^6.8.0:
503+
babel-plugin-syntax-async-functions@^6.13.0, babel-plugin-syntax-async-functions@^6.8.0:
504504
version "6.13.0"
505505
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-async-functions/-/babel-plugin-syntax-async-functions-6.13.0.tgz#cad9cad1191b5ad634bf30ae0872391e0647be95"
506506

0 commit comments

Comments
 (0)