Skip to content

Commit 8dbbd6d

Browse files
authored
feat: add name to config (#294)
1 parent cba5737 commit 8dbbd6d

File tree

5 files changed

+405
-404
lines changed

5 files changed

+405
-404
lines changed

.changeset/large-dodos-carry.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"eslint-config-prettier": patch
3+
---
4+
5+
Add name to config

.github/workflows/check.yml

+6-8
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
- "main"
77
pull_request:
88

9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
913
permissions:
1014
contents: read
1115

@@ -17,6 +21,7 @@ jobs:
1721
matrix:
1822
os: [ubuntu-latest]
1923
node-version: [20]
24+
fail-fast: false
2025

2126
steps:
2227
- uses: actions/checkout@v4
@@ -26,16 +31,9 @@ jobs:
2631
- uses: actions/setup-node@v4
2732
with:
2833
node-version: ${{ matrix.node-version }}
29-
30-
- name: Cache node_modules
31-
id: cache-node_modules
32-
uses: actions/cache@v4
33-
with:
34-
path: node_modules
35-
key: node_modules-${{ matrix.os }}-${{ matrix.node-version }}-${{ hashFiles('package-lock.json') }}
34+
cache: npm
3635

3736
- name: npm ci
38-
if: steps.cache-node_modules.outputs.cache-hit != 'true'
3937
run: npm ci --no-audit
4038

4139
- name: ESLint - flat

.github/workflows/test.yml

+6-8
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
- "main"
77
pull_request:
88

9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
913
permissions:
1014
contents: read
1115

@@ -17,6 +21,7 @@ jobs:
1721
matrix:
1822
os: [ubuntu-latest, windows-latest, macOS-latest]
1923
node-version: [16, 18, 20, 22]
24+
fail-fast: false
2025

2126
steps:
2227
- uses: actions/checkout@v4
@@ -26,16 +31,9 @@ jobs:
2631
- uses: actions/setup-node@v4
2732
with:
2833
node-version: ${{ matrix.node-version }}
29-
30-
- name: Cache node_modules
31-
id: cache-node_modules
32-
uses: actions/cache@v4
33-
with:
34-
path: node_modules
35-
key: node_modules-${{ matrix.os }}-${{ matrix.node-version }}-${{ hashFiles('package-lock.json') }}
34+
cache: npm
3635

3736
- name: npm ci
38-
if: steps.cache-node_modules.outputs.cache-hit != 'true'
3937
run: npm ci --no-audit
4038

4139
- name: Jest - flat

index.d.ts

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
type Config = {
2-
rules: Record<string, 0 | "off">;
3-
};
1+
export const name: "config-prettier" | undefined;
42

5-
declare const config: Config;
6-
7-
export = config;
3+
export const rules: Record<string, 0 | "off">;

0 commit comments

Comments
 (0)