@oriflame/config-eslint 5.14.2 → 5.15.8
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/index2.js +6 -6
- package/lib/index2.js.map +1 -1
- package/package.json +4 -4
- package/src/index.ts +6 -6
package/lib/index2.js
CHANGED
@@ -13,26 +13,26 @@ function getConfig({
|
|
13
13
|
nextjs = false,
|
14
14
|
prettier = false
|
15
15
|
}) {
|
16
|
-
const presets = ['oriflame'];
|
16
|
+
const presets = ['@oriflame/eslint-config'];
|
17
17
|
|
18
18
|
if (future) {
|
19
|
-
presets.push('oriflame/future');
|
19
|
+
presets.push('@oriflame/eslint-config/future');
|
20
20
|
}
|
21
21
|
|
22
22
|
if (node) {
|
23
|
-
presets.push('oriflame/node');
|
23
|
+
presets.push('@oriflame/eslint-config/node');
|
24
24
|
}
|
25
25
|
|
26
26
|
if (typescript) {
|
27
|
-
presets.push('oriflame/typescript');
|
27
|
+
presets.push('@oriflame/eslint-config/typescript');
|
28
28
|
}
|
29
29
|
|
30
30
|
if (nextjs) {
|
31
|
-
presets.push('oriflame/nextjs');
|
31
|
+
presets.push('@oriflame/eslint-config/nextjs');
|
32
32
|
}
|
33
33
|
|
34
34
|
if (prettier) {
|
35
|
-
presets.push('oriflame/prettier');
|
35
|
+
presets.push('@oriflame/eslint-config/prettier');
|
36
36
|
}
|
37
37
|
|
38
38
|
return {
|
package/lib/index2.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index2.js","sources":["../src/index.ts"],"sourcesContent":null,"names":["getConfig","future","node","typescript","nextjs","prettier","presets","push","root","extends","ignore","IGNORE_PATHS"],"mappings":";;;;;;AAWO,SAASA,SAAT,CAAmB;AACxBC,EAAAA,MAAM,GAAG,KADe;AAExBC,EAAAA,IAAI,GAAG,KAFiB;AAGxBC,EAAAA,UAAU,GAAG,KAHW;AAIxBC,EAAAA,MAAM,GAAG,KAJe;AAKxBC,EAAAA,QAAQ,GAAG,KAAA;AALa,CAAnB,EAMyB;AAC9B,EAAA,MAAMC,OAAO,GAAG,CAAC,
|
1
|
+
{"version":3,"file":"index2.js","sources":["../src/index.ts"],"sourcesContent":null,"names":["getConfig","future","node","typescript","nextjs","prettier","presets","push","root","extends","ignore","IGNORE_PATHS"],"mappings":";;;;;;AAWO,SAASA,SAAT,CAAmB;AACxBC,EAAAA,MAAM,GAAG,KADe;AAExBC,EAAAA,IAAI,GAAG,KAFiB;AAGxBC,EAAAA,UAAU,GAAG,KAHW;AAIxBC,EAAAA,MAAM,GAAG,KAJe;AAKxBC,EAAAA,QAAQ,GAAG,KAAA;AALa,CAAnB,EAMyB;AAC9B,EAAA,MAAMC,OAAO,GAAG,CAAC,yBAAD,CAAhB,CAAA;;AAEA,EAAA,IAAIL,MAAJ,EAAY;IACVK,OAAO,CAACC,IAAR,CAAa,gCAAb,CAAA,CAAA;AACD,GAAA;;AAED,EAAA,IAAIL,IAAJ,EAAU;IACRI,OAAO,CAACC,IAAR,CAAa,8BAAb,CAAA,CAAA;AACD,GAAA;;AAED,EAAA,IAAIJ,UAAJ,EAAgB;IACdG,OAAO,CAACC,IAAR,CAAa,oCAAb,CAAA,CAAA;AACD,GAAA;;AAED,EAAA,IAAIH,MAAJ,EAAY;IACVE,OAAO,CAACC,IAAR,CAAa,gCAAb,CAAA,CAAA;AACD,GAAA;;AAED,EAAA,IAAIF,QAAJ,EAAc;IACZC,OAAO,CAACC,IAAR,CAAa,kCAAb,CAAA,CAAA;AACD,GAAA;;EAED,OAAO;AACLC,IAAAA,IAAI,EAAE,IADD;AAELC,IAAAA,OAAO,EAAEH,OAFJ;AAGLI,IAAAA,MAAM,EAAE,CACN,GAAGC,wBADG,EAEN,gBAFM,EAGN,iBAHM,EAIN,mBAJM,EAKN,SALM,EAMN,gBANM,CAAA;GAHV,CAAA;AAYD;;;;"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@oriflame/config-eslint",
|
3
|
-
"version": "5.
|
3
|
+
"version": "5.15.8",
|
4
4
|
"description": "Reusable ESLint config.",
|
5
5
|
"keywords": [
|
6
6
|
"lumos",
|
@@ -29,8 +29,8 @@
|
|
29
29
|
"src/**/*.{ts,tsx,json}"
|
30
30
|
],
|
31
31
|
"dependencies": {
|
32
|
-
"@oriflame/
|
33
|
-
"
|
32
|
+
"@oriflame/eslint-config": "^5.15.8",
|
33
|
+
"@oriflame/lumos-common": "^5.15.8"
|
34
34
|
},
|
35
35
|
"devDependencies": {
|
36
36
|
"@beemo/core": "^2.1.4",
|
@@ -57,5 +57,5 @@
|
|
57
57
|
"format": "lib",
|
58
58
|
"platform": "node"
|
59
59
|
},
|
60
|
-
"gitHead": "
|
60
|
+
"gitHead": "8ee0820bedfb9fb82378e793e590b3960e15e2ea"
|
61
61
|
}
|
package/src/index.ts
CHANGED
@@ -16,26 +16,26 @@ export function getConfig({
|
|
16
16
|
nextjs = false,
|
17
17
|
prettier = false,
|
18
18
|
}: ESLintOptions): ESLintConfig {
|
19
|
-
const presets = ['oriflame'];
|
19
|
+
const presets = ['@oriflame/eslint-config'];
|
20
20
|
|
21
21
|
if (future) {
|
22
|
-
presets.push('oriflame/future');
|
22
|
+
presets.push('@oriflame/eslint-config/future');
|
23
23
|
}
|
24
24
|
|
25
25
|
if (node) {
|
26
|
-
presets.push('oriflame/node');
|
26
|
+
presets.push('@oriflame/eslint-config/node');
|
27
27
|
}
|
28
28
|
|
29
29
|
if (typescript) {
|
30
|
-
presets.push('oriflame/typescript');
|
30
|
+
presets.push('@oriflame/eslint-config/typescript');
|
31
31
|
}
|
32
32
|
|
33
33
|
if (nextjs) {
|
34
|
-
presets.push('oriflame/nextjs');
|
34
|
+
presets.push('@oriflame/eslint-config/nextjs');
|
35
35
|
}
|
36
36
|
|
37
37
|
if (prettier) {
|
38
|
-
presets.push('oriflame/prettier');
|
38
|
+
presets.push('@oriflame/eslint-config/prettier');
|
39
39
|
}
|
40
40
|
|
41
41
|
return {
|