update eslint config
This commit is contained in:
parent
e41f1109f6
commit
e77545b801
|
@ -1,3 +1,4 @@
|
|||
/* eslint-disable */
|
||||
const { useBabelRc, override } = require('customize-cra');
|
||||
|
||||
module.exports = override(useBabelRc());
|
||||
|
|
11
package.json
11
package.json
|
@ -46,13 +46,22 @@
|
|||
"build": "react-app-rewired build",
|
||||
"test": "react-app-rewired test --env=jest-environment-jsdom-sixteen",
|
||||
"eject": "react-scripts eject",
|
||||
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
|
||||
"codegen": "graphql-codegen"
|
||||
},
|
||||
"eslintConfig": {
|
||||
"extends": [
|
||||
"react-app",
|
||||
"react-app/jest"
|
||||
]
|
||||
],
|
||||
"rules": {
|
||||
"react/jsx-pascal-case": [
|
||||
"warn",
|
||||
{
|
||||
"ignore": []
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"browserslist": {
|
||||
"production": [
|
||||
|
|
Reference in New Issue