Combine ESLint config files (#11240)

This commit is contained in:
fisker Cheung authored and GitHub committed 2021-07-26 09:25:13 +08:00
1 parent 84abd0ec22
commit a77845638f
3 files changed
+25 -18

No files matched your search

+25
View File
@@ -228,5 +228,30 @@ module.exports = {
],
},
},
{
files: ["website/**/*"],
env: {
browser: true,
worker: true,
},
extends: ["plugin:react/recommended"],
settings: {
react: {
version: "17",
},
},
rules: {
"import/no-extraneous-dependencies": "off",
"react/display-name": "off",
"react/no-deprecated": "off",
"react/prop-types": "off",
},
},
{
files: ["website/playground/**/*"],
parserOptions: {
sourceType: "module",
},
},
],
};
-13
View File
@@ -1,13 +0,0 @@
env:
browser: true
worker: true
extends:
- plugin:react/recommended
settings:
react:
version: "17"
rules:
import/no-extraneous-dependencies: off
react/display-name: off
react/no-deprecated: off
react/prop-types: off
-5
View File
@@ -1,5 +0,0 @@
env:
es6: true
browser: true
parserOptions:
sourceType: module