-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.cjs
More file actions
33 lines (33 loc) · 1.07 KB
/
.eslintrc.cjs
File metadata and controls
33 lines (33 loc) · 1.07 KB
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
/** @type {import('@types/eslint').Linter.BaseConfig} */
module.exports = {
extends: ['@remix-run/eslint-config', '@remix-run/eslint-config/node', 'prettier'],
rules: {
'no-empty-pattern': 'off',
'@typescript-eslint/consistent-type-imports': [
'warn',
{ prefer: 'type-imports', disallowTypeAnnotations: true, fixStyle: 'inline-type-imports' }
],
'@typescript-eslint/no-unused-vars': [
'error',
{
vars: 'all',
args: 'after-used',
ignoreRestSiblings: true,
caughtErrors: 'none',
destructuredArrayIgnorePattern: '^_*',
argsIgnorePattern: '^_*'
}
],
'import/no-duplicates': ['warn', { 'prefer-inline': true }],
'import/consistent-type-specifier-style': ['warn', 'prefer-inline'],
'import/order': [
'warn',
{
'alphabetize': { order: 'asc', caseInsensitive: true },
'groups': [['builtin', 'external'], 'internal', 'parent', 'sibling'],
'newlines-between': 'always',
'pathGroups': [{ pattern: '~/**', group: 'parent' }]
}
]
}
}