aboutsummaryrefslogtreecommitdiffstats
path: root/.eslintrc.cjs
diff options
context:
space:
mode:
Diffstat (limited to '.eslintrc.cjs')
-rw-r--r--.eslintrc.cjs9
1 files changed, 9 insertions, 0 deletions
diff --git a/.eslintrc.cjs b/.eslintrc.cjs
index 5587ea7..55a055d 100644
--- a/.eslintrc.cjs
+++ b/.eslintrc.cjs
@@ -44,6 +44,8 @@ module.exports = {
44 }, 44 },
45 }, 45 },
46 rules: { 46 rules: {
47 // TODO Flip this to `ignorePackages` once we are on `nodenext` resolution.
48 'import/extensions': ['error', 'never'],
47 'import/no-unresolved': 'error', 49 'import/no-unresolved': 'error',
48 'import/order': [ 50 'import/order': [
49 'error', 51 'error',
@@ -66,6 +68,13 @@ module.exports = {
66 ], 68 ],
67 // Airbnb prefers forEach. 69 // Airbnb prefers forEach.
68 'unicorn/no-array-for-each': 'off', 70 'unicorn/no-array-for-each': 'off',
71 // Typescript requires exlicit `undefined` arguments.
72 'unicorn/no-useless-undefined': [
73 'error',
74 {
75 checkArguments: false,
76 },
77 ],
69 // Common abbreviations are known and readable. 78 // Common abbreviations are known and readable.
70 'unicorn/prevent-abbreviations': 'off', 79 'unicorn/prevent-abbreviations': 'off',
71 }, 80 },