aboutsummaryrefslogtreecommitdiffstats
path: root/.eslintrc.cjs
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2022-05-25 18:40:23 +0200
committerLibravatar Kristóf Marussy <kristof@marussy.com>2022-05-26 15:49:18 +0200
commit8484d3262dfb4fedd8b83f65d053bc21e455008d (patch)
tree9020f95a13ddf11863b0541619dd57ca3f511104 /.eslintrc.cjs
parentchore(deps): bump dependencies (diff)
downloadsophie-8484d3262dfb4fedd8b83f65d053bc21e455008d.tar.gz
sophie-8484d3262dfb4fedd8b83f65d053bc21e455008d.tar.zst
sophie-8484d3262dfb4fedd8b83f65d053bc21e455008d.zip
chore: use node16 moduleResolution where possible
We can't do this in the renderer package, because we need to import MUI files that are not exported (MUI v6 is not ESM yet). Signed-off-by: Kristóf Marussy <kristof@marussy.com>
Diffstat (limited to '.eslintrc.cjs')
-rw-r--r--.eslintrc.cjs12
1 files changed, 3 insertions, 9 deletions
diff --git a/.eslintrc.cjs b/.eslintrc.cjs
index 3d944e4..e76ff6f 100644
--- a/.eslintrc.cjs
+++ b/.eslintrc.cjs
@@ -44,8 +44,9 @@ module.exports = {
44 }, 44 },
45 }, 45 },
46 rules: { 46 rules: {
47 // TODO Flip this to `ignorePackages` once we are on `nodenext` resolution. 47 // `import/exteions` is buggy with ts files:
48 'import/extensions': ['error', 'never'], 48 // https://github.com/import-js/eslint-plugin-import/issues/2111
49 'import/extensions': 'off',
49 'import/no-unresolved': 'error', 50 'import/no-unresolved': 'error',
50 'import/order': [ 51 'import/order': [
51 'error', 52 'error',
@@ -107,13 +108,6 @@ module.exports = {
107 }, 108 },
108 }, 109 },
109 { 110 {
110 files: ['**/*.js'],
111 rules: {
112 // ESM requires extensions for imports.
113 'import/extensions': ['error', 'ignorePackages'],
114 },
115 },
116 {
117 files: ['**/*.cjs'], 111 files: ['**/*.cjs'],
118 parserOptions: { 112 parserOptions: {
119 sourceType: 'script', 113 sourceType: 'script',