Skip to content

Commit 7ed3f43

Browse files
committed
Updates to work with Prettier 3
1 parent ab95a4e commit 7ed3f43

File tree

6 files changed

+2068
-1135
lines changed

6 files changed

+2068
-1135
lines changed

.github/dependabot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: npm
4+
directory: "/"
5+
schedule:
6+
interval: weekly
7+
open-pull-requests-limit: 10
8+
versioning-strategy: increase-if-necessary
9+
- package-ecosystem: github-actions
10+
directory: "/"
11+
schedule:
12+
interval: weekly

.github/workflows/test.yml

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,26 +8,24 @@ on:
88
branches:
99
- main
1010

11-
env:
12-
CI: true
13-
1411
jobs:
15-
run:
12+
test:
13+
name: Test
1614
runs-on: ubuntu-latest
1715

18-
strategy:
19-
matrix:
20-
node:
21-
- 14
22-
2316
steps:
24-
- name: Clone repository
25-
uses: actions/checkout@v2
17+
- name: Clone Repository
18+
uses: actions/checkout@v4
2619

27-
- name: Set Node.js version
28-
uses: actions/setup-node@v1
20+
- name: Setup Node.js
21+
uses: actions/setup-node@v4
2922
with:
30-
node-version: ${{ matrix.node }}
23+
node-version: '20'
24+
25+
- name: Install Dependencies
26+
run: npm ci
3127

32-
- run: npm ci
33-
- run: npm test
28+
- name: Run Tests
29+
run: npm test
30+
env:
31+
CI: true

examples/es6/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const main = paths =>
1414
}
1515
});
1616
});
17-
})
17+
}),
1818
);
1919

2020
exports.modifyProps = props => {
@@ -23,7 +23,7 @@ exports.modifyProps = props => {
2323

2424
if (require.main === module) {
2525
const paths = ['main.js', '.eslintrc'].map(name =>
26-
path.join(__dirname, name)
26+
path.join(__dirname, name),
2727
);
2828
main(paths)
2929
.then(contents => {

index.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
module.exports = {
2-
extends: ['prettier', 'prettier/prettier'],
3-
plugins: ['import', 'prettier', 'sort-imports-es6-autofix'],
2+
plugins: ['import', 'sort-imports-es6-autofix', 'prettier'],
43
env: {
54
node: true,
65
browser: true,
76
es6: true,
87
},
98
parserOptions: {
10-
ecmaVersion: 2018,
9+
ecmaVersion: 'latest',
1110
sourceType: 'module',
1211
},
1312
rules: {
@@ -65,7 +64,6 @@ module.exports = {
6564
{
6665
singleQuote: true,
6766
bracketSpacing: false,
68-
trailingComma: 'es5',
6967
arrowParens: 'avoid',
7068
},
7169
],

0 commit comments

Comments
 (0)