Skip to content
This repository was archived by the owner on Aug 31, 2022. It is now read-only.

Commit d541d36

Browse files
committed
chore: fix eslint configuration
1 parent d201e69 commit d541d36

File tree

6 files changed

+43
-24
lines changed

6 files changed

+43
-24
lines changed

.eslintignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1+
node_modules
12
coverage
2-
**/templates
3+
4+
**/generators/**/templates

.eslintrc.js

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = {
2+
extends: 'xo-space',
3+
env: {
4+
jest: true,
5+
node: true
6+
}
7+
};

package.json

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"private": true,
33
"scripts": {
4+
"lint": "eslint ./",
45
"test": "jest --projects packages/* --coverage",
56
"test:watch": "yarn test -- --watch --coverage false",
67
"prerelease": "yarn test",
@@ -15,6 +16,8 @@
1516
"@commitlint/config-angular": "^3.1.1",
1617
"commitizen": "^2.9.6",
1718
"cz-customizable": "^5.2.0",
19+
"eslint": "^4.5.0",
20+
"eslint-config-xo-space": "^0.16.0",
1821
"husky": "^0.14.3",
1922
"lerna": "^2.1.1"
2023
},

packages/create-semantic-module/package.json

+5-6
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,14 @@
1616
"bin": {
1717
"create-semantic-module": "./index.js"
1818
},
19-
"eslintConfig": {
20-
"extends": "xo-space",
21-
"env": {
22-
"jest": true,
23-
"node": true
24-
}
19+
"scripts": {
20+
"test": "jest"
2521
},
2622
"dependencies": {
2723
"generator-semantic-module": "^0.0.0-alpha.1",
2824
"yeoman-environment": "^2.0.2"
25+
},
26+
"devDependencies": {
27+
"jest": "^20.0.4"
2928
}
3029
}

packages/generator-semantic-module/package.json

-10
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
"main": "generators/app/index.js",
1717
"keywords": ["conventional commits", "commitizen", "yeoman-generator"],
1818
"devDependencies": {
19-
"eslint": "^4.1.0",
20-
"eslint-config-xo-space": "^0.16.0",
2119
"jest": "^20.0.4",
2220
"jest-cli": "^20.0.0",
2321
"nsp": "^2.6.3",
@@ -33,15 +31,7 @@
3331
"testEnvironment": "node"
3432
},
3533
"scripts": {
36-
"lint": "eslint ./",
3734
"prepublish": "nsp check",
3835
"test": "jest"
39-
},
40-
"eslintConfig": {
41-
"extends": "xo-space",
42-
"env": {
43-
"jest": true,
44-
"node": true
45-
}
4636
}
4737
}

yarn.lock

+25-7
Original file line numberDiff line numberDiff line change
@@ -1189,7 +1189,7 @@ eslint-scope@^3.7.1:
11891189
esrecurse "^4.1.0"
11901190
estraverse "^4.1.1"
11911191

1192-
eslint@^4.1.0:
1192+
eslint@^4.5.0:
11931193
version "4.5.0"
11941194
resolved "https://registry.yarnpkg.com/eslint/-/eslint-4.5.0.tgz#bb75d3b8bde97fb5e13efcd539744677feb019c3"
11951195
dependencies:
@@ -1557,10 +1557,6 @@ generate-object-property@^1.1.0:
15571557
dependencies:
15581558
is-property "^1.0.0"
15591559

1560-
generator-semantic-module@^0.0.0-alpha.4fc0b31d:
1561-
version "0.0.0"
1562-
uid ""
1563-
15641560
get-caller-file@^1.0.1:
15651561
version "1.0.2"
15661562
resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-1.0.2.tgz#f702e63127e7e231c160a80c1554acb70d5047e5"
@@ -1657,6 +1653,13 @@ glob-parent@^2.0.0:
16571653
dependencies:
16581654
is-glob "^2.0.0"
16591655

1656+
glob-parent@^3.1.0:
1657+
version "3.1.0"
1658+
resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-3.1.0.tgz#9e6af6299d8d3bd2bd40430832bd113df906c5ae"
1659+
dependencies:
1660+
is-glob "^3.1.0"
1661+
path-dirname "^1.0.0"
1662+
16601663
16611664
version "7.1.1"
16621665
resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.1.tgz#805211df04faaf1c63a3600306cdf5ade50b2ec8"
@@ -2012,6 +2015,10 @@ is-extglob@^1.0.0:
20122015
version "1.0.0"
20132016
resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-1.0.0.tgz#ac468177c4943405a092fc8f29760c6ffc6206c0"
20142017

2018+
is-extglob@^2.1.0:
2019+
version "2.1.1"
2020+
resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2"
2021+
20152022
is-finite@^1.0.0:
20162023
version "1.0.2"
20172024
resolved "https://registry.yarnpkg.com/is-finite/-/is-finite-1.0.2.tgz#cc6677695602be550ef11e8b4aa6305342b6d0aa"
@@ -2034,6 +2041,12 @@ is-glob@^2.0.0, is-glob@^2.0.1:
20342041
dependencies:
20352042
is-extglob "^1.0.0"
20362043

2044+
is-glob@^3.1.0:
2045+
version "3.1.0"
2046+
resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-3.1.0.tgz#7ba5ae24217804ac70707b96922567486cc3e84a"
2047+
dependencies:
2048+
is-extglob "^2.1.0"
2049+
20372050
is-my-json-valid@^2.12.4:
20382051
version "2.16.1"
20392052
resolved "https://registry.yarnpkg.com/is-my-json-valid/-/is-my-json-valid-2.16.1.tgz#5a846777e2c2620d1e69104e5d3a03b1f6088f11"
@@ -2600,8 +2613,8 @@ [email protected]:
26002613
resolved "https://registry.yarnpkg.com/lcov-parse/-/lcov-parse-0.0.10.tgz#1b0b8ff9ac9c7889250582b70b71315d9da6d9a3"
26012614

26022615
lerna@^2.1.1:
2603-
version "2.1.1"
2604-
resolved "https://registry.yarnpkg.com/lerna/-/lerna-2.1.1.tgz#1d563926204dca11e56d637cac16587d66aa264a"
2616+
version "2.1.2"
2617+
resolved "https://registry.yarnpkg.com/lerna/-/lerna-2.1.2.tgz#b07eb7a4d7dd7d44a105262fef49b2229301c577"
26052618
dependencies:
26062619
async "^1.5.0"
26072620
chalk "^2.1.0"
@@ -2616,6 +2629,7 @@ lerna@^2.1.1:
26162629
fs-extra "^4.0.1"
26172630
get-port "^3.2.0"
26182631
glob "^7.1.2"
2632+
glob-parent "^3.1.0"
26192633
globby "^6.1.0"
26202634
graceful-fs "^4.1.11"
26212635
inquirer "^3.2.2"
@@ -3144,6 +3158,10 @@ parse5@^1.5.1:
31443158
version "1.5.1"
31453159
resolved "https://registry.yarnpkg.com/parse5/-/parse5-1.5.1.tgz#9b7f3b0de32be78dc2401b17573ccaf0f6f59d94"
31463160

3161+
path-dirname@^1.0.0:
3162+
version "1.0.2"
3163+
resolved "https://registry.yarnpkg.com/path-dirname/-/path-dirname-1.0.2.tgz#cc33d24d525e099a5388c0336c6e32b9160609e0"
3164+
31473165
[email protected], path-exists@^2.0.0:
31483166
version "2.1.0"
31493167
resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-2.1.0.tgz#0feb6c64f0fc518d9a754dd5efb62c7022761f4b"

0 commit comments

Comments
 (0)