@@ -17,7 +17,7 @@ Use it only if you are okay with the limitations.
17
17
## Install
18
18
19
19
``` package-install copy
20
- npm install --save-dev eslint typescript-eslint @eslint/js globals ts-blank-eslint-parser @eslint-react/eslint-plugin@next
20
+ npm install --save-dev eslint @eslint/js globals ts-blank-eslint-parser @eslint-react/eslint-plugin@next
21
21
```
22
22
23
23
## Setup
@@ -26,28 +26,11 @@ npm install --save-dev eslint typescript-eslint @eslint/js globals ts-blank-esli
26
26
// @ts-check
27
27
import eslintJs from " @eslint/js" ;
28
28
import eslintReact from " @eslint-react/eslint-plugin" ;
29
- import { isInEditorEnv } from " @eslint-react/shared" ;
30
29
import tsBlankEslintParser from " ts-blank-eslint-parser" ;
31
- import tseslint from " typescript-eslint" ;
32
30
import globals from " globals" ;
33
31
34
32
const GLOB_TS = [" **/*.ts" , " **/*.tsx" ];
35
33
36
- function getOptimalParserConfig (project = " tsconfig.json" ) {
37
- switch (true ) {
38
- case isInEditorEnv ():
39
- case process .argv .includes (" --fix" ):
40
- return {
41
- parser: tseslint .parser ,
42
- parserOptions: {
43
- project,
44
- tsconfigRootDir: import .meta.dirname,
45
- },
46
- };
47
- }
48
- return { parser: tsBlankEslintParser };
49
- }
50
-
51
34
export default [
52
35
// base configuration for browser environment source files
53
36
{
@@ -56,7 +39,7 @@ export default [
56
39
globals: {
57
40
... globals .browser ,
58
41
},
59
- ... getOptimalParserConfig () ,
42
+ parser : tsBlankEslintParser ,
60
43
},
61
44
rules: {
62
45
... eslintJs .configs .recommended .rules ,
0 commit comments