initial commit: fork
This commit is contained in:
53
packages/config/eslint/base.js
Normal file
53
packages/config/eslint/base.js
Normal file
@@ -0,0 +1,53 @@
|
||||
/** @type {import("eslint").Linter.Config} */
|
||||
const config = {
|
||||
extends: [
|
||||
'turbo',
|
||||
'eslint:recommended',
|
||||
'plugin:@typescript-eslint/recommended-type-checked',
|
||||
'plugin:@typescript-eslint/stylistic-type-checked',
|
||||
'prettier'
|
||||
],
|
||||
env: {
|
||||
es2022: true,
|
||||
node: true
|
||||
},
|
||||
parser: '@typescript-eslint/parser',
|
||||
parserOptions: {
|
||||
project: true
|
||||
},
|
||||
plugins: ['@typescript-eslint', 'import'],
|
||||
rules: {
|
||||
'@typescript-eslint/no-unused-vars': [
|
||||
'error',
|
||||
{ argsIgnorePattern: '^_', varsIgnorePattern: '^_' }
|
||||
],
|
||||
'@typescript-eslint/consistent-type-imports': [
|
||||
'warn',
|
||||
{ prefer: 'type-imports', fixStyle: 'separate-type-imports' }
|
||||
],
|
||||
'@typescript-eslint/no-misused-promises': [
|
||||
2,
|
||||
{ checksVoidReturn: { attributes: false } }
|
||||
],
|
||||
'@typescript-eslint/no-unsafe-member-access': 'off',
|
||||
'@typescript-eslint/no-explicit-any': 'off',
|
||||
'@typescript-eslint/no-unsafe-assignment': 'off',
|
||||
'@typescript-eslint/dot-notation': 'off',
|
||||
'@typescript-eslint/no-misused-promises': 'off',
|
||||
'@typescript-eslint/ban-ts-comment': 'off',
|
||||
'@typescript-eslint/no-unsafe-return': 'off',
|
||||
'@typescript-eslint/no-unsafe-call': 'off'
|
||||
},
|
||||
ignorePatterns: [
|
||||
'**/.eslintrc.cjs',
|
||||
'**/*.config.js',
|
||||
'**/*.config.cjs',
|
||||
'packages/config/**',
|
||||
'.next',
|
||||
'dist',
|
||||
'pnpm-lock.yaml'
|
||||
],
|
||||
reportUnusedDisableDirectives: true
|
||||
};
|
||||
|
||||
module.exports = config;
|
||||
9
packages/config/eslint/nextjs.js
Normal file
9
packages/config/eslint/nextjs.js
Normal file
@@ -0,0 +1,9 @@
|
||||
/** @type {import('eslint').Linter.Config} */
|
||||
const config = {
|
||||
extends: ['plugin:@next/next/recommended'],
|
||||
rules: {
|
||||
'@next/next/no-html-link-for-pages': 'off'
|
||||
}
|
||||
};
|
||||
|
||||
module.exports = config;
|
||||
26
packages/config/eslint/package.json
Normal file
26
packages/config/eslint/package.json
Normal file
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"name": "@master-bot/eslint-config",
|
||||
"version": "0.2.0",
|
||||
"license": "ISC",
|
||||
"files": [
|
||||
"./base.js",
|
||||
"./nextjs.js",
|
||||
"./react.js"
|
||||
],
|
||||
"dependencies": {
|
||||
"@next/eslint-plugin-next": "^13.4.12",
|
||||
"@types/eslint": "^8.44.1",
|
||||
"@typescript-eslint/eslint-plugin": "^6.2.1",
|
||||
"@typescript-eslint/parser": "^6.2.1",
|
||||
"eslint-config-prettier": "^8.10.0",
|
||||
"eslint-config-turbo": "^1.10.12",
|
||||
"eslint-plugin-import": "^2.28.0",
|
||||
"eslint-plugin-jsx-a11y": "^6.7.1",
|
||||
"eslint-plugin-react": "^7.33.1",
|
||||
"eslint-plugin-react-hooks": "^4.6.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint": "^8.46.0",
|
||||
"typescript": "^5.1.6"
|
||||
}
|
||||
}
|
||||
24
packages/config/eslint/react.js
vendored
Normal file
24
packages/config/eslint/react.js
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
/** @type {import('eslint').Linter.Config} */
|
||||
const config = {
|
||||
extends: [
|
||||
'plugin:react/recommended',
|
||||
'plugin:react-hooks/recommended',
|
||||
'plugin:jsx-a11y/recommended'
|
||||
],
|
||||
rules: {
|
||||
'react/prop-types': 'off'
|
||||
},
|
||||
globals: {
|
||||
React: 'writable'
|
||||
},
|
||||
settings: {
|
||||
react: {
|
||||
version: 'detect'
|
||||
}
|
||||
},
|
||||
env: {
|
||||
browser: true
|
||||
}
|
||||
};
|
||||
|
||||
module.exports = config;
|
||||
9
packages/config/tailwind/index.ts
Normal file
9
packages/config/tailwind/index.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import type { Config } from 'tailwindcss';
|
||||
|
||||
export default {
|
||||
content: [''],
|
||||
theme: {
|
||||
extend: {}
|
||||
},
|
||||
plugins: []
|
||||
} satisfies Config;
|
||||
15
packages/config/tailwind/package.json
Normal file
15
packages/config/tailwind/package.json
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"name": "@master-bot/tailwind-config",
|
||||
"version": "0.1.0",
|
||||
"main": "index.ts",
|
||||
"license": "ISC",
|
||||
"files": [
|
||||
"index.ts",
|
||||
"postcss.js"
|
||||
],
|
||||
"devDependencies": {
|
||||
"autoprefixer": "^10.4.14",
|
||||
"postcss": "^8.4.27",
|
||||
"tailwindcss": "^3.3.3"
|
||||
}
|
||||
}
|
||||
6
packages/config/tailwind/postcss.js
Normal file
6
packages/config/tailwind/postcss.js
Normal file
@@ -0,0 +1,6 @@
|
||||
module.exports = {
|
||||
plugins: {
|
||||
tailwindcss: {},
|
||||
autoprefixer: {}
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user