Skip to content

Commit 07c4903

Browse files
authored
Eslint cleanup (Netflix#215)
Fixing all js linting errors and adding github actions for linting.
1 parent 7debbfc commit 07c4903

File tree

103 files changed

+3721
-3835
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+3721
-3835
lines changed

.eslintignore

Lines changed: 0 additions & 7 deletions
This file was deleted.

.eslintrc.js

Lines changed: 0 additions & 15 deletions
This file was deleted.

.github/workflows/javascript.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Javascript Lint and Test
2+
3+
on: pull_request
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Check out Git repository
11+
uses: actions/checkout@v2
12+
- name: Setup Node.js environment
13+
uses: actions/setup-node@v1.4.1
14+
with:
15+
node-version: 12.7.0
16+
- name: Install dev deps
17+
working-directory: src/dispatch/static/dispatch
18+
run: |
19+
npm install
20+
- name: Run ESLint
21+
working-directory: src/dispatch/static/dispatch
22+
run: |
23+
npm run lint
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Python application
1+
name: Python Lint and Test
22

33
on: pull_request
44

@@ -27,7 +27,7 @@ jobs:
2727
with:
2828
python-version: 3.8
2929

30-
- name: Install dependencies
30+
- name: Install python dependencies
3131
run: |
3232
export DISPATCH_LIGHT_BUILD=1
3333
python -m pip install --upgrade pip
@@ -36,7 +36,7 @@ jobs:
3636
- name: Run Black
3737
run: |
3838
black .
39-
39+
4040
- name: Run Flake8
4141
run: |
4242
flake8 .

package-lock.json

Lines changed: 0 additions & 19 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module.exports = {
22
presets: ["@vue/app"]
3-
};
3+
}

src/dispatch/static/dispatch/mock/chat.js

Lines changed: 0 additions & 41 deletions
This file was deleted.

src/dispatch/static/dispatch/mock/chatMessage.js

Lines changed: 0 additions & 28 deletions
This file was deleted.

src/dispatch/static/dispatch/mock/data.js

Lines changed: 0 additions & 15 deletions
This file was deleted.

src/dispatch/static/dispatch/mock/file.js

Lines changed: 0 additions & 40 deletions
This file was deleted.

0 commit comments

Comments
 (0)