File tree Expand file tree Collapse file tree 4 files changed +27
-1473
lines changed Expand file tree Collapse file tree 4 files changed +27
-1473
lines changed Original file line number Diff line number Diff line change 4
4
"node": true
5
5
},
6
6
"parserOptions": {
7
- "ecmaVersion": "latest"
7
+ "ecmaVersion": "latest",
8
+ "sourceType": "module"
8
9
},
10
+ "parser": "@typescript-eslint/parser",
11
+ "plugins": ["@typescript-eslint"],
9
12
"extends": [
10
- "plugin:prettier/recommended",
11
- "plugin:jsonc/recommended-with-json",
12
- "plugin:mdx/recommended",
13
- "plugin:yml/recommended"
13
+ "eslint:recommended",
14
+ "plugin:@typescript-eslint/recommended",
15
+ "plugin:prettier/recommended"
14
16
]
15
17
}
Original file line number Diff line number Diff line change 40
40
"build:r" : " r -f cjs,es2020" ,
41
41
"build:ts" : " tsc -b" ,
42
42
"lint" : " run-p 'lint:*'" ,
43
- "lint:es" : " eslint src --cache -f friendly " ,
43
+ "lint:es" : " eslint src/** " ,
44
44
"lint:tsc" : " tsc --noEmit" ,
45
45
"test" : " run-p 'test:*'" ,
46
46
"test:multipleEslintrcs" : " eslint --ext ts,tsx tests/multipleEslintrcs" ,
87
87
"eslint-config-prettier" : " ^9" ,
88
88
"eslint-import-resolver-typescript" : " link:." ,
89
89
"eslint-plugin-import" : " npm:eslint-plugin-i@^2.29.1" ,
90
- "eslint-plugin-jsonc" : " ^2.16.0" ,
91
- "eslint-plugin-mdx" : " ^3.1.5" ,
92
90
"eslint-plugin-prettier" : " ^4" ,
93
- "eslint-plugin-yml" : " ^1.14.0" ,
94
91
"json5" : " ^2.2.3" ,
95
92
"npm-run-all2" : " ^5.0.2" ,
96
93
"prettier" : " ^2.8.8" ,
Original file line number Diff line number Diff line change @@ -131,7 +131,6 @@ function isBuiltin(moduleName: string) {
131
131
* @param file the importing file's full path; i.e. '/usr/local/bin/file.js'
132
132
* @param options
133
133
*/
134
- // eslint-disable-next-line sonarjs/cognitive-complexity
135
134
export function resolve (
136
135
source : string ,
137
136
file : string ,
@@ -267,7 +266,6 @@ const isModule = (modulePath?: string | undefined): modulePath is string => {
267
266
* @param {boolean } retry should retry on failed to resolve
268
267
* @returns The mapped path of the module or undefined
269
268
*/
270
- // eslint-disable-next-line sonarjs/cognitive-complexity
271
269
function getMappedPath (
272
270
source : string ,
273
271
file : string ,
You can’t perform that action at this time.
0 commit comments