Skip to content

Commit bbe705e

Browse files
Merge pull request #944 from codacy/feature/refactor-to-eslint8_TS-602
Feature/Refactor to ESLint8 TS-602
2 parents daf7a77 + bfeebcd commit bbe705e

15 files changed

+3338
-2147
lines changed

.circleci/config.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
version: 2.1
22

33
orbs:
4-
codacy: codacy/base@10.8.0
5-
codacy_plugins_test: codacy/plugins-test@1.1.1
4+
codacy: codacy/base@10.11.1
5+
codacy_plugins_test: codacy/plugins-test@2.0.6
66

77
workflows:
8-
version: 2
98
compile_test_deploy:
109
jobs:
1110
- codacy/checkout_and_version

Dockerfile

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,22 @@
1-
ARG NODE_IMAGE_VERSION=16-alpine3.18
1+
FROM node:lts-alpine3.19 as builder
22

3-
FROM node:$NODE_IMAGE_VERSION as builder
3+
COPY . ./
44

5-
COPY package*.json ./
6-
RUN npm install
5+
RUN npm install &&\
6+
npm cache clean --force &&\
7+
npm run compile &&\
8+
npm test
79

8-
COPY . .
9-
10-
RUN npm run compile
11-
RUN npm test
12-
13-
FROM node:$NODE_IMAGE_VERSION
10+
FROM node:lts-alpine3.19
1411

1512
COPY --from=builder dist dist
1613
COPY --from=builder package.json ./
1714
COPY --from=builder package-lock.json ./
1815
COPY --from=builder docs docs
1916

20-
RUN npm install --production
21-
22-
RUN adduser -u 2004 -D docker
23-
RUN chown -R docker:docker /docs
17+
RUN npm install --omit=dev &&\
18+
npm cache clean --force &&\
19+
adduser -u 2004 -D docker &&\
20+
chown -R docker:docker /docs
2421

2522
CMD ["node", "dist/src/index.js"]

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/e09ea1ceddb5453abb709b0e147779f1)](https://www.codacy.com/gh/codacy/codacy-metrics-eslint?utm_source=github.com&utm_medium=referral&utm_content=codacy/codacy-metrics-eslint&utm_campaign=Badge_Grade)
2-
[![Codacy Badge](https://api.codacy.com/project/badge/Coverage/e09ea1ceddb5453abb709b0e147779f1)](https://www.codacy.com/gh/codacy/codacy-metrics-eslint?utm_source=github.com&utm_medium=referral&utm_content=codacy/codacy-metrics-eslint&utm_campaign=Badge_Coverage)
1+
# Codacy Metrics ESLint
32

4-
# Codacy Metrics Eslint
3+
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/e09ea1ceddb5453abb709b0e147779f1)](https://app.codacy.com/gh/codacy/codacy-metrics-eslint/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
4+
[![CircleCI](https://circleci.com/gh/codacy/codacy-metrics-eslint.svg?style=svg)](https://circleci.com/gh/codacy/codacy-metrics-eslint)
55

66
## Usage
77

88
You can create the docker by doing:
99

1010
```bash
11-
npm run dockerBuild
11+
npm run build:docker
1212
```
1313

1414
The docker is ran with the following command:
@@ -47,15 +47,15 @@ codacy-plugins-test metrics codacy-metrics-eslint
4747

4848
### Among Codacy’s features
4949

50-
- Identify new Static Analysis issues
51-
- Commit and Pull Request Analysis with GitHub, BitBucket/Stash, GitLab (and also direct git repositories)
52-
- Auto-comments on Commits and Pull Requests
53-
- Integrations with Slack, HipChat, Jira, YouTrack
54-
- Track issues in Code Style, Security, Error Proneness, Performance, Unused Code and other categories
50+
- Identify new Static Analysis issues
51+
- Commit and Pull Request Analysis with GitHub, BitBucket/Stash, GitLab (and also direct git repositories)
52+
- Auto-comments on Commits and Pull Requests
53+
- Integrations with Slack, HipChat, Jira, YouTrack
54+
- Track issues in Code Style, Security, Error Proneness, Performance, Unused Code and other categories
5555

56-
Codacy also helps keep track of Code Coverage, Code Duplication, and Code Complexity.
56+
Codacy also helps keep track of Code Coverage, Code Duplication and Code Complexity.
5757

58-
Codacy supports PHP, Python, Ruby, Java, JavaScript, and Scala, among others.
58+
Codacy supports PHP, Python, Ruby, Java, JavaScript and Scala, among others.
5959

6060
### Free for Open Source
6161

0 commit comments

Comments
 (0)