Skip to content

Commit 4c49cad

Browse files
authored
feat: Add support for eslint@8 (#35)
1 parent 47995ef commit 4c49cad

File tree

3 files changed

+2053
-1689
lines changed

3 files changed

+2053
-1689
lines changed

.circleci/config.yml

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
1-
version: 2
1+
version: 2.1
2+
3+
supported-eslint-versions: &supported-eslint-versions ["local", "7"]
4+
25
jobs:
36
build:
7+
parameters:
8+
eslint-version:
9+
type: string
10+
description: >
11+
Overrides the installed version of ESLint. When set to "local" the version of ESLint set
12+
frozen in the package-lock.json is used.
13+
default: "local"
414
docker:
5-
- image: circleci/node:lts
6-
15+
- image: circleci/node
716
steps:
817
- checkout
918

@@ -19,12 +28,23 @@ jobs:
1928
- node_modules
2029
key: v1-dependencies-{{ checksum "package-lock.json" }}
2130

31+
- when:
32+
condition:
33+
not:
34+
equal: [<<parameters.eslint-version>>, "local"]
35+
steps:
36+
- run:
37+
name: Override version of eslint@<<parameters.eslint-version>>
38+
command: npm install --save-dev eslint@<<parameters.eslint-version>>
39+
2240
- run: npm run format:check
2341
- run: npm run lint
2442
- run: npm run test
2543

2644
workflows:
27-
version: 2
2845
build_and_test:
2946
jobs:
30-
- build
47+
- build:
48+
matrix:
49+
parameters:
50+
eslint-version: *supported-eslint-versions

0 commit comments

Comments
 (0)