Skip to content

Commit fca893c

Browse files
committed
chore(lint): require blank line before expect statements, etc
Signed-off-by: Konstantinos Maninakis <[email protected]>
1 parent b1118e9 commit fca893c

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

.eslintrc.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,9 +385,12 @@ module.exports = {
385385
* ======================================================================================
386386
*/
387387
files: ['*.test.ts', '*.test.js', '*.spec.ts', '*.spec.js'],
388+
plugins: ['jasmine'],
388389
rules: {
389390
// overrides to antfu's config follow
390391
'no-only-tests/no-only-tests': 'warn',
392+
'jasmine/new-line-before-expect': 'warn',
393+
'jasmine/new-line-between-declarations': 'warn',
391394
},
392395
},
393396
{

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,7 @@
585585
"esbuild": "^0.23.0",
586586
"eslint": "^8.57.0",
587587
"eslint-config-prettier": "^8.10.0",
588+
"eslint-plugin-jasmine": "^4.2.2",
588589
"eslint-plugin-prettier-vue": "^4.2.0",
589590
"eslint-plugin-tailwindcss": "^3.14.3",
590591
"eslint-plugin-vue-scoped-css": "^2.7.2",

pnpm-lock.yaml

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)