forked from sanity-io/hydrogen-sanity-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
41 lines (36 loc) · 1.03 KB
/
.eslintrc.js
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
module.exports = {
extends: [
'plugin:@shopify/typescript',
'plugin:@shopify/react',
'plugin:@shopify/node',
'plugin:@shopify/prettier',
],
rules: {
'@shopify/jsx-no-hardcoded-content': 'off',
'@shopify/jsx-no-complex-expressions': 'off',
/**
* React overrides
*/
'react/react-in-jsx-scope': 'off',
'react/jsx-filename-extension': ['error', {extensions: ['.tsx', '.jsx']}],
'react/prop-types': 'off',
/**
* Import overrides
*/
'import/no-unresolved': ['error', {ignore: ['@shopify/hydrogen']}],
/**
* ESlint overrides
*/
'no-use-before-define': 'off',
'no-warning-comments': 'off',
/**
* jsx-a11y overrides
*/
'jsx-a11y/click-events-have-key-events': 'off',
'jsx-a11y/no-noninteractive-element-interactions': 'off',
// These two rules result in a significant number of false positives so we
// need to keep them disabled.
'jsx-a11y/label-has-for': 'off',
'jsx-a11y/control-has-associated-label': 'off',
},
};