Skip to content

Commit 13afe84

Browse files
committed
fix(cdn): support push cdn cache
1 parent 5d2929c commit 13afe84

File tree

25 files changed

+1700
-1654
lines changed

25 files changed

+1700
-1654
lines changed

.eslintrc.js

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,31 +5,31 @@ module.exports = {
55
env: {
66
es6: true,
77
jest: true,
8-
node: true
8+
node: true,
99
},
1010
parser: 'babel-eslint',
1111
parserOptions: {
1212
ecmaVersion: 2018,
1313
sourceType: 'module',
1414
ecmaFeatures: {
15-
jsx: true
16-
}
15+
jsx: true,
16+
},
1717
},
1818
globals: {
19-
on: true // for the Socket file
19+
on: true, // for the Socket file
2020
},
2121
rules: {
2222
'array-bracket-spacing': [
2323
'error',
2424
'never',
2525
{
2626
objectsInArrays: false,
27-
arraysInArrays: false
28-
}
27+
arraysInArrays: false,
28+
},
2929
],
3030
'arrow-parens': ['error', 'always'],
3131
'arrow-spacing': ['error', { before: true, after: true }],
32-
'comma-dangle': ['error', 'never'],
32+
'comma-dangle': ['error', 'always-multiline'],
3333
curly: 'error',
3434
'eol-last': 'error',
3535
'func-names': 'off',
@@ -39,8 +39,8 @@ module.exports = {
3939
min: 1,
4040
max: 50,
4141
properties: 'never',
42-
exceptions: ['e', 'i', 'n', 't', 'x', 'y', 'z', '_', '$']
43-
}
42+
exceptions: ['e', 'i', 'n', 't', 'x', 'y', 'z', '_', '$'],
43+
},
4444
],
4545
'no-alert': 'error',
4646
'no-console': 'off',
@@ -61,12 +61,12 @@ module.exports = {
6161
'single',
6262
{
6363
allowTemplateLiterals: true,
64-
avoidEscape: true
65-
}
64+
avoidEscape: true,
65+
},
6666
],
67-
semi: ['error', 'never'],
67+
semi: ['error', 'always'],
6868
'spaced-comment': 'error',
6969
strict: ['error', 'global'],
70-
'prettier/prettier': 'error'
71-
}
72-
}
70+
'prettier/prettier': 'error',
71+
},
72+
};

commitlint.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const Configuration = {
33
* Resolve and load @commitlint/config-conventional from node_modules.
44
* Referenced packages must be installed
55
*/
6-
extends: ['@commitlint/config-conventional']
7-
}
6+
extends: ['@commitlint/config-conventional'],
7+
};
88

9-
module.exports = Configuration
9+
module.exports = Configuration;

prettier.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
module.exports = {
22
arrowParens: 'always',
33
printWidth: 100,
4-
semi: false,
4+
semi: true,
55
singleQuote: true,
66
tabWidth: 2,
7-
trailingComma: 'none'
8-
}
7+
trailingComma: 'all',
8+
};

release.config.js

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,56 +3,56 @@ module.exports = {
33
'@semantic-release/changelog',
44
'@semantic-release/npm',
55
'@semantic-release/git',
6-
'@semantic-release/github'
6+
'@semantic-release/github',
77
],
88
plugins: [
99
[
1010
'@semantic-release/commit-analyzer',
1111
{
1212
preset: 'angular',
1313
parserOpts: {
14-
noteKeywords: ['BREAKING CHANGE', 'BREAKING CHANGES', 'BREAKING']
15-
}
16-
}
14+
noteKeywords: ['BREAKING CHANGE', 'BREAKING CHANGES', 'BREAKING'],
15+
},
16+
},
1717
],
1818
[
1919
'@semantic-release/release-notes-generator',
2020
{
2121
preset: 'angular',
2222
parserOpts: {
23-
noteKeywords: ['BREAKING CHANGE', 'BREAKING CHANGES', 'BREAKING']
23+
noteKeywords: ['BREAKING CHANGE', 'BREAKING CHANGES', 'BREAKING'],
2424
},
2525
writerOpts: {
26-
commitsSort: ['subject', 'scope']
27-
}
28-
}
26+
commitsSort: ['subject', 'scope'],
27+
},
28+
},
2929
],
3030
[
3131
'@semantic-release/changelog',
3232
{
33-
changelogFile: 'CHANGELOG.md'
34-
}
33+
changelogFile: 'CHANGELOG.md',
34+
},
3535
],
3636
[
3737
'@semantic-release/npm',
3838
{
3939
pkgRoot: '.',
4040
npmPublish: true,
41-
tarballDir: false
42-
}
41+
tarballDir: false,
42+
},
4343
],
4444
[
4545
'@semantic-release/git',
4646
{
4747
assets: ['package.json', 'src/**', 'CHANGELOG.md'],
48-
message: 'chore(release): version ${nextRelease.version} \n\n${nextRelease.notes}'
49-
}
48+
message: 'chore(release): version ${nextRelease.version} \n\n${nextRelease.notes}',
49+
},
5050
],
5151
[
5252
'@semantic-release/github',
5353
{
54-
assets: ['!.env']
55-
}
56-
]
57-
]
58-
}
54+
assets: ['!.env'],
55+
},
56+
],
57+
],
58+
};

0 commit comments

Comments
 (0)