Support all OS development for linters and prevent linting while in dev mode (#4480)

This commit is contained in:
Zach H 2021-11-19 20:59:55 -05:00 committed by GitHub
parent 6ef394000b
commit 7c27e955d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 56 additions and 3 deletions

View file

@ -29,12 +29,12 @@
"postinstall": "run-script-os",
"postinstall:windows": "powershell .\\copy_shared_files.ps1",
"postinstall:default": "./copy_shared_files.sh",
"start": "react-scripts start",
"start": "cross-env ESLINT_NO_DEV_ERRORS=true react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"lint": "eslint './**/*.{ts,tsx}'",
"lint:fix": "eslint './**/*.{ts,tsx}' --fix"
"lint": "eslint \"./**/*.{ts,tsx}\"",
"lint:fix": "eslint \"./**/*.{ts,tsx}\" --fix"
},
"eslintConfig": {
"extends": "react-app"
@ -68,6 +68,7 @@
"@types/redux-form": "^8.3.3",
"@typescript-eslint/eslint-plugin": "^5.3.1",
"@typescript-eslint/parser": "^5.3.1",
"cross-env": "^7.0.3",
"eslint": "^7.32.0",
"run-script-os": "^1.1.6"
}