Combine ESLint config files (#11240)
This commit is contained in:
1 parent
84abd0ec22
commit
a77845638f
3 files changed
+25
-18
No files matched your search
@@ -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",
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
||||
@@ -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
|
||||
@@ -1,5 +0,0 @@
|
||||
env:
|
||||
es6: true
|
||||
browser: true
|
||||
parserOptions:
|
||||
sourceType: module
|
||||
Reference in new issue
Block a user