-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
37 lines (37 loc) · 987 Bytes
/
eslint.config.js
File metadata and controls
37 lines (37 loc) · 987 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
36
37
/** @type {import('eslint').Linter.Config} */
module.exports = [
{
plugins: {
'project-limits': require('./eslint-plugin-project-limits.js'),
import: require('eslint-plugin-import'),
},
files: ['**/*.{ts,tsx,js,jsx}'],
ignores: ['node_modules/**', 'dist/**', '.expo/**'],
languageOptions: {
parser: require('@typescript-eslint/parser'),
parserOptions: {
ecmaVersion: 2022,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
},
},
rules: {
'project-limits/max-lines': ['error', { max: 300 }],
'project-limits/max-dir-files': ['error', { max: 20 }],
'import/order': ['warn', {
groups: [
'builtin',
'external',
'internal',
['parent', 'sibling'],
'index',
'object',
],
'newlines-between': 'always',
alphabetize: { order: 'asc', caseInsensitive: true },
}],
},
},
];