Skip to content

Commit

Permalink
Clean up, add test
Browse files Browse the repository at this point in the history
  • Loading branch information
dy committed Jul 22, 2017
1 parent a3e4426 commit 0ebfbe7
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 7 deletions.
43 changes: 43 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"env": {
"browser": true,
"node": true,
"commonjs": true,
"es6": true
},
"extends": "eslint:recommended",
"rules": {
"strict": 2,
"indent": 0,
"linebreak-style": 0,
"quotes": 0,
"semi": 0,
"no-cond-assign": 1,
"no-constant-condition": 1,
"no-duplicate-case": 1,
"no-empty": 1,
"no-ex-assign": 1,
"no-extra-boolean-cast": 1,
"no-extra-semi": 1,
"no-fallthrough": 1,
"no-func-assign": 1,
"no-global-assign": 1,
"no-implicit-globals": 2,
"no-inner-declarations": ["error", "functions"],
"no-irregular-whitespace": 2,
"no-loop-func": 1,
"no-multi-str": 1,
"no-mixed-spaces-and-tabs": 1,
"no-proto": 1,
"no-sequences": 1,
"no-throw-literal": 1,
"no-unmodified-loop-condition": 1,
"no-useless-call": 1,
"no-void": 1,
"no-with": 2,
"wrap-iife": 1,
"no-redeclare": 1,
"no-unused-vars": ["error", { "vars": "all", "args": "none" }],
"no-sparse-arrays": 1
}
}
4 changes: 0 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,3 @@ function quadratic(x1, y1, cx, cy, x2, y2){
y2
]
}

function round(v, precision) {
return Math.round(v / precision) * precision
}
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"svg-arc-to-cubic-bezier": "^2.0.0"
},
"devDependencies": {
"is-svg-path": "^1.0.0",
"parse-svg-path": "^0.1.2",
"tape": "^4.7.0"
},
Expand Down
3 changes: 1 addition & 2 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

let t = require('tape')
let normalize = require('./')
var parse = require('parse-svg-path')
var isPath = require('is-svg-path')
let parse = require('parse-svg-path')

t('line-to', t => {
t.deepEqual(
Expand Down

0 comments on commit 0ebfbe7

Please sign in to comment.