Merge branch '215-introduce-eslint-prettier' into 'main'
style: introduce eslint and prettier to the webview subproject See merge request gitlab-org/gitlab-vscode-extension!124
Showing
... | ... | @@ -507,16 +507,17 @@ |
}, | ||
"scripts": { | ||
"vscode:prepublish": "npm run compile", | ||
"postinstall": "cd src/webview && npm install", | ||
"compile": "tsc -p ./", | ||
"watch": "tsc -watch -p ./", | ||
"test-unit": "jest", | ||
"test-integration": "npm run compile && node ./out/test/runTest.js", | ||
"create-test-workspace": "npm run compile && node ./scripts/create_workspace_for_test_debugging.js", | ||
"test": "npm run test-unit && npm run test-integration", | ||
"eslint": "eslint --ext .js --ext .ts .", | ||
"autofix": "eslint --fix . && prettier --write '**/*.{js,json}'", | ||
"lint": "eslint --ext .js --ext .ts . && prettier --check '**/*.{js,ts,vue,json}' && cd src/webview && npm run lint", | ||
"autofix": "eslint --fix . && prettier --write '**/*.{js,ts,vue,json}' && cd src/webview && npm run autofix", | ||
"publish": "vsce publish", | ||
"webview": "cd src/webview ; npm install ; npm run watch", | ||
"webview": "cd src/webview && npm run watch", | ||
"version": "conventional-changelog -p angular -i CHANGELOG.md -s && git add CHANGELOG.md" | ||
}, | ||
"devDependencies": { | ||
... | ... | @@ -531,9 +532,8 @@ |
"conventional-changelog-cli": "^2.0.34", | ||
"eslint": "^6.8.0", | ||
"eslint-config-airbnb-base": "^14.0.0", | ||
"eslint-config-prettier": "^6.10.0", | ||
"eslint-config-prettier": "^6.15.0", | ||
"eslint-plugin-import": "^2.20.0", | ||
"eslint-plugin-prettier": "^3.1.2", | ||
"jest": "^26.4.2", | ||
"mocha": "^7.0.1", | ||
"msw": "^0.21.2", | ||
... | ... |
src/webview/.eslintrc.json
0 → 100644
想要评论请 注册 或 登录