Skip to content

Commit a613c3e

Browse files
committed
ci: skip publish on CI automatically
1 parent c9b898d commit a613c3e

File tree

10 files changed

+1590
-1055
lines changed

10 files changed

+1590
-1055
lines changed

.travis.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ before_deploy:
3838
- lerna-changelog
3939

4040
deploy:
41-
- provider: script
42-
skip_cleanup: true
43-
script: yarn lerna publish --create-release github --yes
44-
on:
45-
branch: master
41+
# - provider: script
42+
# skip_cleanup: true
43+
# script: yarn lerna publish --create-release github --yes
44+
# on:
45+
# branch: master
4646
- provider: script
4747
skip_cleanup: true
4848
script: yarn lerna publish --canary --conventional-prerelease --force-publish --preid beta --pre-dist-tag beta --yes

package.json

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -21,34 +21,35 @@
2121
"prelint": "yarn build",
2222
"prepublishOnly": "yarn build",
2323
"pretest": "yarn clean",
24+
"publish": "lerna publish --create-release github --yes",
2425
"test": "ts-node --skip-ignore node_modules/.bin/jest",
2526
"type-coverage": "type-coverage --cache --detail --ignore-catch --ignore-files *.d.ts --strict"
2627
},
2728
"devDependencies": {
28-
"@1stg/lib-config": "^0.1.15",
29-
"@1stg/tslint-config": "^0.5.7",
30-
"@types/eslint": "^6.1.3",
31-
"@types/jest": "^24.0.23",
32-
"@types/node": "^12.12.18",
33-
"@types/react": "^16.9.16",
34-
"@types/rebass": "^4.0.3",
29+
"@1stg/lib-config": "^0.1.19",
30+
"@1stg/tslint-config": "^0.5.8",
31+
"@types/eslint": "^6.1.7",
32+
"@types/jest": "^24.9.1",
33+
"@types/node": "^13.5.0",
34+
"@types/react": "^16.9.19",
35+
"@types/rebass": "^4.0.4",
3536
"@types/unist": "^2.0.3",
3637
"cosmiconfig": "^6.0.0",
3738
"eslint-mdx": "link:packages/eslint-mdx/src",
3839
"eslint-plugin-mdx": "link:packages/eslint-plugin-mdx/src",
39-
"lerna": "^3.19.0",
40+
"lerna": "^3.20.2",
4041
"npm-run-all": "^4.1.5",
4142
"react": "^16.12.0",
42-
"ts-jest": "^24.2.0",
43-
"ts-node": "^8.5.4",
44-
"tslint": "^5.20.1",
45-
"type-coverage": "^2.3.1"
43+
"ts-jest": "^25.0.0",
44+
"ts-node": "^8.6.2",
45+
"tslint": "^6.0.0",
46+
"type-coverage": "^2.4.0"
4647
},
4748
"resolutions": {
48-
"@babel/core": "^7.7.5",
49-
"@babel/preset-env": "^7.7.6",
49+
"@babel/core": "^7.8.3",
50+
"@babel/preset-env": "^7.8.3",
5051
"eslint-plugin-prettier": "^3.1.2",
51-
"typescript": "^3.7.3"
52+
"typescript": "^3.7.5"
5253
},
5354
"commitlint": {
5455
"extends": [

packages/eslint-mdx/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
},
3535
"dependencies": {
3636
"espree": "^6.1.2",
37-
"remark-mdx": "^1.5.2",
37+
"remark-mdx": "^1.5.5",
3838
"remark-parse": "^7.0.2",
3939
"tslib": "^1.10.0",
4040
"unified": "^8.4.2"

packages/eslint-mdx/src/parser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ export class Parser {
298298
const endOffset = range[1] - OFFSET
299299
nodes.push({
300300
type: 'jsx',
301-
data: nodes.length ? null : node.data,
301+
data: nodes.length > 0 ? null : node.data,
302302
value: value.slice(startOffset, endOffset),
303303
position: {
304304
start: {

packages/eslint-mdx/src/traverse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export class Traverse {
7575
} else {
7676
acc.push(node)
7777
}
78-
if (index === length - 1 && jsxNodes.length) {
78+
if (index === length - 1 && jsxNodes.length > 0) {
7979
acc.push(this.combineLeftJsxNodes(jsxNodes))
8080
}
8181
return acc

packages/eslint-plugin-mdx/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"cosmiconfig": "^6.0.0",
3737
"eslint-mdx": "^1.6.5",
3838
"eslint-plugin-react": ">=7.0.0",
39-
"remark-mdx": "^1.5.2",
39+
"remark-mdx": "^1.5.5",
4040
"remark-parse": "^7.0.2",
4141
"remark-stringify": "^7.0.4",
4242
"tslib": "^1.10.0",

packages/eslint-plugin-mdx/src/rules/helper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const requirePkg = (
1414
prefix: string,
1515
filePath?: string,
1616
) => {
17-
if (filePath && /^\.\.?([\\/]|$)/.test(plugin)) {
17+
if (filePath && /^\.\.?([/\\]|$)/.test(plugin)) {
1818
plugin = path.resolve(path.dirname(filePath), plugin)
1919
}
2020
prefix = prefix.endsWith('-') ? prefix : prefix + '-'

packages/eslint-plugin-mdx/src/rules/no-jsx-html-comments.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export const noJsxHtmlComments: Rule.RuleModule = {
2727
!JSX_TYPES.includes(node.expression.type as JsxType) ||
2828
node.parent.type !== 'Program' ||
2929
!invalidNodes ||
30-
!invalidNodes.length
30+
invalidNodes.length === 0
3131
) {
3232
return
3333
}

packages/eslint-plugin-mdx/src/rules/no-unescaped-entities.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,9 @@ export const noUnescapedEntities: Rule.RuleModule = {
9191
end += firstLineOffset
9292
}
9393
}
94-
rawLine = rawLine.substring(start, end)
94+
rawLine = rawLine.slice(start, end)
9595
entities.forEach(entity => {
96+
// eslint-disable-next-line unicorn/no-for-loop
9697
for (let index = 0; index < rawLine.length; index++) {
9798
const char = rawLine[index]
9899
if (typeof entity === 'string') {

0 commit comments

Comments
 (0)