version: 2
jobs:
  lint:
    docker:
      - image: node:alpine
    steps:
      - checkout
      - restore_cache:
          key: eslint-alpine
      - run:
          name: Install ESLint
          command: npm install eslint
      - save_cache:
          paths:
            - ./node_modules
            - ./package-lock.json
          key: eslint-alpine-{{ checksum "./package-lock.json" }}
      - run:
          name: OS release
          command: cat /etc/os-release
      - run:
          name: Node.js version
          command: node --version
      - run:
          name: ESLint version
          command: npx eslint --version
      - run:
          name: Run ESLint
          command: npx eslint -- ./*.js

version: 2
jobs:
  build:
    docker:
      - image: node:alpine
    steps:
      - checkout
      - restore_cache:
          key: eslint-alpine
      - run:
          name: Install ESLint
          command: npm install eslint
      - save_cache:
          paths:
            - ./node_modules
            - ./package-lock.json
          key: eslint-alpine-{{ checksum "./package-lock.json" }}
      - run:
          name: OS release
          command: cat /etc/os-release
      - run:
          name: Node.js version
          command: node --version
      - run:
          name: ESLint version
          command: npx eslint --version
      - run:
          name: Run ESLint
          command: npx eslint -- ./*.js

Revert "Rename a CI job name because it builds nothing"
Revert "Rename a CI job name because it builds nothing"

This reverts commit 298ad26a17f67cb5c389e976e8cade8a9d69717f.
It requires to use workflows if using arbitrary job name :(
