Skip to content

Commit 5d322e9

Browse files
committed
Fix ts linting settings for react projects
1 parent 3f66a2e commit 5d322e9

File tree

5 files changed

+16
-16
lines changed

5 files changed

+16
-16
lines changed

eslint-config-base/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@inrupt/eslint-config-base",
3-
"version": "0.0.3",
3+
"version": "0.0.4",
44
"description": "Shared eslint config for Javascript at @inrupt",
55
"main": "index.js",
66
"scripts": {

eslint-config-lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2121

2222
module.exports = {
2323
extends: [
24-
"inrupt-core",
24+
"@inrupt/eslint-config-base",
2525
],
2626
}

eslint-config-lib/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@inrupt/eslint-config-lib",
3-
"version": "0.0.3",
3+
"version": "0.0.4",
44
"description": "Shared eslint config for Javascript at @inrupt",
55
"main": "index.js",
66
"scripts": {
@@ -22,6 +22,6 @@
2222
"homepage": "https://github.com/inrupt/javascript-style-configs#readme",
2323
"peerDependencies": {
2424
"eslint": "^7.1.0",
25-
"@inrupt/eslint-config-base": "^0.0.3"
25+
"@inrupt/eslint-config-base": "^0.0.4"
2626
}
2727
}

eslint-config-react/index.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ module.exports = {
2323
extends: [
2424
"airbnb",
2525
"airbnb/hooks",
26-
"inrupt-base",
26+
"@inrupt/eslint-config-base",
2727
],
2828

2929
plugins: [
@@ -36,6 +36,14 @@ module.exports = {
3636
},
3737
},
3838

39+
settings: {
40+
"import/resolver": {
41+
node: {
42+
extensions: [".js", ".ts", ".tsx"],
43+
},
44+
},
45+
},
46+
3947
rules: {
4048
// Use .tsx for jsx files
4149
"react/jsx-filename-extension": [1, { "extensions": [".tsx"] }],
@@ -59,13 +67,5 @@ module.exports = {
5967
ts: "never",
6068
tsx: "never",
6169
}],
62-
63-
settings: {
64-
"import/resolver": {
65-
node: {
66-
extensions: [".js", ".ts", ".tsx"],
67-
},
68-
},
69-
},
70-
}
70+
},
7171
};

eslint-config-react/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@inrupt/eslint-config-react",
3-
"version": "0.0.3",
3+
"version": "0.0.4",
44
"description": "Shared eslint config for Javascript at @inrupt",
55
"main": "index.js",
66
"scripts": {
@@ -21,7 +21,7 @@
2121
},
2222
"homepage": "https://github.com/inrupt/javascript-style-configs#readme",
2323
"peerDependencies": {
24-
"@inrupt/eslint-config-base": "^0.0.3",
24+
"@inrupt/eslint-config-base": "^0.0.4",
2525
"eslint": "^7.1.0",
2626
"eslint-config-airbnb": "^18.1.0",
2727
"eslint-plugin-jsx-a11y": "^6.2.3",

0 commit comments

Comments
 (0)