-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
35 lines (34 loc) · 1020 Bytes
/
eslint.config.js
File metadata and controls
35 lines (34 loc) · 1020 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
28
29
30
31
32
33
34
35
/* eslint-env node */
const { defineConfig } = require('eslint/config');
const expoConfig = require('eslint-config-expo/flat');
module.exports = defineConfig([
expoConfig,
{
ignores: ['dist/*'],
},
{
rules: {
'react/display-name': 'off',
},
// Prevent accidental imports from server-side code or large model/dataset
// folders into the mobile app. This runs during lint/time and will fail
// the build if any mobile code imports forbidden paths. Keep the rule
// simple and compatible with the current ESLint schema by only using
// the `patterns` option (the schema does not allow a top-level
// `message` when `patterns` is present).
'no-restricted-imports': [
'error',
{
patterns: [
// top-level server folder
'server/**',
// model artifacts / tokenizer
'phishing_detector_package/**',
// large dataset folders
'data/**',
'dataset/**',
],
},
],
},
]);