Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemathinc
GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/packages/static/eslint.config.js
5700 views
1
import tsParser from "@typescript-eslint/parser";
2
import reactHooks from "eslint-plugin-react-hooks";
3
4
export default [
5
{
6
ignores: [
7
"**/node_modules/**",
8
"**/dist/**",
9
"**/dist-ts/**",
10
"**/dist-measure/**",
11
"**/dist-prod/**",
12
"**/dist-prod-measure/**",
13
],
14
},
15
{
16
files: ["**/*.{js,jsx,ts,tsx}"],
17
languageOptions: {
18
ecmaVersion: "latest",
19
sourceType: "module",
20
parserOptions: {
21
ecmaFeatures: {
22
jsx: true,
23
},
24
},
25
},
26
plugins: {
27
"react-hooks": reactHooks,
28
},
29
rules: {
30
"react-hooks/rules-of-hooks": "error",
31
"react-hooks/exhaustive-deps": "error",
32
},
33
},
34
{
35
files: ["**/*.{ts,tsx}"],
36
languageOptions: {
37
parser: tsParser,
38
},
39
},
40
];
41
42