Skip to content

Commit

Permalink
fix: bump deps
Browse files Browse the repository at this point in the history
  • Loading branch information
stipsan committed Jul 7, 2023
1 parent 6b5d0ed commit 91114c6
Show file tree
Hide file tree
Showing 11 changed files with 10,422 additions and 13,638 deletions.
2 changes: 1 addition & 1 deletion .babelrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// this babel file is for jest only
module.exports = {
presets: [['@babel/preset-env', { targets: 'maintained node versions' }]],
presets: [["@babel/preset-env", { targets: "maintained node versions" }]],
};
268 changes: 134 additions & 134 deletions .eslintrc.js

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["github>sanity-io/renovate-config"]
}
12 changes: 6 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ jobs:
runs-on: ubuntu-latest
name: Lint & Build
steps:
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3
- uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # tag=v3
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: npm
node-version: lts/*
Expand Down Expand Up @@ -70,8 +70,8 @@ jobs:
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3
- uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # tag=v3
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: npm
node-version: ${{ matrix.node }}
Expand All @@ -85,12 +85,12 @@ jobs:
runs-on: ubuntu-latest
name: Semantic release
steps:
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3
- uses: actions/checkout@v3
with:
# Need to fetch entire commit history to
# analyze every commit since last release
fetch-depth: 0
- uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # tag=v3
- uses: actions/setup-node@v3
with:
cache: npm
node-version: lts/*
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,3 @@ Run ["CI & Release" workflow](https://github.com/sanity-io/eslint-config-studio/
Make sure to select the main branch and check "Release new version".

Semantic release will only release on configured branches, so it is safe to run release on any branch.

2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = require('./.eslintrc.js');
module.exports = require("./.eslintrc.js");
11 changes: 6 additions & 5 deletions index.test.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { ESLint } from 'eslint';
import path from 'path';
import fs from 'fs';
import { ESLint } from "eslint";
import path from "path";
import fs from "fs";
import { it, expect } from "vitest";

const supportedExtensions = ['.js', '.ts', '.tsx'];
const supportedExtensions = [".js", ".ts", ".tsx"];

// grabs the rule meta for each of the rules in the config and asserts that they
// are not marked as deprecated. works by using the eslint node API
Expand All @@ -18,7 +19,7 @@ it("is a valid config and doesn't include any deprecated rules", async () => {
// through the supported extensions and ensure the file exists
const filePath = path.resolve(__dirname, `_fake-file${extension}`);

await fs.promises.writeFile(filePath, '// intentionally blank');
await fs.promises.writeFile(filePath, "// intentionally blank");

const eslint = new ESLint();

Expand Down

0 comments on commit 91114c6

Please sign in to comment.