oh lord. prettier eslint and all that
This commit is contained in:
@@ -19,7 +19,7 @@ const config = {
|
||||
rules: {
|
||||
'turbo/no-undeclared-env-vars': 'off',
|
||||
'@typescript-eslint/no-unused-vars': [
|
||||
'error',
|
||||
'warn',
|
||||
{ argsIgnorePattern: '^_', varsIgnorePattern: '^_' },
|
||||
],
|
||||
'@typescript-eslint/consistent-type-imports': [
|
||||
@@ -34,7 +34,11 @@ const config = {
|
||||
"@typescript-eslint/no-empty-function": "off",
|
||||
"@typescript-eslint/no-floating-promises": "off",
|
||||
"@typescript-eslint/no-explicit-any": "warn",
|
||||
"@typescript-eslint/ban-ts-comment": "off"
|
||||
"@typescript-eslint/ban-ts-comment": "off",
|
||||
"@typescript-eslint/no-unsafe-return": "off",
|
||||
"@typescript-eslint/no-unsafe-assignment": "warn",
|
||||
"@typescript-eslint/no-unsafe-member-access": "warn",
|
||||
"@typescript-eslint/no-unsafe-argument": "warn"
|
||||
},
|
||||
ignorePatterns: [
|
||||
'**/.eslintrc.cjs',
|
||||
|
||||
9
tooling/eslint/nextjs.js
Normal file
9
tooling/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;
|
||||
@@ -5,6 +5,7 @@
|
||||
"license": "MIT",
|
||||
"files": [
|
||||
"./base.js",
|
||||
"./nextjs.js",
|
||||
"./react.js"
|
||||
],
|
||||
"scripts": {
|
||||
@@ -14,6 +15,8 @@
|
||||
"typecheck": "tsc --noEmit"
|
||||
},
|
||||
"dependencies": {
|
||||
"@next/eslint-plugin-next": "^13.4.19",
|
||||
"@types/eslint": "^8.44.2",
|
||||
"@typescript-eslint/eslint-plugin": "^6.6.0",
|
||||
"@typescript-eslint/parser": "^6.6.0",
|
||||
"eslint-config-prettier": "^9.0.0",
|
||||
@@ -24,11 +27,12 @@
|
||||
"eslint-plugin-react-hooks": "^4.6.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/eslint": "^8.44.2",
|
||||
"@mixan/prettier-config": "workspace:*",
|
||||
"@mixan/tsconfig": "workspace:*",
|
||||
"@types/eslint": "^8.44.2",
|
||||
"eslint": "^8.48.0",
|
||||
"typescript": "^5.2.0"
|
||||
"prettier": "^3.0.3",
|
||||
"typescript": "^5.2.2"
|
||||
},
|
||||
"eslintConfig": {
|
||||
"root": true,
|
||||
|
||||
2
tooling/eslint/react.js
vendored
2
tooling/eslint/react.js
vendored
@@ -7,6 +7,8 @@ const config = {
|
||||
],
|
||||
rules: {
|
||||
'react/prop-types': 'off',
|
||||
'react/no-unknown-property': 'off',
|
||||
'jsx-a11y/click-events-have-key-events': 'off'
|
||||
},
|
||||
globals: {
|
||||
React: 'writable',
|
||||
|
||||
@@ -3,9 +3,7 @@
|
||||
|
||||
/** @type { PrettierConfig | SortImportsConfig } */
|
||||
const config = {
|
||||
plugins: [
|
||||
'@ianvs/prettier-plugin-sort-imports',
|
||||
],
|
||||
plugins: ['@ianvs/prettier-plugin-sort-imports'],
|
||||
importOrder: [
|
||||
'^(react/(.*)$)|^(react$)|^(react-native(.*)$)',
|
||||
'<THIRD_PARTY_MODULES>',
|
||||
@@ -23,6 +21,6 @@ const config = {
|
||||
trailingComma: 'es5',
|
||||
printWidth: 80,
|
||||
tabWidth: 2,
|
||||
};
|
||||
}
|
||||
|
||||
export default config;
|
||||
export default config
|
||||
|
||||
@@ -7,11 +7,12 @@
|
||||
"clean": "rm -rf .turbo node_modules"
|
||||
},
|
||||
"dependencies": {
|
||||
"@ianvs/prettier-plugin-sort-imports": "^4.1.0",
|
||||
"prettier": "^3.0.3"
|
||||
"@ianvs/prettier-plugin-sort-imports": "^4.1.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@mixan/tsconfig": "workspace:*",
|
||||
"typescript": "^5.2.0"
|
||||
"eslint": "^8.48.0",
|
||||
"prettier": "^3.0.3",
|
||||
"typescript": "^5.2.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,21 +9,23 @@
|
||||
"format": "prettier --check \"**/*.{mjs,ts,md,json}\"",
|
||||
"typecheck": "tsc --noEmit"
|
||||
},
|
||||
"dependencies": {
|
||||
"semver": "^7.5.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@mixan/eslint-config": "workspace:*",
|
||||
"@mixan/prettier-config": "workspace:*",
|
||||
"@mixan/tsconfig": "workspace:*",
|
||||
"@types/eslint": "^8.44.2",
|
||||
"eslint": "^8.48.0",
|
||||
"typescript": "^5.2.0"
|
||||
"prettier": "^3.0.3",
|
||||
"typescript": "^5.2.2"
|
||||
},
|
||||
"eslintConfig": {
|
||||
"root": true,
|
||||
"extends": [
|
||||
"./base.js"
|
||||
"@mixan/eslint-config/base"
|
||||
]
|
||||
},
|
||||
"prettier": "@mixan/prettier-config",
|
||||
"dependencies": {
|
||||
"semver": "^7.5.4"
|
||||
}
|
||||
"prettier": "@mixan/prettier-config"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user