* static files changes * remake modifiers * test case * some docs changes * deps and rule changes * edit proper interfaces * remake getServer * @elysiajs/swagger * remake tsconfig * ci changes use bun * docs changes * feat(core): hard remake with bun and elysia * chore(release): 8.2.0-alpha * auto release * ci * update global * chore(release): 8.2.1-alpha * ci
56 lines
1.4 KiB
JavaScript
56 lines
1.4 KiB
JavaScript
const tsParser = require("@typescript-eslint/parser");
|
|
const tsPlugin = require("@typescript-eslint/eslint-plugin");
|
|
|
|
module.exports = [
|
|
{
|
|
ignores: ["node_modules/**", "build/**"],
|
|
},
|
|
{
|
|
files: ["**/*.ts"],
|
|
languageOptions: {
|
|
parser: tsParser,
|
|
parserOptions: {
|
|
ecmaVersion: 12,
|
|
sourceType: "module",
|
|
},
|
|
globals: {
|
|
module: "readonly",
|
|
require: "readonly",
|
|
__dirname: "readonly",
|
|
__filename: "readonly",
|
|
process: "readonly",
|
|
Buffer: "readonly",
|
|
console: "readonly",
|
|
Bun: "readonly",
|
|
fetch: "readonly",
|
|
describe: "readonly",
|
|
test: "readonly",
|
|
expect: "readonly",
|
|
beforeAll: "readonly",
|
|
afterAll: "readonly",
|
|
it: "readonly",
|
|
AbortController: "readonly",
|
|
setTimeout: "readonly",
|
|
clearTimeout: "readonly",
|
|
},
|
|
},
|
|
plugins: {
|
|
"@typescript-eslint": tsPlugin,
|
|
},
|
|
rules: {
|
|
"no-unused-vars": "error",
|
|
"no-undef": "error",
|
|
"linebreak-style": 0,
|
|
"quotes": ["error", "double"],
|
|
"semi": ["error", "always"],
|
|
"no-empty": "error",
|
|
"no-func-assign": "error",
|
|
"no-case-declarations": "off",
|
|
"no-unreachable": "error",
|
|
"no-eval": "error",
|
|
"no-global-assign": "error",
|
|
"@typescript-eslint/no-explicit-any": "off",
|
|
"indent": ["error", 2],
|
|
},
|
|
},
|
|
]; |