forked from Shopify/shopify-api-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
34 lines (34 loc) · 850 Bytes
/
.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
module.exports = {
env: {
browser: false,
es2021: true,
},
extends: ['plugin:@shopify/typescript', 'plugin:@shopify/prettier'],
ignorePatterns: ['dist/', 'src/rest-resources'],
rules: {
'import/no-named-as-default': 0,
'no-mixed-operators': 0,
'no-console': 0,
'lines-around-comment': 0,
'import/no-cycle': 0,
},
overrides: [
{
files: [
'src/__tests__/*.ts',
'src/base-rest-resource.ts',
'src/rest-resources/*',
],
rules: {
'@typescript-eslint/naming-convention': [
'error',
{
selector: 'default',
// Allow snake_case so we can have properties that follow the API's naming conventions
format: ['camelCase', 'PascalCase', 'snake_case', 'UPPER_CASE'],
},
],
},
},
],
};