Skip to content

Instantly share code, notes, and snippets.

@wreulicke
Created August 1, 2017 21:35
Show Gist options
  • Save wreulicke/1240d3f45c994b7e12e86da0df990fd8 to your computer and use it in GitHub Desktop.
Save wreulicke/1240d3f45c994b7e12e86da0df990fd8 to your computer and use it in GitHub Desktop.
js-sandbox
{
"presets": [
[
"es2015",
{
"modules": false
}
],
"stage-0"
]
}
{
"extends": "eslint:recommended",
"parser": "babel-eslint",
"env": {
"browser": true,
"es6": true,
"node": true
},
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
"classes": true,
"jsx": true
}
},
"plugins": [
"prettier"
],
"ecmaFeatures": {
"modules": true,
"classes": true
},
"rules": {
"prettier/prettier": [
"error",
{ "trailingComma": true, "singleQuote": false , "semi": false}
],
"quotes": [
"error",
"double",
{
"avoidEscape": true,
"allowTemplateLiterals": true
}
],
"semi": [
"error",
"never"
],
"no-var": "error",
"prefer-const": "error",
"prefer-spread": "error",
"prefer-template": "error",
"no-console": "off",
"no-undefined": "error",
"dot-notation": "error",
"no-extra-bind": "error",
"no-multi-spaces": "error",
"no-useless-return": "error",
"wrap-iife": "error",
"no-lonely-if": "error"
}
}
{
"name": "tdd-sandbox",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "nyc ava --watch",
"test": "nyc ava"
},
"dependencies": {
"ava": "^0.21.0",
"babel-core": "^6.22.1",
"babel-eslint": "^7.1.1",
"babel-polyfill": "^6.22.0",
"babel-preset-es2015": "^6.22.0",
"babel-preset-stage-0": "^6.22.0",
"babel-register": "^6.22.0",
"eslint": "^3.14.1",
"eslint-plugin-prettier": "^2.1.2",
"nyc": "^10.1.2",
"prettier": "^1.5.3",
"sinon": "^2.4.1"
},
"ava": {
"require": [
"babel-register"
],
"babel": {
"babelrc": true,
"plugins": [
"transform-es2015-modules-commonjs"
]
}
},
"keywords": [],
"author": "",
"license": "MIT"
}
import test from "ava"
test("test", t => {
t.is("aaa", "aaa")
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment