generated from nhcarrigan/template
fix: tweak rules for linting spec files (!5)
Reviewed-on: https://codeberg.org/nhcarrigan/eslint-config/pulls/5 Co-authored-by: Naomi Carrigan <commits@nhcarrigan.com> Co-committed-by: Naomi Carrigan <commits@nhcarrigan.com>
This commit is contained in:
parent
e35e25c642
commit
5f391da76b
@ -25,7 +25,7 @@ export const importRules: Linter.RulesRecord = {
|
|||||||
"import/no-empty-named-blocks": "error",
|
"import/no-empty-named-blocks": "error",
|
||||||
"import/no-extraneous-dependencies": [
|
"import/no-extraneous-dependencies": [
|
||||||
"error",
|
"error",
|
||||||
{ devDependencies: [ "**/*.test.js", "**/*.spec.js" ] },
|
{ devDependencies: [ "**/*.spec.ts" ] },
|
||||||
],
|
],
|
||||||
"import/no-import-module-exports": [ "error" ],
|
"import/no-import-module-exports": [ "error" ],
|
||||||
"import/no-mutable-exports": "error",
|
"import/no-mutable-exports": "error",
|
||||||
|
@ -8,7 +8,7 @@ import type { Linter } from "eslint";
|
|||||||
|
|
||||||
export const vitestRules: Linter.RulesRecord = {
|
export const vitestRules: Linter.RulesRecord = {
|
||||||
"vitest/consistent-test-filename":
|
"vitest/consistent-test-filename":
|
||||||
[ "warn", { pattern: /^[\da-z-]+\.spec\.ts$/ } ],
|
[ "warn", { pattern: /^[\da-z-]+\.spec\.ts$/i } ],
|
||||||
"vitest/consistent-test-it": "warn",
|
"vitest/consistent-test-it": "warn",
|
||||||
"vitest/expect-expect": "warn",
|
"vitest/expect-expect": "warn",
|
||||||
"vitest/max-nested-describe": [ "warn", { max: 2 } ],
|
"vitest/max-nested-describe": [ "warn", { max: 2 } ],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user