Skip to content

Commit

Permalink
šŸ› Fix(docs,package,enviroment): turn off experimentalUI at turbo.jsonā€¦
Browse files Browse the repository at this point in the history
ā€¦, set type to module at configs packs and docs + conf docs
  • Loading branch information
INeedJobToStartWork committed Mar 31, 2024
1 parent 1c9dc80 commit 455a404
Show file tree
Hide file tree
Showing 10 changed files with 29 additions and 6 deletions.
1 change: 1 addition & 0 deletions apps/docs/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ESLINT_USE_FLAT_CONFIG = true
4 changes: 4 additions & 0 deletions apps/docs/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import EslintBase from "eslintrc/base.js";
import EslintTypescript from "eslintrc/typescript.js";

export default [...EslintBase, ...EslintTypescript];
4 changes: 2 additions & 2 deletions apps/docs/next.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import NextraConfig from "nextra";
import nextraConfig from "nextra";

const withNextra = NextraConfig({
const withNextra = nextraConfig({
theme: "nextra-theme-docs",
themeConfig: "./theme.config.jsx",
});
Expand Down
8 changes: 6 additions & 2 deletions apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,20 @@
"name": "docs",
"version": "0.0.0",
"private": true,
"type":"module",
"type": "module",
"scripts": {
"dev": "next",
"build": "next build",
"start": "next start",
"test": "echo 'Add test script here'",
"lint": "echo 'Add lint script here'"
"prettier": "pnpm prettier . --write && pnpm prettier . --check",
"lint": "pnpm eslint .",
"lint:fix": "pnpm eslint . --fix"
},
"devDependencies": {
"eslint": "^8.57.0",
"eslintrc": "workspace:*",
"prettier": "^3.2.5",
"prettierrc": "workspace:*",
"tsconfigrc": "workspace:*"
},
Expand Down
1 change: 0 additions & 1 deletion configs/eslintrc/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,6 @@ export default [
// "sort-imports": "warn",
"@stylistic/js/brace-style": "off",
"sort-vars": "off",
"@stylistic/js/comma-dangle": ["error", "never"],
strict: "off",
"@stylistic/js/comma-spacing": ["error", { after: true, before: false }],
"symbol-description": "warn",
Expand Down
1 change: 1 addition & 0 deletions configs/eslintrc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "eslintrc",
"version": "0.0.0",
"private": true,
"type": "module",
"scripts": {
"dev": "echo 'Add dev script here'",
"build": "echo 'Add build script here'",
Expand Down
1 change: 1 addition & 0 deletions configs/prettierrc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "prettierrc",
"version": "0.0.0",
"private": true,
"type": "module",
"scripts": {
"dev": "echo 'Add dev script here'",
"build": "echo 'Add build script here'",
Expand Down
1 change: 1 addition & 0 deletions configs/tsconfigrc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "tsconfigrc",
"version": "0.0.0",
"private": true,
"type": "module",
"scripts": {
"dev": "echo 'Add dev script here'",
"build": "echo 'Add build script here'",
Expand Down
12 changes: 12 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion turbo.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://turbo.build/schema.json",
"experimentalUI": true,
"experimentalUI": false,
"pipeline": {
"format": {},
"lint:fix": {},
Expand Down

0 comments on commit 455a404

Please sign in to comment.