-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
27 lines (26 loc) · 920 Bytes
/
Copy patheslint.config.js
File metadata and controls
27 lines (26 loc) · 920 Bytes
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
// https://docs.expo.dev/guides/using-eslint/
const { defineConfig } = require("eslint/config");
const expoConfig = require("eslint-config-expo/flat");
const eslintPluginPrettierRecommended = require("eslint-plugin-prettier/recommended");
const tseslint = require("@typescript-eslint/eslint-plugin");
const simpleImportSort = require("eslint-plugin-simple-import-sort");
module.exports = defineConfig([
expoConfig,
eslintPluginPrettierRecommended,
{
plugins: {
"simple-import-sort": simpleImportSort,
"@typescript-eslint": tseslint,
},
ignores: ["dist/*"],
rules: {
"prettier/prettier": "error",
"react-hooks/exhaustive-deps": "error",
"@typescript-eslint/no-unused-vars": "error",
"no-console": "error",
"arrow-body-style": ["error", "as-needed"],
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
},
},
]);