about summary refs log tree commit diff
path: root/.eslintrc.js
diff options
context:
space:
mode:
authorYamagishi Kazutoshi <ykzts@desire.sh>2023-03-24 11:17:53 +0900
committerGitHub <noreply@github.com>2023-03-24 03:17:53 +0100
commitd1b057a0ac41a5756b6a416d2f290b086cb59220 (patch)
tree80bba7bda0d18074cd255a0e079d3c92b788a737 /.eslintrc.js
parent503022d6f9c6a63ff005b048d56ea0efbaec2cdc (diff)
Remove legacy decorators syntax (#18357)
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',
+      },
+    },
+  ],
 };