Skip to content

Commit

Permalink
Added initial deps
Browse files Browse the repository at this point in the history
  • Loading branch information
amilajack committed Oct 21, 2016
1 parent 36f75a8 commit 061da7b
Show file tree
Hide file tree
Showing 8 changed files with 201 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"presets": ["es2015", "stage-0"],
"plugins": [
"transform-runtime",
"add-module-exports",
"transform-es2015-modules-umd"
]
}
20 changes: 20 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.{json,js}]
indent_style = space
indent_size = 2

[.eslintrc]
indent_style = space
indent_size = 2

[*.md]
trim_trailing_whitespace = false
25 changes: 25 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"extends": "airbnb",
"parser": "babel-eslint",
"env": {
"node": true,
"mocha": true,
"es6": true
},
"rules": {
"arrow-parens": 0,
"comma-dangle": ["error", "never"],
"consistent-return": 0,
"func-names": 2,
"generator-star-spacing": [0], # HACK: https://github.com/airbnb/javascript/issues/948
"import/newline-after-import": 0,
"import/no-extraneous-dependencies": ["off"],
"jsx-filename-extension": 0,
"new-cap": 0,
"no-implicit-coercion": "error",
"no-mixed-operators": 0,
"no-nested-ternary": 0,
"no-underscore-dangle": 0,
"no-var": "error"
}
}
12 changes: 12 additions & 0 deletions .flowconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[ignore]
.*/node_modules/fbjs/.*
.*/node_modules/*
.*/git/.*

[include]
./test/*.example.js

[options]
esproposal.class_static_fields=enable
esproposal.class_instance_fields=enable
esproposal.export_star_as=enable
25 changes: 25 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
node_modules/
.idea/
*.iml
*.swp
*.swo
npm

# Logs
logs
*.log

# Runtime data
pids
*.pid
*.seed

# node-waf configuration
.lock-wscript

# Dependency directory
node_modules

# OSX
.DS_Store
lib
28 changes: 28 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
sudo: false

language: node_js

node_js:
- 6
- 4

cache:
directories:
- node_modules

install:
- npm i -g npm@latest
- npm install

matrix:
fast_finish: true
allow_failures:
- node_js: 4

script:
- npm run test
- npm run lint
- npm run build

notifications:
email: false
20 changes: 20 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
environment:
matrix:
- nodejs_version: '6'
- nodejs_version: '4'
install:
- ps: Install-Product node $env:nodejs_version
- set CI=true
- npm -g install npm@latest
- set PATH=%APPDATA%\npm;%PATH%
- npm install
matrix:
fast_finish: true
build: off
version: '{build}'
shallow_clone: true
clone_depth: 1
test_script:
- node --version
- npm --version
- npm test
65 changes: 63 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,70 @@
},
"keywords": [],
"author": "",
"license": "ISC",
"license": "MIT",
"bugs": {
"url": "https://github.com/amilajack/eslint-plugin-compat/issues"
},
"homepage": "https://github.com/amilajack/eslint-plugin-compat#readme"
"files": [
"index.js",
"lib"
],
"homepage": "https://github.com/amilajack/eslint-plugin-compat#readme",
"keywords": [
"eslint",
"browser",
"compatibility",
"api"
],
"scripts": {
"build": "cross-env NODE_ENV=production babel src --out-dir lib && npm run build-web",
"clean": "rm -rf lib",
"lint": "cross-env NODE_ENV=test eslint src test",
"precommit": "npm run test-all",
"spec": "cross-env NODE_ENV=test mocha --bail --timeout 30000 --inline-diffs --async-only --growl --compilers js:babel-register --recursive --require ./test/setup.js test/*.spec.js",
"test": "cross-env NODE_ENV=test npm run lint && npm run spec && npm run build",
"version": "npm run build"
},
"devDependencies": {
"babel-cli": "^6.14.0",
"babel-eslint": "^6.1.2",
"babel-loader": "^6.2.5",
"babel-plugin-add-module-exports": "^0.2.1",
"babel-plugin-transform-es2015-modules-umd": "^6.12.0",
"babel-plugin-transform-runtime": "^6.15.0",
"babel-polyfill": "^6.13.0",
"babel-preset-es2015": "^6.14.0",
"babel-preset-stage-0": "^6.5.0",
"babel-register": "^6.14.0",
"chai": "^3.5.0",
"cross-env": "^3.0.0",
"eslint": "^3.6.0",
"eslint-config-airbnb": "^11.2.0",
"eslint-plugin-immutable": "^1.0.0",
"eslint-plugin-import": "^1.16.0",
"eslint-plugin-jsx-a11y": "^2.2.2",
"eslint-plugin-react": "^6.3.0",
"husky": "^0.11.8",
"json-loader": "^0.5.4",
"mocha": "^2.0.2",
"npm-check": "^5.2.3",
"webpack": "^1.13.2"
},
"dependencies": {
"babel-runtime": "^6.11.6",
"cheerio": "github:cheeriojs/cheerio#e65ad72",
"isomorphic-fetch": "^2.2.1",
"url-parse": "^1.1.3"
},
"peerDependencies": {
"eslint": ">=3.0.0"
},
"engines": {
"node": "4.x || 6.x",
"npm": "2.x || 3.x"
},
"devEngines": {
"node": "4.x || 6.x",
"npm": "3.x"
}
}

0 comments on commit 061da7b

Please sign in to comment.