Migrate to Turborepo (#1251)

This commit is contained in:
Evan Song
2024-07-04 21:46:29 -07:00
committed by GitHub
parent 6fa1acc461
commit 0f2ddb452c
811 changed files with 5623 additions and 7832 deletions

View File

@@ -0,0 +1,3 @@
# `@turbo/eslint-config`
Collection of internal eslint configurations.

View File

@@ -0,0 +1,34 @@
const { resolve } = require("node:path");
const project = resolve(process.cwd(), "tsconfig.json");
/*
* This is a custom ESLint configuration for use with
* typescript packages.
*
* This config extends the Vercel Engineering Style Guide.
* For more information, see https://github.com/vercel/style-guide
*
*/
module.exports = {
extends: [
"@vercel/style-guide/eslint/node",
"@vercel/style-guide/eslint/typescript",
].map(require.resolve),
parserOptions: {
project,
},
globals: {
React: true,
JSX: true,
},
settings: {
"import/resolver": {
typescript: {
project,
},
},
},
ignorePatterns: ["node_modules/", "dist/"],
};

View File

@@ -0,0 +1,37 @@
const { resolve } = require("node:path");
const project = resolve(process.cwd(), "tsconfig.json");
/*
* This is a custom ESLint configuration for use with
* NuxtJs apps.
*
* This config extends the Vercel Engineering Style Guide.
* For more information, see https://github.com/vercel/style-guide
*
*/
module.exports = {
extends: [
"@nuxtjs/eslint-config-typescript",
"@vercel/style-guide/eslint/node",
"@vercel/style-guide/eslint/browser",
"turbo",
].map(require.resolve),
parserOptions: {
sourceType: "module",
},
settings: {
"import/resolver": {
typescript: {
project,
},
},
},
ignorePatterns: ["node_modules/", "dist/", ".eslintrc.cjs", "nuxt.config.ts"],
rules: {
"comma-dangle": "off",
semi: "off",
"no-undef": "off",
// add specific rules configurations here
},
};

View File

@@ -0,0 +1,13 @@
{
"name": "eslint-config-custom",
"license": "MIT",
"version": "0.0.0",
"private": true,
"devDependencies": {
"@nuxtjs/eslint-config-typescript": "^12.1.0",
"@vercel/style-guide": "^5.2.0",
"@vue/eslint-config-typescript": "^12.0.0",
"eslint-config-turbo": "^2.0.0",
"typescript": "^5.3.3"
}
}

View File

@@ -0,0 +1,38 @@
const { resolve } = require('node:path')
const project = resolve(process.cwd(), 'tsconfig.json')
/*
* This is a custom ESLint configuration for use with
* internal that utilize VueJS.
*
* This config extends the Vercel Engineering Style Guide.
* For more information, see https://github.com/vercel/style-guide
*
*/
module.exports = {
extends: ['@vercel/style-guide/eslint/browser', '@vue/eslint-config-typescript'].map(
require.resolve,
),
parserOptions: {
ecmaVersion: 'latest',
},
settings: {
'import/resolver': {
typescript: {
project,
},
},
},
ignorePatterns: ['node_modules/', 'dist/', '.eslintrc.js'],
rules: {
'import/no-default-export': 'off',
'vue/multi-word-component-names': 'off',
camelcase: 'off',
'no-console': 'off',
'no-bitwise': 'off',
// add specific rules configurations here
},
}