Skip to content

Commit 726d25c

Browse files
committed
eslinting
1 parent ea80534 commit 726d25c

File tree

5 files changed

+92
-94
lines changed

5 files changed

+92
-94
lines changed

.github/workflows/lint.yml

Lines changed: 17 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,28 @@
1-
name: Lint
1+
name: lint
22

33
on:
4+
push:
5+
branches:
6+
- master
47
pull_request:
58
branches:
69
- master
710

8-
concurrency:
9-
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
10-
cancel-in-progress: true
11-
12-
permissions:
13-
contents: read
14-
1511
jobs:
1612
lint:
17-
name: Lint
18-
timeout-minutes: 30
1913
runs-on: ubuntu-latest
14+
2015
steps:
21-
- name: Checkout
22-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
23-
- name: Set up Node
24-
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
16+
- name: Checkout 🛎️
17+
uses: actions/checkout@v2.3.1
18+
19+
- name: Set up Node.js 📦
20+
uses: actions/setup-node@v2
2521
with:
26-
node-version: '18'
27-
cache: yarn
28-
- name: Installation
29-
run: yarn
30-
# run: yarn install --immutable # Fails if yarn.lock is modified (unfortunately only works for Yarn 2, and --frozen-lockfile is not the same!)
31-
- name: Check immutable yarn.lock
32-
run: git diff --exit-code
33-
- name: Lint
34-
run: |
35-
echo "::add-matcher::.github/workflows/cspell-problem-matcher.json"
36-
yarn lint:ci
37-
- name: Prettier Code
38-
run: yarn format:diff
22+
node-version: '14'
23+
24+
- name: Install dependencies 🚚
25+
run: npm install
26+
27+
- name: Lint Docusaurus files 🧹
28+
run: npm run lint

eslint.config.mjs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import globals from "globals";
2+
import pluginJs from "@eslint/js";
3+
4+
5+
export default [
6+
{languageOptions: { globals: globals.browser }},
7+
pluginJs.configs.recommended,
8+
];

0 commit comments

Comments
 (0)