浏览代码

chore(jshint): remove JSHint

dev1
hristoterezov 7 年前
父节点
当前提交
c67c844dc9
共有 5 个文件被更改,包括 1 次插入25 次删除
  1. 0
    11
      .jshintignore
  2. 0
    10
      .jshintrc
  3. 0
    1
      modules/xmpp/RtxModifier.spec.js
  4. 0
    1
      modules/xmpp/SampleSdpStrings.js
  5. 1
    2
      package.json

+ 0
- 11
.jshintignore 查看文件

1
-# The following do not need to be checked because they do not represent JS
2
-# source code.
3
-doc/
4
-node_modules/
5
-lib-jitsi-meet.js
6
-lib-jitsi-meet.js.map
7
-lib-jitsi-meet.min.js
8
-
9
-# The following are checked by ESLint and take advantage of advanced language
10
-# features such as Facebook Flow which are not supported by JSHint.
11
-flow-typed/

+ 0
- 10
.jshintrc 查看文件

1
-{
2
-    "browser": true, // Web Browser (window, document, etc)
3
-    "esversion": 6,
4
-    "expr": true, // true: Tolerate `ExpressionStatement` as Programs
5
-    "jasmine": true,
6
-    "latedef": false, //This option prohibits the use of a variable before it was defined
7
-    "laxbreak": true, //Ignore line breaks around "=", "==", "&&", etc.
8
-    "loopfunc": true, // true: Tolerate functions being defined in loops
9
-    "node": true // Node.js
10
-}

+ 0
- 1
modules/xmpp/RtxModifier.spec.js 查看文件

1
 /* eslint-disable max-len*/
1
 /* eslint-disable max-len*/
2
 /* eslint-disable no-invalid-this */
2
 /* eslint-disable no-invalid-this */
3
-/* jshint maxlen:false*/
4
 import RtxModifier from './RtxModifier.js';
3
 import RtxModifier from './RtxModifier.js';
5
 import * as SampleSdpStrings from './SampleSdpStrings.js';
4
 import * as SampleSdpStrings from './SampleSdpStrings.js';
6
 import * as transform from 'sdp-transform';
5
 import * as transform from 'sdp-transform';

+ 0
- 1
modules/xmpp/SampleSdpStrings.js 查看文件

1
 /* eslint-disable max-len*/
1
 /* eslint-disable max-len*/
2
-/* jshint maxlen:false*/
3
 import * as transform from 'sdp-transform';
2
 import * as transform from 'sdp-transform';
4
 
3
 
5
 // A generic sdp session block
4
 // A generic sdp session block

+ 1
- 2
package.json 查看文件

39
     "eslint-plugin-import": "2.3.0",
39
     "eslint-plugin-import": "2.3.0",
40
     "flow-bin": "0.38.0",
40
     "flow-bin": "0.38.0",
41
     "jasmine-core": "2.5.2",
41
     "jasmine-core": "2.5.2",
42
-    "jshint": "2.9.4",
43
     "karma": "0.13.22",
42
     "karma": "0.13.22",
44
     "karma-chrome-launcher": "0.2.3",
43
     "karma-chrome-launcher": "0.2.3",
45
     "karma-jasmine": "0.3.8",
44
     "karma-jasmine": "0.3.8",
49
     "webpack": "2.6.1"
48
     "webpack": "2.6.1"
50
   },
49
   },
51
   "scripts": {
50
   "scripts": {
52
-    "lint": "jshint . && eslint . && flow",
51
+    "lint": "eslint . && flow",
53
     "postinstall": "webpack -p",
52
     "postinstall": "webpack -p",
54
     "test": "karma start karma.conf.js",
53
     "test": "karma start karma.conf.js",
55
     "validate": "npm ls"
54
     "validate": "npm ls"

正在加载...
取消
保存