replace jshint w/ eslint
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
"browser": true,
|
||||
"shadow": true,
|
||||
"globals": {
|
||||
"jasmine": true,
|
||||
"describe": true,
|
||||
"beforeEach": true,
|
||||
"afterEach": true,
|
||||
@@ -9,6 +10,12 @@
|
||||
"it": true,
|
||||
"xit": 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",
|
||||
"main": "src/Layout.js",
|
||||
"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"
|
||||
},
|
||||
"repository": {
|
||||
@@ -18,8 +18,8 @@
|
||||
},
|
||||
"homepage": "https://github.com/facebook/css-layout",
|
||||
"devDependencies": {
|
||||
"eslint": "^0.14.1",
|
||||
"jasmine-core": "^2.2.0",
|
||||
"jshint": "^2.6.0",
|
||||
"karma": "^0.12.31",
|
||||
"karma-chrome-launcher": "^0.1.7",
|
||||
"karma-jasmine": "^0.3.5"
|
||||
|
@@ -101,7 +101,6 @@ describe('Random layout', function() {
|
||||
delete node.style.flex;
|
||||
delete node.style.position;
|
||||
|
||||
/*jshint -W083 */
|
||||
it('should layout randomly #' + i +'.', function(node) {
|
||||
if (JSON.stringify(computeLayout(node)) !== JSON.stringify(computeDOMLayout(node))) {
|
||||
node = reduceTest(node);
|
||||
|
Reference in New Issue
Block a user