Skip to content

Commit

Permalink
style: add key-spacing rule & apply fixes
Browse files Browse the repository at this point in the history
This rule ensures:
```js
const foo = { bar: 'baz' };
```

Instead of allowing:
```js
const foo = { bar:'baz' };
```
  • Loading branch information
devonzara committed Apr 2, 2023
1 parent 69201da commit bb23fcc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ module.exports = {

// Brace/parenthesis spacing rules
'array-bracket-spacing': ['error', 'never'],
'key-spacing': 'off',
'@typescript-eslint/key-spacing': 'error',
'object-curly-spacing': ['error', 'always', { objectsInObjects: false }],
'object-shorthand': ['error', 'always', { avoidQuotes: true }],
'space-in-parens': ['error', 'never'],
Expand Down
4 changes: 2 additions & 2 deletions cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import { defineConfig } from 'cypress';
export default defineConfig({
e2e: {
supportFile: './cypress/support/e2e.ts',
specPattern:'./cypress/e2e',
specPattern: './cypress/e2e',
},
fixturesFolder: './cypress/fixtures',
screenshotsFolder: './cypress/screenshots',
videosFolder: './cypress/videos',
downloadsFolder: './cypress/downloads',
fileServerFolder:'./',
fileServerFolder: './',
});
2 changes: 1 addition & 1 deletion server/api/users/users.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ describe('auth router', () => {

server.login(user);

await User.destroy({ where:{ id: user.id }});
await User.destroy({ where: { id: user.id }});

const res = await server.exec.patch(`/api/users/${user.id}`).send({ bio: 'test' });
expect(res.status).toBe(404);
Expand Down

0 comments on commit bb23fcc

Please sign in to comment.