Skip to content

Commit

Permalink
chore(lint): linting
Browse files Browse the repository at this point in the history
  • Loading branch information
LunaticMuch committed Jun 7, 2023
1 parent 244e56b commit 2fee9b4
Show file tree
Hide file tree
Showing 14 changed files with 4,490 additions and 4,195 deletions.
4 changes: 3 additions & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ module.exports = {
"plugin:regexp/recommended",
"prettier",
],

overrides: [
{
extends: ["plugin:markdown/recommended"],
Expand All @@ -22,14 +23,15 @@ module.exports = {
"plugin:typescript-sort-keys/recommended",
],
files: ["**/*.ts"],
excludedFiles: ["./example/*"],
parser: "@typescript-eslint/parser",
},
{
extends: [
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:@typescript-eslint/strict",
],
excludedFiles: ["**/*.md/*.ts"],
excludedFiles: ["**/*.md", "./example/*"],
files: ["**/*.ts"],
parser: "@typescript-eslint/parser",
parserOptions: {
Expand Down
27 changes: 14 additions & 13 deletions .github/workflows/release.yaml → .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,13 @@
name: Release
on:
push:
branches:
- main

permissions:
contents: read # for checkout

jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
issues: write
pull-requests: write
id-token: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -24,13 +16,22 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "lts/hydrogen"
node-version: lts/hydrogen
- name: Install dependencies
run: npm clean-install
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
run: npm audit signatures
- name: Release
env:
- env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
name: Release
run: npx semantic-release
name: Release
on:
push:
branches:
- main

permissions:
contents: read # for checkout

1 change: 1 addition & 0 deletions example/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import '@/styles/globals.css'

import type { AppProps } from 'next/app'

export default function App({ Component, pageProps }: AppProps) {
Expand Down
2 changes: 1 addition & 1 deletion example/pages/_document.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Html, Head, Main, NextScript } from 'next/document'
import { Head, Html, Main, NextScript } from 'next/document'

export default function Document() {
return (
Expand Down
2 changes: 1 addition & 1 deletion example/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Inter } from "next/font/google";
import Image from "next/image";
import Link from "next/link";
import { Inter } from "next/font/google";

// const inter = Inter({ subsets: ["latin"] });

Expand Down
4 changes: 3 additions & 1 deletion example/pages/schema/[...type].tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { schemaParser } from "../../../lib/index.js";
import { cwd } from "node:process";

import Link from "next/link";

import { schemaParser } from "../../../lib/index.js";

// Initialize the schema parser reading from disk
const t = new schemaParser(`${cwd()}/schema/schema.graphql`);

Expand Down
4 changes: 2 additions & 2 deletions nodemon.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"watch": ["src"],
"exec": "ts-node ./src/index.ts",
"ext": "ts,json",
"ignore": ["src/**/*.spec.ts"],
"exec": "ts-node ./src/index.ts"
"watch": ["src"]
}
Loading

0 comments on commit 2fee9b4

Please sign in to comment.