diff options
author | Claire <claire.github-309c@sitedethib.com> | 2023-03-26 15:47:12 +0200 |
---|---|---|
committer | Claire <claire.github-309c@sitedethib.com> | 2023-03-26 15:47:12 +0200 |
commit | 14b0311029b645450c99845fce2f52e46d7be251 (patch) | |
tree | 7e142e15c9bf211c4d175c49621c6fecabbbe52f /.eslintrc.js | |
parent | 81e85782d1cf595310180c3106ed92682045b5fd (diff) | |
parent | 6e8711ff91e01212ac7c82de6349fa2b143582e2 (diff) |
Merge branch 'main' into glitch-soc/main
Diffstat (limited to '.eslintrc.js')
-rw-r--r-- | .eslintrc.js | 24 |
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', + }, + }, + ], }; |