Skip to content

Commit

Permalink
style: update eslint config to allow dev imports in test files
Browse files Browse the repository at this point in the history
  • Loading branch information
andreidmt committed Feb 11, 2023
1 parent 1d63da6 commit 644cb8a
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = {
"extends": ["@asd14/eslint-config/targets/node-ts"],
"root": true,
"rules": {
extends: ["@asd14/eslint-config/targets/node-ts"],
root: true,
rules: {
// Delegate to TypeScript's noPropertyAccessFromIndexSignature
"dot-notation": "off",

Expand All @@ -13,15 +13,13 @@ module.exports = {
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": [
"**/*.+(test|test-d).+(ts|tsx)"
]
}
]
devDependencies: ["**/*.test-d.ts", "**/*.test.js"],
},
],
},
"settings": {
settings: {
"import/cache": {
"lifetime": 5
}
}
lifetime: 5,
},
},
}

0 comments on commit 644cb8a

Please sign in to comment.