forked from TEN-framework/ten-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.mjs
More file actions
34 lines (33 loc) · 941 Bytes
/
Copy patheslint.config.mjs
File metadata and controls
34 lines (33 loc) · 941 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
//
// Copyright © 2025 Agora
// This file is part of TEN Framework, an open source project.
// Licensed under the Apache License, Version 2.0, with certain conditions.
// Refer to the "LICENSE" file in the root directory for more information.
//
import js from "@eslint/js";
import tseslint from "typescript-eslint";
import prettierPlugin from "eslint-plugin-prettier";
import prettierConfig from "eslint-config-prettier";
export default await tseslint.config({
files: ["**/*.ts", "**/*.tsx"],
languageOptions: {
parserOptions: {
ecmaVersion: 2022,
sourceType: "module",
},
},
rules: {
"@typescript-eslint/no-unused-vars": "warn",
"prettier/prettier": "warn",
"max-len": ["error", { code: 80 }],
},
plugins: {
"@typescript-eslint": tseslint.plugin,
prettier: prettierPlugin,
},
extends: [
js.configs.recommended,
...tseslint.configs.recommended,
prettierConfig,
],
});