Browse Source

add tslint-react

pull/4345/head
bakaneko 3 months ago
parent
commit
8aea793261
3 changed files with 18 additions and 2 deletions
  1. 2
    1
      package.json
  2. 2
    1
      tslint.json
  3. 14
    0
      yarn.lock

+ 2
- 1
package.json View File

@@ -5,7 +5,7 @@
5 5
     "development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=webpack.config.js",
6 6
     "generate-localizations": "node generate-localizations.js",
7 7
     "hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=webpack.config.js",
8
-    "lint": "tslint --fix -c tslint.json 'resources/assets/lib/**/*.ts' 'resources/assets/lib/**/*.tsx'",
8
+    "lint": "node_modules/tslint/bin/tslint --fix -c tslint.json 'resources/assets/lib/**/*.{ts,tsx}'",
9 9
     "localize": "yarn run generate-localizations",
10 10
     "prod": "yarn run production",
11 11
     "production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=webpack.config.js",
@@ -67,6 +67,7 @@
67 67
     "mobx-react-devtools": "^6.0.3",
68 68
     "ts-loader": "5.3.2",
69 69
     "tslint": "^5.12.0",
70
+    "tslint-react": "^4.0.0",
70 71
     "vue-template-compiler": "^2.5.21"
71 72
   }
72 73
 }

+ 2
- 1
tslint.json View File

@@ -1,7 +1,8 @@
1 1
 {
2 2
   "defaultSeverity": "error",
3 3
   "extends": [
4
-    "tslint:recommended"
4
+    "tslint:recommended",
5
+    "tslint-react"
5 6
   ],
6 7
   "jsRules": {},
7 8
   "rules": {

+ 14
- 0
yarn.lock View File

@@ -7490,6 +7490,13 @@ tslib@^1.8.0, tslib@^1.8.1, tslib@^1.9.0:
7490 7490
   resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.9.3.tgz#d7e4dd79245d85428c4d7e4822a79917954ca286"
7491 7491
   integrity sha512-4krF8scpejhaOgqzBEcGM7yDIEfi0/8+8zDRZhNZZ2kjmHJ4hv3zCbQWxoJGz1iw5U0Jl0nma13xzHXcncMavQ==
7492 7492
 
7493
+tslint-react@^4.0.0:
7494
+  version "4.0.0"
7495
+  resolved "https://registry.yarnpkg.com/tslint-react/-/tslint-react-4.0.0.tgz#b4bb4c01c32448cb14d23f143a2f5e4989bb961e"
7496
+  integrity sha512-9fNE0fm9zNDx1+b6hgy8rgDN2WsQLRiIrn3+fbqm0tazBVF6jiaCFAITxmU+WSFWYE03Xhp1joCircXOe1WVAQ==
7497
+  dependencies:
7498
+    tsutils "^3.9.1"
7499
+
7493 7500
 tslint@^5.12.0:
7494 7501
   version "5.12.0"
7495 7502
   resolved "https://registry.yarnpkg.com/tslint/-/tslint-5.12.0.tgz#47f2dba291ed3d580752d109866fb640768fca36"
@@ -7515,6 +7522,13 @@ tsutils@^2.27.2:
7515 7522
   dependencies:
7516 7523
     tslib "^1.8.1"
7517 7524
 
7525
+tsutils@^3.9.1:
7526
+  version "3.10.0"
7527
+  resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-3.10.0.tgz#6f1c95c94606e098592b0dff06590cf9659227d6"
7528
+  integrity sha512-q20XSMq7jutbGB8luhKKsQldRKWvyBO2BGqni3p4yq8Ys9bEP/xQw3KepKmMRt9gJ4lvQSScrihJrcKdKoSU7Q==
7529
+  dependencies:
7530
+    tslib "^1.8.1"
7531
+
7518 7532
 tty-browserify@0.0.0:
7519 7533
   version "0.0.0"
7520 7534
   resolved "https://registry.yarnpkg.com/tty-browserify/-/tty-browserify-0.0.0.tgz#a157ba402da24e9bf957f9aa69d524eed42901a6"

Loading…
Cancel
Save