Skip to content

Commit

Permalink
Run as script
Browse files Browse the repository at this point in the history
  • Loading branch information
timmo001 committed Jun 16, 2020
1 parent 16902b8 commit da33474
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 82 deletions.
4 changes: 1 addition & 3 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
{
"extends": [
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"prettier/@typescript-eslint",
"plugin:prettier/recommended"
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
Expand Down
2 changes: 0 additions & 2 deletions azure-pipelines-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ stages:
dependsOn: []
jobs:
- template: azure-ci/lint/eslint.yml@organization
parameters:
packages: 'eslint eslint-plugin-prettier eslint-plugin-react'
- template: azure-ci/lint/hadolint.yml@organization
- template: azure-ci/lint/jsonlint.yml@organization
- template: azure-ci/lint/markdownlint.yml@organization
Expand Down
2 changes: 0 additions & 2 deletions azure-pipelines-edge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ stages:
dependsOn: []
jobs:
- template: azure-ci/lint/eslint.yml@organization
parameters:
packages: 'eslint eslint-plugin-prettier eslint-plugin-react'
- template: azure-ci/lint/hadolint.yml@organization
- template: azure-ci/lint/jsonlint.yml@organization
- template: azure-ci/lint/markdownlint.yml@organization
Expand Down
2 changes: 0 additions & 2 deletions azure-pipelines-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ stages:
dependsOn: []
jobs:
- template: azure-ci/lint/eslint.yml@organization
parameters:
packages: 'eslint eslint-plugin-prettier eslint-plugin-react'
- template: azure-ci/lint/hadolint.yml@organization
- template: azure-ci/lint/jsonlint.yml@organization
- template: azure-ci/lint/markdownlint.yml@organization
Expand Down
9 changes: 1 addition & 8 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@
"start": "react-scripts start",
"build": "react-scripts build",
"test": "CI=true react-scripts test --forceExit --detectOpenHandles --coverage --coverageDirectory=output/coverage/jest --reporters=default --reporters=jest-junit",
"eject": "react-scripts eject",
"eslint": "eslint -c .eslintrc.json --color src"
"eject": "react-scripts eject"
},
"browserslist": {
"production": [
Expand Down Expand Up @@ -81,13 +80,7 @@
"@types/socket.io": "2.1.8",
"@types/socket.io-client": "1.4.33",
"@types/superagent": "4.1.7",
"@typescript-eslint/eslint-plugin": "3.2.0",
"@typescript-eslint/parser": "3.2.0",
"@yarnpkg/pnpify": "2.0.0-rc.25",
"eslint": "7.2.0",
"eslint-config-prettier": "6.11.0",
"eslint-plugin-prettier": "3.1.4",
"eslint-plugin-react": "7.20.0",
"jest-junit": "10.0.0",
"prettier": "2.0.5",
"typescript": "3.9.5"
Expand Down
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@
"backend",
"frontend"
],
"scripts": {
"eslint": "eslint --ext .ts --ext .tsx --color ./"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "3.3.0",
"@typescript-eslint/parser": "3.3.0",
"eslint": "7.2.0",
"eslint-config-prettier": "6.11.0",
"eslint-plugin-prettier": "3.1.4",
Expand Down
88 changes: 23 additions & 65 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3100,11 +3100,11 @@ __metadata:
languageName: node
linkType: hard

"@typescript-eslint/eslint-plugin@npm:3.2.0":
version: 3.2.0
resolution: "@typescript-eslint/eslint-plugin@npm:3.2.0"
"@typescript-eslint/eslint-plugin@npm:3.3.0":
version: 3.3.0
resolution: "@typescript-eslint/eslint-plugin@npm:3.3.0"
dependencies:
"@typescript-eslint/experimental-utils": 3.2.0
"@typescript-eslint/experimental-utils": 3.3.0
functional-red-black-tree: ^1.0.1
regexpp: ^3.0.0
semver: ^7.3.2
Expand All @@ -3116,7 +3116,7 @@ __metadata:
peerDependenciesMeta:
typescript:
optional: true
checksum: 921309e9f7282a0f62695483bff53996de6addd7f5a3082275f97ecd1dfe961a0aeb09e1191a0f47d850ed7706c4776b488f077c797331d3aafb530d62633a57
checksum: 5a29cad7f36c15d0a1bd3fb12144ee543a5c8ba110b73e332023d896d8ebf4cb192f339464c4222d9b831b1558e9d1ec45bb9697d434252f398afa5e3ba598c2
languageName: node
linkType: hard

Expand Down Expand Up @@ -3153,35 +3153,35 @@ __metadata:
languageName: node
linkType: hard

"@typescript-eslint/experimental-utils@npm:3.2.0":
version: 3.2.0
resolution: "@typescript-eslint/experimental-utils@npm:3.2.0"
"@typescript-eslint/experimental-utils@npm:3.3.0":
version: 3.3.0
resolution: "@typescript-eslint/experimental-utils@npm:3.3.0"
dependencies:
"@types/json-schema": ^7.0.3
"@typescript-eslint/typescript-estree": 3.2.0
"@typescript-eslint/typescript-estree": 3.3.0
eslint-scope: ^5.0.0
eslint-utils: ^2.0.0
peerDependencies:
eslint: "*"
checksum: f01e45ef6d80642ce2f72c1d07c3cc0914d09e26ed66316adbd755ee1275804ccafa53862b06f9841ff6dcfefa1df7586ec468dcb405b9afc3d433b99ad4e167
checksum: da968f8cd85e7cee1556da2a699ace328f5d54e196f92222e4376c7e7abe74441e91448157c501b73eb9c159b3bf33b1d3cd74c7f819f1140c8cb48a89d7e41a
languageName: node
linkType: hard

"@typescript-eslint/parser@npm:3.2.0":
version: 3.2.0
resolution: "@typescript-eslint/parser@npm:3.2.0"
"@typescript-eslint/parser@npm:3.3.0":
version: 3.3.0
resolution: "@typescript-eslint/parser@npm:3.3.0"
dependencies:
"@types/eslint-visitor-keys": ^1.0.0
"@typescript-eslint/experimental-utils": 3.2.0
"@typescript-eslint/typescript-estree": 3.2.0
"@typescript-eslint/experimental-utils": 3.3.0
"@typescript-eslint/typescript-estree": 3.3.0
eslint-visitor-keys: ^1.1.0
peerDependencies:
eslint: ^5.0.0 || ^6.0.0 || ^7.0.0
typescript: "*"
peerDependenciesMeta:
typescript:
optional: true
checksum: 70d59abc67a802daa65b66d737e357da6730386fd2f4d168326d7cb41cd24da2cf52dcbd0c650cd330c9952082613caec6b4ad6e4ac086e3a85714156c85370d
checksum: 19bb5c5ac28b99964695265c6e9be4a09dbd6f161d4bcc0434d830ebeb3b09369c14cda7eab23d6a59776e662c1bd43b324c03628303558a4d64bf2d4445c27f
languageName: node
linkType: hard

Expand Down Expand Up @@ -3223,9 +3223,9 @@ __metadata:
languageName: node
linkType: hard

"@typescript-eslint/typescript-estree@npm:3.2.0":
version: 3.2.0
resolution: "@typescript-eslint/typescript-estree@npm:3.2.0"
"@typescript-eslint/typescript-estree@npm:3.3.0":
version: 3.3.0
resolution: "@typescript-eslint/typescript-estree@npm:3.3.0"
dependencies:
debug: ^4.1.1
eslint-visitor-keys: ^1.1.0
Expand All @@ -3239,7 +3239,7 @@ __metadata:
peerDependenciesMeta:
typescript:
optional: true
checksum: 081da5cb028576eeb103d5989f421999a00e795b6575061d5ae650409b6b5d1e913b383bf0611557e710fcc6cc7dcf35f5cbfb3b2e8dc71049ac7d1c1454895c
checksum: f81a1f2efcc98ebaf0069c0e1bd27d1cf0d674e19530a2eb466a4fe41cfe2a02136426d51239cfed6482c894660808b90e658cd98051055165159ec9a4bdbebb
languageName: node
linkType: hard

Expand Down Expand Up @@ -7423,19 +7423,6 @@ __metadata:
languageName: node
linkType: hard

"eslint-config-prettier@npm:6.11.0":
version: 6.11.0
resolution: "eslint-config-prettier@npm:6.11.0"
dependencies:
get-stdin: ^6.0.0
peerDependencies:
eslint: ">=3.14.1"
bin:
eslint-config-prettier-check: bin/cli.js
checksum: 59efd906c78d47753a673c205ef515fdab19cd6ea0fd992c9cb2366804861746238244526ab565ccc7448569f5472ce7646a77d0c9998787192e4ebae95df71d
languageName: node
linkType: hard

"eslint-config-react-app@npm:^5.2.1":
version: 5.2.1
resolution: "eslint-config-react-app@npm:5.2.1"
Expand Down Expand Up @@ -8083,13 +8070,6 @@ __metadata:
languageName: node
linkType: hard

"fast-diff@npm:^1.1.2":
version: 1.2.0
resolution: "fast-diff@npm:1.2.0"
checksum: 9c5407d9c4869407854fe8838b8d9d26065ca747c9b80697957ae37482e982e880de823efa2c97ea1cba05dc06fce853a005e7557d10550c64c052cf7021ba9e
languageName: node
linkType: hard

"fast-glob@npm:^2.0.2":
version: 2.2.7
resolution: "fast-glob@npm:2.2.7"
Expand Down Expand Up @@ -8553,15 +8533,9 @@ __metadata:
"@types/socket.io": 2.1.8
"@types/socket.io-client": 1.4.33
"@types/superagent": 4.1.7
"@typescript-eslint/eslint-plugin": 3.2.0
"@typescript-eslint/parser": 3.2.0
"@yarnpkg/pnpify": 2.0.0-rc.25
"@yarnpkg/pnpify": 2.0.0-rc.23
array-move: 2.2.2
clsx: 1.1.1
eslint: 7.2.0
eslint-config-prettier: 6.11.0
eslint-plugin-prettier: 3.1.4
eslint-plugin-react: 7.20.0
history: 5.0.0
home-assistant-js-websocket: 5.2.3
jest-junit: 10.0.0
Expand Down Expand Up @@ -8765,13 +8739,6 @@ fsevents@^1.2.7:
languageName: node
linkType: hard

"get-stdin@npm:^6.0.0":
version: 6.0.0
resolution: "get-stdin@npm:6.0.0"
checksum: b51d664838aef7f8353dc57371ce59cea54d8d584fec015a9d89d24561e95b97806d5b5ba120bc81574c9ed63cb3e210176ffa0ff9263c7e7ba4d56d0fe54913
languageName: node
linkType: hard

"get-stream@npm:^4.0.0, get-stream@npm:^4.1.0":
version: 4.1.0
resolution: "get-stream@npm:4.1.0"
Expand Down Expand Up @@ -15050,15 +15017,6 @@ fsevents@^1.2.7:
languageName: node
linkType: hard

"prettier-linter-helpers@npm:^1.0.0":
version: 1.0.0
resolution: "prettier-linter-helpers@npm:1.0.0"
dependencies:
fast-diff: ^1.1.2
checksum: 6d698b9c8dc28e52c8d69df520cde3410cc06cc40471acf81b4b7c18ca08e73d0efb0f878654985bb02fce4f8d3d64cdf64fe9f3ffad3e1dc7e17b837d4ddcb2
languageName: node
linkType: hard

"prettier@npm:2.0.5":
version: 2.0.5
resolution: "prettier@npm:2.0.5"
Expand Down Expand Up @@ -16488,9 +16446,9 @@ resolve@1.15.0:
version: 0.0.0-use.local
resolution: "root-workspace-0b6124@workspace:."
dependencies:
"@typescript-eslint/eslint-plugin": 3.3.0
"@typescript-eslint/parser": 3.3.0
eslint: 7.2.0
eslint-config-prettier: 6.11.0
eslint-plugin-prettier: 3.1.4
eslint-plugin-react: 7.20.0
prettier: 2.0.5
typescript: 3.9.5
Expand Down

0 comments on commit da33474

Please sign in to comment.