Skip to content

Commit

Permalink
Updates to work with Prettier 3
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaub committed Jan 19, 2024
1 parent ab95a4e commit 7ed3f43
Show file tree
Hide file tree
Showing 6 changed files with 2,068 additions and 1,135 deletions.
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: 2
updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: weekly
open-pull-requests-limit: 10
versioning-strategy: increase-if-necessary
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: weekly
30 changes: 14 additions & 16 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,24 @@ on:
branches:
- main

env:
CI: true

jobs:
run:
test:
name: Test
runs-on: ubuntu-latest

strategy:
matrix:
node:
- 14

steps:
- name: Clone repository
uses: actions/checkout@v2
- name: Clone Repository
uses: actions/checkout@v4

- name: Set Node.js version
uses: actions/setup-node@v1
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
node-version: '20'

- name: Install Dependencies
run: npm ci

- run: npm ci
- run: npm test
- name: Run Tests
run: npm test
env:
CI: true
4 changes: 2 additions & 2 deletions examples/es6/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const main = paths =>
}
});
});
})
}),
);

exports.modifyProps = props => {
Expand All @@ -23,7 +23,7 @@ exports.modifyProps = props => {

if (require.main === module) {
const paths = ['main.js', '.eslintrc'].map(name =>
path.join(__dirname, name)
path.join(__dirname, name),
);
main(paths)
.then(contents => {
Expand Down
6 changes: 2 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
module.exports = {
extends: ['prettier', 'prettier/prettier'],
plugins: ['import', 'prettier', 'sort-imports-es6-autofix'],
plugins: ['import', 'sort-imports-es6-autofix', 'prettier'],
env: {
node: true,
browser: true,
es6: true,
},
parserOptions: {
ecmaVersion: 2018,
ecmaVersion: 'latest',
sourceType: 'module',
},
rules: {
Expand Down Expand Up @@ -65,7 +64,6 @@ module.exports = {
{
singleQuote: true,
bracketSpacing: false,
trailingComma: 'es5',
arrowParens: 'avoid',
},
],
Expand Down
Loading

0 comments on commit 7ed3f43

Please sign in to comment.