about summary refs log tree commit diff
path: root/.eslintrc.js
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2023-03-26 15:47:12 +0200
committerClaire <claire.github-309c@sitedethib.com>2023-03-26 15:47:12 +0200
commit14b0311029b645450c99845fce2f52e46d7be251 (patch)
tree7e142e15c9bf211c4d175c49621c6fecabbbe52f /.eslintrc.js
parent81e85782d1cf595310180c3106ed92682045b5fd (diff)
parent6e8711ff91e01212ac7c82de6349fa2b143582e2 (diff)
Merge branch 'main' into glitch-soc/main
Diffstat (limited to '.eslintrc.js')
-rw-r--r--.eslintrc.js24
1 files changed, 23 insertions, 1 deletions
diff --git a/.eslintrc.js b/.eslintrc.js
index 606a87e41..faed3c54a 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -32,10 +32,14 @@ module.exports = {
   parserOptions: {
     sourceType: 'module',
     ecmaFeatures: {
-      experimentalObjectRestSpread: true,
       jsx: true,
     },
     ecmaVersion: 2021,
+    requireConfigFile: false,
+    babelOptions: {
+      configFile: false,
+      presets: ['@babel/react', '@babel/env'],
+    },
   },
 
   settings: {
@@ -214,4 +218,22 @@ module.exports = {
     'promise/no-nesting': 'off',
     'promise/no-promise-in-callback': 'off',
   },
+
+  overrides: [
+    {
+      files: [
+        '*.config.js',
+        '.*rc.js',
+        'ide-helper.js',
+      ],
+
+      env: {
+        commonjs: true,
+      },
+
+      parserOptions: {
+        sourceType: 'script',
+      },
+    },
+  ],
 };