|
1 | 1 | {
|
2 |
| - "extends": [ |
3 |
| - "eslint:recommended", |
4 |
| - "standard", |
5 |
| - "prettier" |
6 |
| - ], |
7 |
| - "plugins": [ |
8 |
| - "prettier" |
9 |
| - ], |
10 |
| - "rules": { |
11 |
| - "prettier/prettier": "error" |
12 |
| - }, |
| 2 | + "extends": ["eslint:recommended", "next"], |
13 | 3 | "overrides": [
|
14 | 4 | {
|
15 |
| - "files": [ |
16 |
| - "**/*.md" |
17 |
| - ], |
18 |
| - "plugins": [ |
19 |
| - "markdown" |
20 |
| - ], |
21 |
| - "processor": "markdown/markdown" |
| 5 | + "files": ["**/*.{mjs,js,jsx,ts,tsx}"], |
| 6 | + "extends": ["plugin:prettier/recommended"], |
| 7 | + "env": { "node": true, "es6": true } |
| 8 | + }, |
| 9 | + { |
| 10 | + "files": ["**/*.{ts,tsx}"], |
| 11 | + "globals": { "globalThis": false } |
| 12 | + }, |
| 13 | + { |
| 14 | + "files": ["**/*.tsx"], |
| 15 | + "rules": { |
| 16 | + "react/no-unused-prop-types": "off", |
| 17 | + "react/require-default-props": "off", |
| 18 | + "react/jsx-props-no-spreading": "off", |
| 19 | + "react-hooks/rules-of-hooks": "error", |
| 20 | + "react-hooks/exhaustive-deps": "warn", |
| 21 | + "consistent-return": "off", |
| 22 | + "react/function-component-definition": [ |
| 23 | + "error", |
| 24 | + { |
| 25 | + "namedComponents": "arrow-function", |
| 26 | + "unnamedComponents": "arrow-function" |
| 27 | + } |
| 28 | + ], |
| 29 | + "react/jsx-filename-extension": [ |
| 30 | + 2, |
| 31 | + { "extensions": [".js", ".jsx", ".ts", ".tsx"] } |
| 32 | + ] |
| 33 | + } |
| 34 | + }, |
| 35 | + { |
| 36 | + "files": ["**/*.{md,mdx}"], |
| 37 | + "extends": ["plugin:mdx/recommended"], |
| 38 | + "settings": { "mdx/code-blocks": false }, |
| 39 | + "rules": { "react/jsx-no-undef": "off", "no-useless-escape": "off" } |
22 | 40 | },
|
23 | 41 | {
|
24 | 42 | "files": [
|
25 |
| - "**/*.md/*.js" |
| 43 | + "pages/*/about/*.{md,mdx}", |
| 44 | + "pages/*/download/*.{md,mdx}", |
| 45 | + "pages/*/get-involved/*.{md,mdx}", |
| 46 | + "pages/*/docs/*.{md,mdx}", |
| 47 | + "pages/*/*.{md,mdx}" |
26 | 48 | ],
|
27 |
| - "parserOptions": { |
28 |
| - "ecmaVersion": "latest" |
29 |
| - }, |
| 49 | + "settings": { "mdx/code-blocks": true } |
| 50 | + }, |
| 51 | + { |
| 52 | + "files": ["pages/**/*.{md,mdx}/*.{js,jsx,cjs,mjs,ts,tsx}"], |
30 | 53 | "rules": {
|
31 |
| - "eqeqeq": "off", |
32 |
| - "n/no-deprecated-api": "off", |
33 |
| - "n/handle-callback-err": "off", |
34 |
| - "no-const-assign": "off", |
| 54 | + "camelcase": "off", |
| 55 | + "@typescript-eslint/no-unused-vars": "off", |
| 56 | + "consistent-return": "off", |
| 57 | + "func-names": "off", |
| 58 | + "import/extensions": "off", |
| 59 | + "import/no-extraneous-dependencies": "off", |
| 60 | + "import/no-unresolved": "off", |
| 61 | + "no-console": "off", |
| 62 | + "no-empty": "off", |
| 63 | + "no-restricted-globals": "off", |
| 64 | + "no-restricted-syntax": "off", |
35 | 65 | "no-undef": "off",
|
| 66 | + "no-underscore-dangle": "off", |
36 | 67 | "no-unused-expressions": "off",
|
37 | 68 | "no-unused-vars": "off",
|
38 |
| - "node/handle-callback-err": "off", |
39 |
| - "node/no-deprecated-api": "off", |
40 |
| - "prefer-const": "off", |
41 |
| - "prettier/prettier": [ |
42 |
| - "error", |
43 |
| - { |
44 |
| - "singleQuote": true, |
45 |
| - "trailingComma": "none" |
46 |
| - } |
47 |
| - ], |
48 |
| - "semi": ["error", "always"] |
| 69 | + "prefer-promise-reject-errors": "off" |
49 | 70 | }
|
50 | 71 | }
|
51 | 72 | ]
|
|
0 commit comments