Skip to content
This repository has been archived by the owner on Nov 23, 2022. It is now read-only.

Commit

Permalink
feat(core): spacing between blocks
Browse files Browse the repository at this point in the history
BREAKING CHANGE: require spacing between blocks

fix #17
  • Loading branch information
vuki656 committed May 9, 2022
1 parent d08cb71 commit 6cc33d6
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 1 deletion.
23 changes: 23 additions & 0 deletions core.js
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,29 @@ module.exports = {
'object-curly-spacing': 'off',
'object-shorthand': 'error',
'padded-blocks': ['error', 'never'],
'padding-line-between-statements': [
'error',
{
'blankLine': 'always',
'next': 'block',
'prev': '*',
},
{
'blankLine': 'always',
'next': '*',
'prev': 'block',
},
{
'blankLine': 'always',
'next': 'block-like',
'prev': '*',
},
{
'blankLine': 'always',
'next': '*',
'prev': 'block-like',
},
],
'prefer-promise-reject-errors': 'error',
'prefer-regex-literals': ['error', { 'disallowRedundantWrapping': true }],
'prefer-template': 'error',
Expand Down
35 changes: 34 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1366,7 +1366,40 @@ __metadata:
languageName: node
linkType: hard

"@rimac-technology/eslint-config@^22.2.3, @rimac-technology/eslint-config@workspace:.":
"@rimac-technology/eslint-config@npm:^22.2.3":
version: 22.3.0
resolution: "@rimac-technology/eslint-config@npm:22.3.0"
dependencies:
"@rimac-technology/eslint-plugin": ^1.0.1
"@typescript-eslint/eslint-plugin": ^5.14.0
"@typescript-eslint/parser": ^5.14.0
eslint-plugin-eslint-comments: ^3.2.0
eslint-plugin-etc: ^2.0.2
eslint-plugin-import: ^2.25.4
eslint-plugin-jest: ^26.1.1
eslint-plugin-jest-formatting: ^3.1.0
eslint-plugin-mobx: ^0.0.8
eslint-plugin-more: ^1.0.5
eslint-plugin-promise: ^6.0.0
eslint-plugin-react: ^7.29.3
eslint-plugin-react-hooks: ^4.3.0
eslint-plugin-sonarjs: ^0.12.0
eslint-plugin-sort-class-members: ^1.14.1
eslint-plugin-sort-destructure-keys: ^1.4.0
eslint-plugin-sort-keys-fix: ^1.1.2
eslint-plugin-testing-library: ^5.0.6
eslint-plugin-type-graphql: ^1.0.0
eslint-plugin-typescript-sort-keys: ^2.1.0
eslint-plugin-unicorn: ^41.0.0
eslint-plugin-unused-imports: ^2.0.0
eslint-plugin-workspaces: ^0.7.0
peerDependencies:
eslint: ^8
checksum: 556150eded4b119688d0e7f72ea37a26323b1007a405a19331158dfb989f9b302482200921a994e650d62af140ed07a25a7a53617a1a119c238f67a3022b397c
languageName: node
linkType: hard

"@rimac-technology/eslint-config@workspace:.":
version: 0.0.0-use.local
resolution: "@rimac-technology/eslint-config@workspace:."
dependencies:
Expand Down

0 comments on commit 6cc33d6

Please sign in to comment.