141 lines
3.6 KiB
JSON
141 lines
3.6 KiB
JSON
{
|
|
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
|
"plugins": ["unicorn", "typescript", "oxc", "import", "promise", "vitest"],
|
|
"env": {
|
|
"browser": true,
|
|
"es2024": true,
|
|
"node": true,
|
|
"builtin": true
|
|
},
|
|
"globals": {},
|
|
"settings": {},
|
|
"ignorePatterns": [
|
|
".git/",
|
|
"**/*.d.ts",
|
|
"**/*.test.ts",
|
|
"**/*.js",
|
|
"**/*.cjs",
|
|
"**/*.mjs",
|
|
"**/*.jsx",
|
|
"**/*.md.ts",
|
|
"**/cdk.out/",
|
|
"**/dist/",
|
|
"**/node_modules/",
|
|
"**/bp_modules/",
|
|
"**/.botpress/",
|
|
"**/gen/",
|
|
"**/bp_modules/",
|
|
"**/.turbo/",
|
|
"**/.genenv/",
|
|
"packages/llmz/examples/",
|
|
"node_modules/",
|
|
"**/.adk/",
|
|
"**/.ignore.me.*"
|
|
],
|
|
"rules": {},
|
|
"overrides": [
|
|
{
|
|
"files": ["**/*.{ts,tsx}"],
|
|
"jsPlugins": ["eslint-plugin-prettier", "@stylistic/eslint-plugin"],
|
|
"rules": {
|
|
"eslint/no-console": [
|
|
"warn",
|
|
{
|
|
"allow": [
|
|
"warn",
|
|
"dir",
|
|
"time",
|
|
"timeEnd",
|
|
"timeLog",
|
|
"trace",
|
|
"assert",
|
|
"clear",
|
|
"count",
|
|
"countReset",
|
|
"group",
|
|
"groupEnd",
|
|
"table",
|
|
"debug",
|
|
"info",
|
|
"dirxml",
|
|
"error",
|
|
"groupCollapsed",
|
|
"Console",
|
|
"profile",
|
|
"profileEnd",
|
|
"timeStamp",
|
|
"context"
|
|
]
|
|
}
|
|
],
|
|
"eslint/no-cond-assign": "error",
|
|
"eslint/no-const-assign": "error",
|
|
"eslint/no-debugger": "error",
|
|
"eslint/no-sparse-arrays": "error",
|
|
"eslint/no-unreachable": "error",
|
|
"eslint/max-lines-per-function": "off",
|
|
"eslint/default-case": "off",
|
|
"eslint/default-case-last": "error",
|
|
"eslint/max-depth": "error",
|
|
"eslint/no-eval": "error",
|
|
"eslint/no-return-assign": "error",
|
|
"eslint/no-var": "error",
|
|
"eslint/no-duplicate-imports": "error",
|
|
"typescript/consistent-type-definitions": ["error", "type"],
|
|
"typescript/prefer-namespace-keyword": "error",
|
|
"eslint/curly": ["error", "multi-line"],
|
|
"eslint/eqeqeq": ["error", "smart"],
|
|
"typescript/no-unused-vars": "off",
|
|
"eslint/no-unused-vars": [
|
|
"error",
|
|
{
|
|
"vars": "all",
|
|
"varsIgnorePattern": "^_",
|
|
"args": "after-used",
|
|
"argsIgnorePattern": "^_"
|
|
}
|
|
],
|
|
"unicorn/no-empty-file": "error",
|
|
"unicorn/no-lonely-if": "off",
|
|
"prettier/prettier": "error",
|
|
"arrow-body-style": "off",
|
|
"complexity": ["off"],
|
|
"prefer-const": "warn",
|
|
"@stylistic/member-delimiter-style": [
|
|
"error",
|
|
{
|
|
"multiline": {
|
|
"delimiter": "none",
|
|
"requireLast": true
|
|
},
|
|
"singleline": {
|
|
"delimiter": "semi",
|
|
"requireLast": false
|
|
}
|
|
}
|
|
],
|
|
"@stylistic/quotes": [
|
|
"error",
|
|
"single",
|
|
{
|
|
"avoidEscape": true
|
|
}
|
|
],
|
|
"@stylistic/semi": ["error", "never"],
|
|
"@stylistic/type-annotation-spacing": "error",
|
|
"@stylistic/brace-style": "off",
|
|
"@stylistic/eol-last": "error",
|
|
"@stylistic/linebreak-style": ["error", "unix"],
|
|
"@stylistic/no-trailing-spaces": "error",
|
|
"no-shadow": "off"
|
|
}
|
|
}
|
|
],
|
|
"categories": {
|
|
"correctness": "off",
|
|
"pedantic": "off",
|
|
"perf": "off",
|
|
"suspicious": "off"
|
|
}
|
|
}
|