-
Notifications
You must be signed in to change notification settings - Fork 2
/
eslint.config.mjs
56 lines (50 loc) · 1.01 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
47
48
49
50
51
52
53
54
55
56
import globals from 'globals';
import shopifyPlugin from '@shopify/eslint-plugin';
const config = [
{
ignores: [
'.dev/*',
'.github/*',
'.shadowenv.d/*',
'coverage/*',
'**/*.min.*',
'**/dist/*',
'**/node_modules/*',
'i18nextShopify.js',
'i18nextShopify.min.js',
'index.js',
'index.d.ts',
],
},
...shopifyPlugin.configs.core,
...shopifyPlugin.configs.esnext,
...shopifyPlugin.configs.jest,
...shopifyPlugin.configs.prettier,
...shopifyPlugin.configs.react,
{
languageOptions: {
globals: {
...globals.browser,
...globals.jest,
...globals.node,
},
ecmaVersion: 'latest',
sourceType: 'module',
parserOptions: {
ecmaFeatures: {
jsx: true,
impliedStrict: true,
},
},
},
settings: {
react: {
version: 'detect',
},
},
rules: {
'@babel/object-curly-spacing': 'off',
},
},
];
export default config;