🎉 chore(init): project initialization

This commit is contained in:
web@ppanel
2024-11-14 01:22:43 +07:00
commit 829edfa824
479 changed files with 61413 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
const { resolve } = require('node:path');
const project = resolve(process.cwd(), 'tsconfig.json');
/** @type {import("eslint").Linter.Config} */
module.exports = {
extends: ['eslint:recommended', 'prettier', 'turbo'],
plugins: ['only-warn'],
globals: {
React: true,
JSX: true,
},
env: {
node: true,
},
settings: {
'import/resolver': {
typescript: {
project,
},
},
},
ignorePatterns: [
// Ignore dotfiles
'.*.js',
'node_modules/',
'dist/',
],
overrides: [
{
files: ['*.js?(x)', '*.ts?(x)'],
},
],
};
+36
View File
@@ -0,0 +1,36 @@
const { resolve } = require('node:path');
const project = resolve(process.cwd(), 'tsconfig.json');
/** @type {import("eslint").Linter.Config} */
module.exports = {
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
require.resolve('@vercel/style-guide/eslint/next'),
'turbo',
],
globals: {
React: true,
JSX: true,
},
env: {
node: true,
browser: true,
},
plugins: ['only-warn'],
settings: {
'import/resolver': {
typescript: {
project,
},
},
},
ignorePatterns: [
// Ignore dotfiles
'.*.js',
'node_modules/',
],
overrides: [{ files: ['*.js?(x)', '*.ts?(x)'] }],
};
+21
View File
@@ -0,0 +1,21 @@
{
"name": "@repo/eslint-config",
"private": true,
"files": [
"library.js",
"next.js",
"react-internal.js"
],
"devDependencies": {
"@next/eslint-plugin-next": "^15.0.3",
"@types/eslint": "^8",
"@typescript-eslint/eslint-plugin": "^8.13.0",
"@typescript-eslint/parser": "^8.13.0",
"@vercel/style-guide": "^6.0.0",
"eslint": "^8",
"eslint-config-next": "^15.0.3",
"eslint-config-prettier": "^9.1.0",
"eslint-config-turbo": "^2.2.3",
"eslint-plugin-only-warn": "^1.1.0"
}
}
+39
View File
@@ -0,0 +1,39 @@
const { resolve } = require('node:path');
const project = resolve(process.cwd(), 'tsconfig.json');
/*
* This is a custom ESLint configuration for use with
* internal (bundled by their consumer) libraries
* that utilize React.
*/
/** @type {import("eslint").Linter.Config} */
module.exports = {
extends: ['eslint:recommended', 'prettier', 'turbo'],
plugins: ['only-warn'],
globals: {
React: true,
JSX: true,
},
env: {
browser: true,
},
settings: {
'import/resolver': {
typescript: {
project,
},
},
},
ignorePatterns: [
// Ignore dotfiles
'.*.js',
'node_modules/',
'dist/',
],
overrides: [
// Force ESLint to detect .tsx files
{ files: ['*.js?(x)', '*.ts?(x)'] },
],
};