mirror of
https://github.com/serratus/quaggaJS.git
synced 2026-08-13 05:31:37 +08:00
chore: add lint script
This commit is contained in:
@@ -10,7 +10,6 @@
|
|||||||
"ecmaFeatures": {
|
"ecmaFeatures": {
|
||||||
"blockBindings": true,
|
"blockBindings": true,
|
||||||
"forOf": true,
|
"forOf": true,
|
||||||
"blockBindings": true,
|
|
||||||
"defaultParams": true,
|
"defaultParams": true,
|
||||||
"globalReturn": false,
|
"globalReturn": false,
|
||||||
"modules": true,
|
"modules": true,
|
||||||
@@ -59,7 +58,6 @@
|
|||||||
"comma-style": [2, "last"],
|
"comma-style": [2, "last"],
|
||||||
"consistent-this": [1, "self"],
|
"consistent-this": [1, "self"],
|
||||||
"eol-last": 0,
|
"eol-last": 0,
|
||||||
"new-cap": 0,
|
|
||||||
"new-parens": 2,
|
"new-parens": 2,
|
||||||
"no-array-constructor": 2,
|
"no-array-constructor": 2,
|
||||||
"no-mixed-spaces-and-tabs": 2,
|
"no-mixed-spaces-and-tabs": 2,
|
||||||
|
|||||||
+3
-1
@@ -11,6 +11,7 @@
|
|||||||
"babel-loader": "^5.3.2",
|
"babel-loader": "^5.3.2",
|
||||||
"chai": "^3.4.1",
|
"chai": "^3.4.1",
|
||||||
"core-js": "^1.2.1",
|
"core-js": "^1.2.1",
|
||||||
|
"eslint": "^1.10.3",
|
||||||
"grunt": "^0.4.5",
|
"grunt": "^0.4.5",
|
||||||
"grunt-cli": "^0.1.13",
|
"grunt-cli": "^0.1.13",
|
||||||
"grunt-contrib-nodeunit": "^0.4.1",
|
"grunt-contrib-nodeunit": "^0.4.1",
|
||||||
@@ -39,7 +40,8 @@
|
|||||||
"test": "grunt test",
|
"test": "grunt test",
|
||||||
"integrationtest": "grunt integrationtest",
|
"integrationtest": "grunt integrationtest",
|
||||||
"build": "webpack && webpack --config webpack.config.min.js && grunt uglyasm && webpack --config webpack.node.config.js",
|
"build": "webpack && webpack --config webpack.config.min.js && grunt uglyasm && webpack --config webpack.node.config.js",
|
||||||
"watch": "webpack --watch"
|
"watch": "webpack --watch",
|
||||||
|
"lint": "eslint src"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|||||||
Reference in New Issue
Block a user