generated from netlify/explorers-up-and-running-with-serverless-functions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.mjs
38 lines (36 loc) · 849 Bytes
/
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
import pluginReactConfig from "eslint-plugin-react/configs/recommended.js";
import react from "eslint-plugin-react";
import eslint from "@eslint/js";
import tseslint from "typescript-eslint";
import stylisticTs from "@stylistic/eslint-plugin-ts";
/**
* Rules to consider:
*
* "@typescript-eslint/no-unsafe-assignment": "off",
* "@typescript-eslint/dot-notation": "off",
*/
export default tseslint.config(
pluginReactConfig,
eslint.configs.recommended,
...tseslint.configs.recommended,
{
plugins: {
"@stylistic/ts": stylisticTs,
react,
},
rules: {
"@stylistic/ts/quotes": ["error", "double"],
"@stylistic/ts/indent": ["error", 2],
"react/no-unescaped-entities": "off",
}
},
{
ignores: [
".netlify/*",
"dist/*",
"*.js",
"*.cjs",
"*.mjs",
],
}
)