-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.mjs
45 lines (44 loc) · 1023 Bytes
/
eslint.config.mjs
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
38
39
40
41
42
43
44
45
// @ts-check
import shopifyEslintPlugin from '@shopify/eslint-plugin';
export default [
{
// global ignores need to be in their own block otherwise they don't seem to work
ignores: [
'.docker/**',
'.github/**',
'.vscode/**',
'coverage/**',
'dist/**',
'node_modules/**',
'**/*.config.{mjs,ts}'
],
},
...shopifyEslintPlugin.configs.typescript,
...shopifyEslintPlugin.configs.prettier,
{
rules: {
'line-comment-position': 'off',
'no-warning-comments': 'warn',
'@typescript-eslint/member-ordering': 'off',
'@typescript-eslint/naming-convention': [
'error',
{
selector: 'default',
format: ['camelCase', 'PascalCase', 'UPPER_CASE', 'snake_case'],
}
],
}
},
{
files: ['**/entities/**/*.ts'],
rules: {
'import/no-cycle': 'off',
}
},
{
files: ['src/config/**/*.ts', 'test/helpers/jest-setup.ts'],
rules: {
'no-process-env': 'off',
}
},
];