Skip to content

Commit ad4ec10

Browse files
committed
eslint --fix
1 parent 67238ec commit ad4ec10

File tree

3 files changed

+28
-27
lines changed

3 files changed

+28
-27
lines changed

eslint.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import neostandard, { resolveIgnoresFromGitignore } from 'neostandard'
22

33
export default neostandard({
44
ts: true,
5+
env: ['mocha'],
56
ignores: [
67
...resolveIgnoresFromGitignore(),
78
],

test/parse.spec.js

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -17,48 +17,48 @@ const should = chai.should()
1717

1818
/** @type {import('../index.js').SocketYml} */
1919
const defaults = {
20-
'version': 2,
21-
'githubApp': {},
22-
'issueRules': {},
23-
'projectIgnorePaths': [],
20+
version: 2,
21+
githubApp: {},
22+
issueRules: {},
23+
projectIgnorePaths: [],
2424
}
2525

2626
describe('parseSocketConfig()', () => {
2727
it('should read and parse socket.yml', async () => {
2828
const fileContent = await readFile(path.resolve(__dirname, 'sample.yml'), 'utf8')
2929

3030
parseSocketConfig(fileContent).should.deep.equal({
31-
'githubApp': {
32-
'enabled': true,
33-
'projectReportsEnabled': true,
34-
'pullRequestAlertsEnabled': true,
31+
githubApp: {
32+
enabled: true,
33+
projectReportsEnabled: true,
34+
pullRequestAlertsEnabled: true,
3535
},
36-
'issueRules': {
37-
'unresolvedRequire': false,
36+
issueRules: {
37+
unresolvedRequire: false,
3838
},
39-
'projectIgnorePaths': [
39+
projectIgnorePaths: [
4040
'workspaces/test*',
4141
'!workspaces/test-framework',
4242
],
43-
'version': 2,
43+
version: 2,
4444
})
4545
})
4646

4747
it('should read and parse socket.yml v1', async () => {
4848
const fileContent = await readFile(path.resolve(__dirname, 'sample-v1.yml'), 'utf8')
4949

5050
parseSocketConfig(fileContent).should.deep.equal({
51-
'githubApp': {
52-
'enabled': true,
53-
'projectReportsEnabled': false,
54-
'pullRequestAlertsEnabled': true,
51+
githubApp: {
52+
enabled: true,
53+
projectReportsEnabled: false,
54+
pullRequestAlertsEnabled: true,
5555
},
56-
'issueRules': {},
57-
'projectIgnorePaths': [
56+
issueRules: {},
57+
projectIgnorePaths: [
5858
'foo',
5959
'bar',
6060
],
61-
'version': 2,
61+
version: 2,
6262
})
6363
})
6464

test/read.spec.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,19 @@ chai.should()
1515
describe('readSocketConfig()', () => {
1616
it('should read and parse socket.yml', async () => {
1717
await readSocketConfig(path.resolve(__dirname, 'sample.yml')).should.eventually.become({
18-
'githubApp': {
19-
'enabled': true,
20-
'projectReportsEnabled': true,
21-
'pullRequestAlertsEnabled': true,
18+
githubApp: {
19+
enabled: true,
20+
projectReportsEnabled: true,
21+
pullRequestAlertsEnabled: true,
2222
},
23-
'issueRules': {
24-
'unresolvedRequire': false,
23+
issueRules: {
24+
unresolvedRequire: false,
2525
},
26-
'projectIgnorePaths': [
26+
projectIgnorePaths: [
2727
'workspaces/test*',
2828
'!workspaces/test-framework',
2929
],
30-
'version': 2,
30+
version: 2,
3131
})
3232
})
3333

0 commit comments

Comments
 (0)