Skip to content

Commit b0150ba

Browse files
committed
🚚 move eslint config package exports
this helps to ensure we're not accidentally using the wrong eslint config in testing
1 parent ad373cc commit b0150ba

File tree

12 files changed

+14
-8
lines changed

12 files changed

+14
-8
lines changed

β€Žeslint-config-browser/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
],
1616
"author": "Louis Orleans <[email protected]>",
1717
"license": "MIT",
18-
"main": ".eslintrc.yaml",
18+
"main": "base.yaml",
1919
"scripts": {
2020
"test": "echo 'No tests'; exit 0"
2121
},

β€Žeslint-config-jest/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
],
1717
"author": "Louis Orleans <[email protected]>",
1818
"license": "MIT",
19-
"main": ".eslintrc.yaml",
19+
"main": "base.yaml",
2020
"scripts": {
2121
"test": "echo 'No tests'; exit 0"
2222
},

β€Žeslint-config-react/.eslintrc.yaml renamed to β€Žeslint-config-node/base.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ extends:
22
- 'plugin:@shopify/node'
33

44
rules:
5-
no-console: 'error'
65
radix: 'off'
76
node/exports-style: 'warn'
7+
no-console: 'error' # this is a dupe from the base config, but shopify overrides it

β€Žeslint-config-node/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
],
1616
"author": "Louis Orleans <[email protected]>",
1717
"license": "MIT",
18-
"main": ".eslintrc.yaml",
18+
"main": "base.yaml",
1919
"scripts": {
2020
"test": "node --require ts-node/register --test test/index.ts"
2121
},

β€Žeslint-config-react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
],
1616
"author": "Louis Orleans <[email protected]>",
1717
"license": "MIT",
18-
"main": ".eslintrc.yaml",
18+
"main": "base.yaml",
1919
"scripts": {
2020
"test": "echo 'No tests'; exit 0"
2121
},

β€Žeslint-config-typescript/.eslintrc.yaml renamed to β€Žeslint-config-typescript/base.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
extends:
2-
- 'plugin:@typescript-eslint/recommended'
2+
- 'plugin:@typescript-eslint/strict'
3+
# - 'plugin:@shopify/typescript'
34
- 'plugin:import/typescript'
45

6+
parserOptions:
7+
project: true
8+
59
rules:
610
'@typescript-eslint/no-inferrable-types': 'off'
711
'@typescript-eslint/no-unused-vars':

β€Žeslint-config-typescript/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
],
1616
"author": "Louis Orleans <[email protected]>",
1717
"license": "MIT",
18-
"main": ".eslintrc.yaml",
18+
"main": "base.yaml",
1919
"scripts": {
2020
"test": "node --require ts-node/register --test test/index.ts"
2121
},

0 commit comments

Comments
Β (0)