umami/.eslintrc.json

58 lines
1.4 KiB
JSON
Raw Normal View History

2020-07-17 16:03:38 +08:00
{
"env": {
"browser": true,
2020-08-01 18:34:56 +08:00
"es2020": true,
"node": true
2020-07-17 16:03:38 +08:00
},
2023-02-05 00:59:52 +08:00
"parser": "@typescript-eslint/parser",
2020-07-17 16:03:38 +08:00
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 11,
"sourceType": "module"
},
2023-02-05 00:59:52 +08:00
"extends": [
"eslint:recommended",
"plugin:prettier/recommended",
"plugin:import/recommended",
"plugin:@typescript-eslint/recommended",
"next"
],
2023-02-08 08:29:25 +08:00
"plugins": ["@typescript-eslint", "prettier"],
2022-08-29 11:20:54 +08:00
"settings": {
"import/resolver": {
"alias": {
"map": [
["assets", "./assets"],
["components", "./components"],
["db", "./db"],
["hooks", "./hooks"],
["lang", "./lang"],
["lib", "./lib"],
["public", "./public"],
["queries", "./queries"],
["store", "./store"],
["styles", "./styles"]
],
2023-03-26 19:15:08 +08:00
"extensions": [".ts", ".tsx", ".js", ".jsx", ".json"]
2022-08-29 11:20:54 +08:00
}
}
},
2020-07-17 16:03:38 +08:00
"rules": {
2022-08-29 11:20:54 +08:00
"no-console": "error",
"react/display-name": "off",
2020-07-30 15:06:29 +08:00
"react/react-in-jsx-scope": "off",
2022-03-11 11:01:33 +08:00
"react/prop-types": "off",
2022-07-16 14:53:31 +08:00
"import/no-anonymous-default-export": "off",
2023-02-08 08:29:25 +08:00
"@next/next/no-img-element": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-var-requires": "off"
2020-07-17 16:03:38 +08:00
},
"globals": {
"React": "writable"
}
}