mirror of
https://github.com/onyx-dot-app/onyx-ui.git
synced 2026-07-01 14:46:04 -04:00
57 lines
1.4 KiB
JavaScript
57 lines
1.4 KiB
JavaScript
import js from "@eslint/js";
|
|
import typescript from "@typescript-eslint/eslint-plugin";
|
|
import typescriptParser from "@typescript-eslint/parser";
|
|
import prettier from "eslint-plugin-prettier";
|
|
import prettierConfig from "eslint-config-prettier";
|
|
|
|
export default [
|
|
js.configs.recommended,
|
|
{
|
|
ignores: ["dist/**", "node_modules/**", "*.config.js", "*.config.ts"],
|
|
},
|
|
{
|
|
files: ["**/*.{ts,tsx,js,jsx}"],
|
|
languageOptions: {
|
|
parser: typescriptParser,
|
|
ecmaVersion: 2020,
|
|
sourceType: "module",
|
|
globals: {
|
|
console: "readonly",
|
|
process: "readonly",
|
|
Buffer: "readonly",
|
|
__dirname: "readonly",
|
|
__filename: "readonly",
|
|
global: "readonly",
|
|
module: "readonly",
|
|
require: "readonly",
|
|
exports: "readonly",
|
|
},
|
|
parserOptions: {
|
|
ecmaFeatures: {
|
|
jsx: true,
|
|
},
|
|
project: "tsconfig.json",
|
|
},
|
|
},
|
|
settings: {
|
|
"import/resolver": {
|
|
typescript: {
|
|
alwaysTryTypes: true,
|
|
project: "tsconfig.json",
|
|
},
|
|
},
|
|
},
|
|
plugins: {
|
|
"@typescript-eslint": typescript,
|
|
prettier: prettier,
|
|
},
|
|
rules: {
|
|
...prettierConfig.rules,
|
|
"prettier/prettier": "warn",
|
|
"no-unused-vars": "warn",
|
|
"no-console": "warn",
|
|
"@typescript-eslint/no-unused-vars": "warn",
|
|
},
|
|
},
|
|
];
|