-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.mjs
46 lines (45 loc) · 1.02 KB
/
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
46
// @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: [
'.github/**',
'.vscode/**',
'coverage/**',
'dist/**',
'node_modules/**',
'src/public/**',
'**/*.config.{mjs,ts}'
],
},
...shopifyEslintPlugin.configs.typescript,
...shopifyEslintPlugin.configs.prettier,
{
rules: {
'line-comment-position': 'off',
'no-warning-comments': 'warn',
'no-process-env': 'warn',
'@typescript-eslint/member-ordering': 'off',
'@typescript-eslint/naming-convention': [
'error',
{
selector: 'default',
format: ['camelCase', 'PascalCase', 'UPPER_CASE', 'snake_case'],
}
],
}
},
{
files: ['src/config/**/*.ts', 'test/.jest/set-env-vars.ts'],
rules: {
'no-process-env': 'off',
}
},
{
files: ['test/**/*.ts'],
rules: {
'no-console': 'off',
}
},
];