Skip to content

Commit

Permalink
Move dev tools configs out of npm package
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed May 19, 2018
1 parent 9920af6 commit ba6fd2e
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 25 deletions.
15 changes: 15 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"extends": "eslint-config-logux/browser",
"rules": {
"security/detect-unsafe-regex": "off",
"global-require": "off"
},
"overrides": {
"files": [
"*.test.js"
],
"rules": {
"es5/no-arrow-functions": "off"
}
}
}
4 changes: 4 additions & 0 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"*.md": "yaspeller-ci",
"*.js": "eslint"
}
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ appveyor.yml
.travis.yml

.editorconfig
.size-limit
.eslintrc
.yaspellerrc
.lintstagedrc

*.svg
6 changes: 6 additions & 0 deletions .size-limit
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[
{
"path": "index.js",
"limit": "7.2 KB"
}
]
25 changes: 0 additions & 25 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,6 @@
"size-limit": "^0.17.1",
"yaspeller-ci": "^1.0.0"
},
"eslintConfig": {
"extends": "eslint-config-logux/browser",
"rules": {
"security/detect-unsafe-regex": "off",
"global-require": "off"
},
"overrides": {
"files": [
"*.test.js"
],
"rules": {
"es5/no-arrow-functions": "off"
}
}
},
"jest": {
"testEnvironment": "node",
"coverageThreshold": {
Expand All @@ -61,22 +46,12 @@
"<rootDir>/test/fixtures"
]
},
"size-limit": [
{
"path": "index.js",
"limit": "7.2 KB"
}
],
"scripts": {
"lint-staged": "lint-staged",
"spellcheck": "yaspeller-ci README.md CHANGELOG.md",
"lint": "eslint-ci *.js test/*.js benchmark/*.js",
"test": "jest --coverage && yarn lint && yarn spellcheck && size-limit"
},
"lint-staged": {
"*.md": "yaspeller-ci",
"*.js": "eslint"
},
"browser": {
"./node.js": "./browser.js",
"path": false
Expand Down

0 comments on commit ba6fd2e

Please sign in to comment.