File tree Expand file tree Collapse file tree 4 files changed +451
-176
lines changed Expand file tree Collapse file tree 4 files changed +451
-176
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "plugins" : [" @typescript-eslint" ],
3
+ "parser" : " @typescript-eslint/parser" ,
4
+ "extends" : [
5
+ " plugin:react/recommended" ,
6
+ " plugin:@typescript-eslint/recommended" ,
7
+ " prettier" ,
8
+ " prettier/@typescript-eslint"
9
+ ],
10
+ "globals" : {
11
+ "Atomics" : " readonly" ,
12
+ "SharedArrayBuffer" : " readonly"
13
+ },
14
+ "rules" : {
15
+ "@typescript-eslint/explicit-member-accessibility" : [" error" , { "accessibility" : " no-public" }],
16
+ "@typescript-eslint/explicit-function-return-type" : " off" ,
17
+ "@typescript-eslint/no-parameter-properties" : " off" ,
18
+ "@typescript-eslint/no-use-before-define" : [" error" , { "functions" : false }],
19
+ "@typescript-eslint/no-explicit-any" : " off" ,
20
+ "@typescript-eslint/no-var-requires" : " off"
21
+ },
22
+ "env" : {
23
+ "browser" : true ,
24
+ "es6" : true
25
+ },
26
+ "parserOptions" : {
27
+ "project" : " ./tsconfig.json" ,
28
+ "extraFileExtensions" : [" .html" ],
29
+ "ecmaFeatures" : {
30
+ "jsx" : true
31
+ },
32
+ "ecmaVersion" : 2018 ,
33
+ "sourceType" : " module"
34
+ }
35
+ }
Original file line number Diff line number Diff line change 23
23
"build:esm" : " shx rm -rf ./esm && tsc -p ./tsconfig.build.json -m esnext --outDir esm" ,
24
24
"build:next" : " shx rm -rf ./esnext && tsc -p ./tsconfig.build.json --target esnext --outDir esnext" ,
25
25
"prettier" : " prettier '@(src|demo)/**/*.@(ts|tsx|html|less)' --write" ,
26
- "lint" : " tslint -p tsconfig.json --fix" ,
26
+ "lint" : " eslint src/**/* test/**/* demo/**/* --ext .ts,.tsx --ignore-pattern *.html -- fix --max-warnings 0 " ,
27
27
"test" : " jest --collectCoverage"
28
28
},
29
29
"husky" : {
34
34
"lint-staged" : {
35
35
"*.{ts,tsx}" : [
36
36
" prettier --write" ,
37
- " tslint -p tsconfig.json --fix " ,
37
+ " yarn run lint " ,
38
38
" git add"
39
39
],
40
40
"*.{less,html}" : [
70
70
"@types/react-dom" : " ^16.8.3" ,
71
71
"@types/react-test-renderer" : " ^16.8.1" ,
72
72
"@types/shallowequal" : " ^1.1.1" ,
73
+ "@typescript-eslint/eslint-plugin" : " ^1.7.0" ,
73
74
"codecov" : " ^3.2.0" ,
75
+ "eslint" : " 5.3.0" ,
76
+ "eslint-config-prettier" : " ^4.1.0" ,
77
+ "eslint-plugin-react" : " ^7.12.4" ,
74
78
"husky" : " ^1.3.1" ,
75
79
"jest" : " ^24.5.0" ,
76
80
"lint-staged" : " ^8.1.5" ,
84
88
"shx" : " ^0.3.2" ,
85
89
"ts-jest" : " ^24.0.1" ,
86
90
"tslib" : " ^1.9.3" ,
87
- "tslint" : " ^5.14.0" ,
88
- "tslint-eslint-rules" : " ^5.4.0" ,
89
- "tslint-react" : " ^4.0.0" ,
90
- "tslint-sonarts" : " ^1.9.0" ,
91
91
"typescript" : " ^3.4.4"
92
92
},
93
93
"peerDependencies" : {
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments