-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
40 lines (40 loc) · 1.1 KB
/
.eslintrc.cjs
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
module.exports = {
root: true,
extends: [
"plugin:astro/all",
"nirtamir2",
"nirtamir2/recommended",
"nirtamir2/typescript",
// "nirtamir2/react",
// "nirtamir2/query",
// "nirtamir2/solid",
// "nirtamir2/i18n", // It's also recommanded to use https://github.com/natura-cosmeticos/eslint-plugin-i18n-checker and https://github.com/nirtamir2/eslint-plugin-i18n-prefix
],
overrides: [
{
// Define the configuration for `.astro` file.
files: ["*.astro"],
// Allows Astro components to be parsed.
parser: "astro-eslint-parser",
// Parse the script in `.astro` as TypeScript by adding the following configuration.
// It's the setting you need when using TypeScript.
parserOptions: {
parser: "@typescript-eslint/parser",
extraFileExtensions: [".astro"],
},
rules: {},
},
{
files: ["solid/*.tsx"],
extends: ["nirtamir2/solid"],
},
{
files: ["react/*.tsx"],
extends: ["nirtamir2/react"],
},
],
rules: {
"import/no-unused-modules": 0,
"tsdoc/syntax": 0,
},
};