File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 1+ import plugin from '@vitest/eslint-plugin' ;
12import globals from 'globals' ;
23
34import { predicate } from '../utils/conditions.mjs' ;
@@ -11,6 +12,7 @@ import { globs } from '../utils/globs.mjs';
1112function tests ( options = { } ) {
1213 return {
1314 files : [ ...globs . test , ...globs . e2e ] ,
15+ plugins : { vitest : plugin } ,
1416 languageOptions : {
1517 globals : { ...globals [ 'shared-node-browser' ] } ,
1618 } ,
@@ -19,6 +21,8 @@ function tests(options = {}) {
1921 'no-sparse-arrays' : 'off' ,
2022 'no-empty-function' : 'off' ,
2123
24+ 'vitest/padding-around-all' : 'warn' ,
25+
2226 ...predicate ( options . react , {
2327 '@eslint-react/no-unstable-context-value' : 'off' ,
2428 } ) ,
Original file line number Diff line number Diff line change @@ -59,14 +59,6 @@ function vitest() {
5959 'vitest/no-test-prefixes' : 'warn' ,
6060 'vitest/no-test-return-statement' : 'warn' ,
6161
62- 'vitest/padding-around-after-all-blocks' : 'warn' ,
63- 'vitest/padding-around-after-each-blocks' : 'warn' ,
64- 'vitest/padding-around-before-all-blocks' : 'warn' ,
65- 'vitest/padding-around-before-each-blocks' : 'warn' ,
66- 'vitest/padding-around-describe-blocks' : 'warn' ,
67- 'vitest/padding-around-expect-groups' : 'warn' ,
68- 'vitest/padding-around-test-blocks' : 'warn' ,
69-
7062 'vitest/prefer-called-once' : 'warn' ,
7163 'vitest/prefer-called-times' : 'off' ,
7264 'vitest/prefer-called-with' : 'warn' ,
You can’t perform that action at this time.
0 commit comments