-
-
Notifications
You must be signed in to change notification settings - Fork 177
Expand file tree
/
Copy patheslint.config.mjs
More file actions
32 lines (28 loc) · 739 Bytes
/
Copy patheslint.config.mjs
File metadata and controls
32 lines (28 loc) · 739 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
import globals from "globals";
import js from "@eslint/js";
import tsEslint from "typescript-eslint";
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";
export default tsEslint.config(
{
ignores: [
"node_modules",
"!.*",
"**/dist",
"**/build",
"apps/nextjs/.next",
],
},
{
extends: [js.configs.recommended, ...tsEslint.configs.recommended],
files: ["**/*.{js,mjs,cjs,ts,jsx,tsx}"],
languageOptions: { globals: globals.node },
},
{
files: [
"apps/{nextjs,vite,storybook}/**/*.{jsx,tsx}",
"packages/{components}/**/*.{jsx,tsx}",
],
languageOptions: { globals: globals.browser },
},
eslintPluginPrettierRecommended,
);