replace jshint w/ eslint
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
"browser": true,
|
"browser": true,
|
||||||
"shadow": true,
|
"shadow": true,
|
||||||
"globals": {
|
"globals": {
|
||||||
|
"jasmine": true,
|
||||||
"describe": true,
|
"describe": true,
|
||||||
"beforeEach": true,
|
"beforeEach": true,
|
||||||
"afterEach": true,
|
"afterEach": true,
|
||||||
@@ -9,6 +10,12 @@
|
|||||||
"it": true,
|
"it": true,
|
||||||
"xit": true,
|
"xit": true,
|
||||||
"expect": true,
|
"expect": true,
|
||||||
"require": true
|
"require": true,
|
||||||
|
"global": true,
|
||||||
|
"__dirname": true,
|
||||||
|
"module": true
|
||||||
|
},
|
||||||
|
"rules": {
|
||||||
|
"quotes": "single"
|
||||||
}
|
}
|
||||||
}
|
}
|
@@ -4,7 +4,7 @@
|
|||||||
"description": "Reimplementation of CSS layout using pure JavaScript",
|
"description": "Reimplementation of CSS layout using pure JavaScript",
|
||||||
"main": "src/Layout.js",
|
"main": "src/Layout.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"pretest": "./node_modules/jshint/bin/jshint src",
|
"pretest": "./node_modules/eslint/bin/eslint.js src",
|
||||||
"test": "./node_modules/karma/bin/karma start ./karma.conf.js --single-run"
|
"test": "./node_modules/karma/bin/karma start ./karma.conf.js --single-run"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
@@ -18,8 +18,8 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/facebook/css-layout",
|
"homepage": "https://github.com/facebook/css-layout",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"eslint": "^0.14.1",
|
||||||
"jasmine-core": "^2.2.0",
|
"jasmine-core": "^2.2.0",
|
||||||
"jshint": "^2.6.0",
|
|
||||||
"karma": "^0.12.31",
|
"karma": "^0.12.31",
|
||||||
"karma-chrome-launcher": "^0.1.7",
|
"karma-chrome-launcher": "^0.1.7",
|
||||||
"karma-jasmine": "^0.3.5"
|
"karma-jasmine": "^0.3.5"
|
||||||
|
@@ -101,7 +101,6 @@ describe('Random layout', function() {
|
|||||||
delete node.style.flex;
|
delete node.style.flex;
|
||||||
delete node.style.position;
|
delete node.style.position;
|
||||||
|
|
||||||
/*jshint -W083 */
|
|
||||||
it('should layout randomly #' + i +'.', function(node) {
|
it('should layout randomly #' + i +'.', function(node) {
|
||||||
if (JSON.stringify(computeLayout(node)) !== JSON.stringify(computeDOMLayout(node))) {
|
if (JSON.stringify(computeLayout(node)) !== JSON.stringify(computeDOMLayout(node))) {
|
||||||
node = reduceTest(node);
|
node = reduceTest(node);
|
||||||
|
Reference in New Issue
Block a user