Skip to content
This repository was archived by the owner on Jun 29, 2022. It is now read-only.

Commit 2a4b854

Browse files
committed
feat: add support of .jsx to be used with allowJs
1 parent d81f8ee commit 2a4b854

File tree

4 files changed

+1350
-323
lines changed

4 files changed

+1350
-323
lines changed

package.json

Lines changed: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-import-resolver-ts",
3-
"version": "0.4.0",
3+
"version": "0.4.1",
44
"description": "TypeScript .ts .tsx module resolver for `eslint-plugin-import`.",
55
"repository": "git@github.com/rx-ts/eslint-import-resolver-ts.git",
66
"author": "Alex Gorbatchev <alex.gorbatchev@gmail.com>",
@@ -10,63 +10,64 @@
1010
},
1111
"main": "lib/cjs",
1212
"module": "lib",
13-
"fesm5": "lib/esm",
1413
"es2015": "lib/es2015",
14+
"fesm5": "lib/esm",
1515
"types": "lib",
1616
"files": [
1717
"lib"
1818
],
19-
"scripts": {
20-
"build:ts": "tsc -b src",
21-
"build:bundle": "r --externals tiny-glob/sync",
22-
"build": "run-p build:*",
23-
"lint": "eslint --ext md,js,ts -f friendly --ignore-pattern tests .",
24-
"test": "eslint -f friendly tests/**/*.{ts,tsx}",
25-
"type-coverage": "type-coverage --cache --ignore-catch --detail --strict"
26-
},
2719
"keywords": [
2820
"typescript",
2921
"eslint",
3022
"import",
3123
"resolver",
3224
"plugin"
3325
],
26+
"scripts": {
27+
"build": "run-p build:*",
28+
"build:r": "r",
29+
"build:ts": "tsc -b src",
30+
"lint": "eslint --ext md,js,ts -f friendly --ignore-pattern tests .",
31+
"test": "eslint -f friendly tests/**/*.{ts,tsx}",
32+
"type-coverage": "type-coverage --cache --detail --ignore-catch --strict"
33+
},
3434
"peerDependencies": {
3535
"eslint": "*",
3636
"eslint-plugin-import": "*"
3737
},
3838
"dependencies": {
3939
"debug": "^4.1.1",
40+
"eslint-import-resolver-ts": "link:.",
4041
"is-glob": "^4.0.1",
4142
"resolve": "^1.12.0",
4243
"tiny-glob": "^0.2.6",
4344
"tsconfig-paths": "^3.9.0"
4445
},
4546
"devDependencies": {
46-
"@1stg/babel-preset": "^0.7.0",
47+
"@1stg/babel-preset": "^0.7.2",
4748
"@1stg/commitlint-config": "^0.1.0",
48-
"@1stg/eslint-config": "^0.12.10",
49+
"@1stg/eslint-config": "^0.12.18",
4950
"@1stg/husky-config": "^0.3.0",
50-
"@1stg/lint-staged": "^0.7.4",
51-
"@1stg/prettier-config": "^0.2.0",
52-
"@1stg/remark-config": "^0.2.1",
53-
"@1stg/rollup-config": "^0.9.5",
54-
"@1stg/tsconfig": "^0.5.1",
55-
"@babel/core": "^7.6.0",
51+
"@1stg/lint-staged": "^0.8.3",
52+
"@1stg/prettier-config": "^0.3.4",
53+
"@1stg/remark-config": "^0.2.2",
54+
"@1stg/rollup-config": "^0.12.0",
55+
"@1stg/tsconfig": "^0.6.0",
56+
"@babel/core": "^7.6.2",
5657
"@commitlint/cli": "^8.2.0",
5758
"@types/debug": "^4.1.5",
5859
"@types/is-glob": "^4.0.1",
59-
"@types/node": "^12.7.5",
60+
"@types/node": "^12.7.9",
6061
"@types/resolve": "^0.0.8",
6162
"@types/unist": "^2.0.3",
6263
"dummy.js": "link:dummy.js",
63-
"eslint": "^6.4.0",
64-
"husky": "^3.0.5",
65-
"lint-staged": "^9.3.0",
64+
"eslint": "^6.5.1",
65+
"husky": "^3.0.8",
66+
"lint-staged": "^9.4.1",
6667
"npm-run-all": "^4.1.5",
6768
"prettier": "^1.18.2",
68-
"react": "^16.9.0",
69-
"rollup": "^1.21.4",
69+
"react": "^16.10.1",
70+
"rollup": "^1.22.0",
7071
"type-coverage": "^2.3.0",
7172
"typescript": "^3.6.3"
7273
},

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ const log = debug('eslint-import-resolver-ts')
1717
const extensions = ['.ts', '.tsx', '.d.ts'].concat(
1818
// eslint-disable-next-line node/no-deprecated-api
1919
Object.keys(require.extensions),
20+
'.jsx',
2021
)
2122

2223
export const interfaceVersion = 2

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"extends": "@1stg/tsconfig/tsconfig.json"
2+
"extends": "@1stg/tsconfig/tsconfig"
33
}

0 commit comments

Comments
 (0)