-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy patheslint.config.mjs
40 lines (39 loc) · 1.1 KB
/
eslint.config.mjs
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
35
36
37
38
39
40
import tsParser from "@typescript-eslint/parser";
import tsPlugin from "@typescript-eslint/eslint-plugin";
import reactPlugin from "eslint-plugin-react";
import prettier from "eslint-plugin-prettier";
import jsxA11y from "eslint-plugin-jsx-a11y";
import importPlugin from "eslint-plugin-import";
export default [
{
files: ["**/*.{js,mjs,cjs,ts,tsx}"],
languageOptions: {
parser: tsParser,
ecmaVersion: "latest",
sourceType: "module",
},
plugins: {
"@typescript-eslint": tsPlugin,
react: reactPlugin,
prettier,
"jsx-a11y": jsxA11y,
import: importPlugin,
},
rules: {
"prettier/prettier": ["error", { endOfLine: "auto" }],
"no-unused-vars": "warn",
semi: ["error", "always"],
quotes: ["error", "double"],
"import/order": ["off", { "newlines-between": "always" }],
"react/react-in-jsx-scope": "off",
"linebreak-style": "off", // Turn off linebreak-style rule
},
ignores: [
"**/node_modules/**",
"**/dist/**",
"**/packages/client/**",
"**/.*",
"**/client/**",
],
},
];