Skip to content

Commit

Permalink
revert eslint.config.cjs to .eslint.cjs
Browse files Browse the repository at this point in the history
  • Loading branch information
rezrah committed Jan 24, 2025
1 parent bfe68b1 commit d760c0a
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 11 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// eslint-disable-next-line filenames/match-regex
const base = require('../../eslint.config.cjs')
const base = require('../../.eslintrc.cjs')

module.exports = {
...base,
Expand Down
2 changes: 1 addition & 1 deletion packages/site/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"eslint.options": {
"configFile": "eslint.config.cjs"
"configFile": ".eslintrc.cjs"
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/** @type {import('next').NextConfig} */
import withDoctocat from '@primer/doctocat-nextjs/doctocat.config.js'

export default {
Expand All @@ -7,7 +8,7 @@ export default {
publicRuntimeConfig: {
siteTitle: 'Doctocat',
repo: 'https://github.com/primer/doctocat-nextjs',
repoSrcPath: 'packages/site', // folder path to your site root. Helpful for monorepos.
repoSrcPath: 'packages/site',
sidebarLinks: [
{
title: 'GitHub',
Expand Down
2 changes: 1 addition & 1 deletion packages/site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"dev": "next dev",
"check": "tsc --noEmit",
"build": "rm -rf out && next build",
"lint": "eslint '**/*.{js,ts,tsx,md,mdx}' --max-warnings=0 --config ./eslint.config.cjs",
"lint": "eslint '**/*.{js,ts,tsx,md,mdx}' --max-warnings=0 --config ./.eslintrc.cjs",
"start": "next start"
},
"repository": {
Expand Down
6 changes: 2 additions & 4 deletions packages/site/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// eslint-disable-next-line filenames/match-regex
import {AppProps} from 'next/app'
import type {AppProps} from 'next/app'
import '@primer/doctocat-nextjs/css/global.css'

function CustomApp({Component, pageProps}: AppProps) {
export default function CustomApp({Component, pageProps}: AppProps) {
return <Component {...pageProps} />
}

export default CustomApp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const base = require('../../eslint.config.cjs')
const base = require('../../.eslintrc.cjs')

module.exports = {
...base,
Expand Down
2 changes: 1 addition & 1 deletion packages/theme/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"eslint.options": {
"configFile": "eslint.config.cjs"
"configFile": ".eslintrc.cjs"
}
}
2 changes: 1 addition & 1 deletion packages/theme/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"type": "module",
"scripts": {
"check": "tsc --noEmit",
"lint": "eslint '**/*.{js,ts,tsx,md,mdx}' --max-warnings=0 --config ./eslint.config.cjs",
"lint": "eslint '**/*.{js,ts,tsx,md,mdx}' --max-warnings=0 --config ./.eslintrc.cjs",
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "GitHub, Inc.",
Expand Down

0 comments on commit d760c0a

Please sign in to comment.