setup eslint for JSX

This commit is contained in:
Val Erastov 2022-08-15 01:30:18 -07:00
parent 688f287dfe
commit bec2aecfda
3 changed files with 2583 additions and 3365 deletions

View file

@ -1,13 +1,20 @@
{
"extends": "eslint:recommended",
"extends": [
"eslint:recommended"
],
"env": {
"browser": true,
"commonjs": true,
"es6": true
},
"parser": "babel-eslint",
"parser": "@babel/eslint-parser",
"plugins": [
"babel"
"@babel"
],
"overrides": [
{
"files": ["*.jsx", "*.js"]
}
],
"globals" : {
"THREE" : true,

5926
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -43,7 +43,8 @@
"@cypress/webpack-preprocessor": "^4.1.3",
"@types/react": "^16.9.34",
"@types/react-dom": "^16.9.7",
"babel-eslint": "^10.1.0",
"@babel/eslint-parser": "^7.18.9",
"@babel/eslint-plugin": "^7.18.9",
"babel-loader": "^8.1.0",
"babel-plugin-transform-decorators-legacy": "^1.3.5",
"babel-polyfill": "^6.26.0",
@ -52,10 +53,8 @@
"cypress": "^4.7.0",
"cypress-wait-until": "^1.7.1",
"del": "^6.0.0",
"eslint": "^6.8.0",
"eslint-plugin-babel": "^5.3.0",
"eslint-plugin-import": "^2.20.1",
"eslint-plugin-react": "^7.19.0",
"eslint": "^8.22.0",
"eslint-plugin-import": "^2.26.0",
"file-loader": "^6.2.0",
"glob": "^8.0.3",
"grunt": "^1.1.0",