-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4,019 changed files
with
121,597 additions
and
138,991 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
lib | ||
build | ||
dist | ||
.yarn | ||
.husky | ||
generated | ||
bundle.c?js | ||
.pnp* | ||
**/generated |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,153 @@ | ||
/** | ||
* @type {import("eslint").Linter.Config} | ||
*/ | ||
module.exports = { | ||
root: true, | ||
extends: [ | ||
"prettier", | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:@typescript-eslint/strict", | ||
"plugin:@typescript-eslint/eslint-recommended", | ||
"plugin:vitest/recommended", | ||
"plugin:react/recommended", | ||
"plugin:react-hooks/recommended", | ||
"plugin:tailwindcss/recommended", | ||
"plugin:@next/next/recommended", | ||
], | ||
plugins: ["deprecation", "import", "eslint-plugin-tailwindcss"], | ||
env: { | ||
browser: true, | ||
es2021: true, | ||
}, | ||
settings: { | ||
react: { | ||
version: "^18.2.0", | ||
}, | ||
settings: { | ||
next: { | ||
rootDir: "packages/docs-bundle/", | ||
}, | ||
}, | ||
}, | ||
parser: "@typescript-eslint/parser", | ||
parserOptions: { | ||
ecmaFeatures: { | ||
jsx: true, | ||
}, | ||
ecmaVersion: 12, | ||
sourceType: "module", | ||
project: ["./tsconfig.eslint.json", "./packages/**/tsconfig.json"], | ||
allowAutomaticSingleRunInference: true, | ||
tsconfigRootDir: __dirname, | ||
}, | ||
ignorePatterns: ["*.js", "*.jsx"], | ||
rules: { | ||
"@typescript-eslint/no-unused-vars": [ | ||
"error", | ||
{ | ||
varsIgnorePattern: "^_", | ||
argsIgnorePattern: "^_", | ||
ignoreRestSiblings: true, | ||
}, | ||
], | ||
"@typescript-eslint/no-namespace": [ | ||
"error", | ||
{ | ||
allowDeclarations: true, | ||
}, | ||
], | ||
"@typescript-eslint/explicit-module-boundary-types": ["off"], | ||
"@typescript-eslint/no-floating-promises": ["error"], | ||
"@typescript-eslint/no-empty-function": [ | ||
"error", | ||
{ | ||
allow: ["private-constructors", "protected-constructors", "decoratedFunctions"], | ||
}, | ||
], | ||
"@typescript-eslint/await-thenable": "error", | ||
"@typescript-eslint/no-base-to-string": "error", | ||
"@typescript-eslint/no-extraneous-class": "off", | ||
"@typescript-eslint/no-invalid-void-type": "off", | ||
"@typescript-eslint/prefer-optional-chain": "off", | ||
"@typescript-eslint/strict-boolean-expressions": "off", | ||
"linebreak-style": ["error", "unix"], | ||
"no-console": "error", | ||
"no-empty": [ | ||
"error", | ||
{ | ||
allowEmptyCatch: true, | ||
}, | ||
], | ||
"no-unused-vars": "off", | ||
"tailwindcss/classnames-order": "off", | ||
quotes: [ | ||
"error", | ||
"double", | ||
{ | ||
avoidEscape: true, | ||
}, | ||
], | ||
semi: ["error", "always"], | ||
indent: "off", | ||
"object-shorthand": ["error"], | ||
"deprecation/deprecation": "warn", | ||
// "import/no-internal-modules": ["error"], | ||
eqeqeq: [ | ||
"error", | ||
"always", | ||
{ | ||
null: "never", | ||
}, | ||
], | ||
curly: "error", | ||
"react/react-in-jsx-scope": "off", | ||
"react/prop-types": "off", | ||
"tailwindcss/no-custom-classname": "off", | ||
"@next/next/no-html-link-for-pages": "off", | ||
"@next/next/no-img-element": "off", | ||
"react-hooks/exhaustive-deps": [ | ||
"warn", | ||
{ | ||
additionalHooks: "(useMemoOne|useCallbackOne)", | ||
}, | ||
], | ||
}, | ||
overrides: [ | ||
{ | ||
// enable the rule specifically for TypeScript files | ||
files: ["*.ts", "*.mts", "*.cts", "*.tsx"], | ||
rules: { | ||
"@typescript-eslint/explicit-module-boundary-types": [ | ||
"error", | ||
{ | ||
allowHigherOrderFunctions: false, | ||
}, | ||
], | ||
}, | ||
}, | ||
{ | ||
files: ["packages/fdr-sdk/**/*", "servers/fdr-deploy/**/*", "servers/fdr/**/*"], | ||
rules: { | ||
"@typescript-eslint/explicit-module-boundary-types": "off", | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"@typescript-eslint/no-unused-vars": "off", | ||
"@typescript-eslint/no-floating-promises": "off", | ||
"@typescript-eslint/no-base-to-string": "off", | ||
}, | ||
}, | ||
{ | ||
files: ["servers/fdr/**/*", "servers/fern-bot/**/*"], | ||
rules: { | ||
eqeqeq: "off", | ||
"no-console": "off", | ||
}, | ||
}, | ||
{ | ||
files: ["packages/ui/**/*"], | ||
rules: { | ||
"@typescript-eslint/no-explicit-any": "off", | ||
}, | ||
}, | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
const DEFAULT_CONFIG = require("./.eslintrc.js"); | ||
|
||
const TYPESCRIPT_ESLINT = "@typescript-eslint"; | ||
const TYPESCRIPT_ESLINT_PARSER_OPTIONS = new Set(["project", "allowAutomaticSingleRunInference", "tsconfigRootDir"]); | ||
|
||
module.exports = { | ||
...DEFAULT_CONFIG, | ||
extends: [ | ||
...DEFAULT_CONFIG.extends.filter((extended) => !extended.startsWith(`plugin:${TYPESCRIPT_ESLINT}/`)), | ||
// needed to disable recommended eslint rules that don't apply | ||
"plugin:@typescript-eslint/eslint-recommended", | ||
], | ||
parserOptions: Object.entries(DEFAULT_CONFIG.parserOptions).reduce( | ||
(newParserOptions, [parserOptionKey, parserOption]) => { | ||
if (!TYPESCRIPT_ESLINT_PARSER_OPTIONS.has(parserOptionKey)) { | ||
newParserOptions[parserOptionKey] = parserOption; | ||
} | ||
return newParserOptions; | ||
}, | ||
{}, | ||
), | ||
rules: Object.entries(DEFAULT_CONFIG.rules).reduce( | ||
(newRules, [ruleId, rule]) => { | ||
if (!doesRuleRequireTypeInformation(ruleId) || rule === "off") { | ||
newRules[ruleId] = rule; | ||
} | ||
return newRules; | ||
}, | ||
{ | ||
"no-unused-vars": "off", | ||
}, | ||
), | ||
}; | ||
|
||
function doesRuleRequireTypeInformation(ruleId) { | ||
if (ruleId.startsWith(`${TYPESCRIPT_ESLINT}/`)) { | ||
return true; | ||
} | ||
switch (ruleId) { | ||
case "deprecation/deprecation": | ||
case "jest/unbound-method": | ||
return true; | ||
default: | ||
return false; | ||
} | ||
} |
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
* @dsinghvi | ||
packages/fern-docs/** @abvthecity | ||
packages/parsers/** @RohinBhargava | ||
packages/template-resolver/** @armandobelardo | ||
packages/ui/** @abvthecity | ||
packages/ui/fern-dashboard/** @armandobelardo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.