diff options
author | Stas Vilchik <stas.vilchik@sonarsource.com> | 2017-07-17 10:07:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-17 10:07:30 +0200 |
commit | d5b076b2fc8988e9a3799ba7775f851e1a12cbb7 (patch) | |
tree | 3c0f98977cc487747efeeeb47974fc13e70eab97 /server/sonar-web/package.json | |
parent | c8797aabc9b4d705f7da59b43717e5c0fe0e80fb (diff) | |
download | sonarqube-d5b076b2fc8988e9a3799ba7775f851e1a12cbb7.tar.gz sonarqube-d5b076b2fc8988e9a3799ba7775f851e1a12cbb7.zip |
upgrade prettier and remove prettier-eslint (#2254)
Diffstat (limited to 'server/sonar-web/package.json')
-rw-r--r-- | server/sonar-web/package.json | 25 |
1 files changed, 6 insertions, 19 deletions
diff --git a/server/sonar-web/package.json b/server/sonar-web/package.json index bf0c0af035b..7405c034c03 100644 --- a/server/sonar-web/package.json +++ b/server/sonar-web/package.json @@ -57,7 +57,7 @@ "css-loader": "0.28.4", "enzyme": "^2.6.0", "enzyme-to-json": "^1.4.5", - "eslint": "^3.12.2", + "eslint": "3.14.1", "eslint-loader": "1.8.0", "eslint-plugin-flowtype": "^2.29.1", "eslint-plugin-import": "^2.2.0", @@ -73,10 +73,7 @@ "less": "2.7.1", "less-loader": "4.0.4", "postcss-loader": "2.0.6", - "prettier": "1.2.2", - "prettier-css": "0.0.7", - "prettier-eslint": "5.1.0", - "prettier-eslint-cli": "3.4.1", + "prettier": "1.5.2", "react-addons-test-utils": "15.4.2", "react-dev-utils": "3.0.0", "react-error-overlay": "1.0.7", @@ -92,8 +89,7 @@ "build": "node scripts/build.js", "test": "node scripts/test.js", "coverage": "npm test -- --coverage", - "format": "prettier-eslint --write \"src/main/js/!(libs)/**/*.js\"", - "format-css": "prettier-css \"src/main/js/**/*.css\"", + "format": "prettier --write --single-quote --jsx-bracket-same-line --print-width 100 'src/main/{js,less}/!(libs)/**/*.{js,css,less}'", "lint": "eslint src/main/js", "typecheck": "flow src/main/js", "validate": "eslint src/main/js && flow check src/main/js && NODE_ENV=test jest" @@ -110,15 +106,8 @@ ], "jest": { "coverageDirectory": "<rootDir>/target/coverage", - "coveragePathIgnorePatterns": [ - "<rootDir>/node_modules", - "<rootDir>/tests" - ], - "moduleFileExtensions": [ - "jsx", - "js", - "json" - ], + "coveragePathIgnorePatterns": ["<rootDir>/node_modules", "<rootDir>/tests"], + "moduleFileExtensions": ["jsx", "js", "json"], "moduleNameMapper": { "^.+\\.(hbs|jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/config/jest/FileStub.js", "^.+\\.css$": "<rootDir>/config/jest/CSSStub.js" @@ -127,9 +116,7 @@ "<rootDir>/config/polyfills.js", "<rootDir>/config/jest/SetupTestEnvironment.js" ], - "snapshotSerializers": [ - "enzyme-to-json/serializer" - ], + "snapshotSerializers": ["enzyme-to-json/serializer"], "testPathIgnorePatterns": [ "<rootDir>/node_modules", "<rootDir>/src/main/webapp", |