Add SonarQube integration
... | ... | @@ -13,6 +13,7 @@ |
"build": "parcel build public/index.html", | ||
"test": "jest", | ||
"test:coverage": "jest --coverage", | ||
"lint": "eslint \"src/**/*.{js,jsx}\" --quiet", | ||
"format": "prettier --write \"src/**/*.{js,jsx}\"" | ||
}, | ||
"eslintConfig": { | ||
... | ... | @@ -44,6 +45,7 @@ |
"eslint-plugin-react": "^7.18.3", | ||
"eslint-plugin-react-hooks": "^2.3.0", | ||
"jest": "^25.1.0", | ||
"jest-sonar-reporter": "^2.0.0", | ||
"parcel-bundler": "^1.12.4", | ||
"prettier": "^1.19.1" | ||
}, | ||
... | ... | @@ -51,6 +53,7 @@ |
"moduleNameMapper": { | ||
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/__mocks__/fileMock.js", | ||
"\\.(css|less)$": "<rootDir>/__mocks__/styleMock.js" | ||
} | ||
}, | ||
"testResultsProcessor": "jest-sonar-reporter" | ||
} | ||
} |
sonar-project.properties
0 → 100644
src/App.jsx
0 → 100644
Please register or sign in to comment