Skip to content

Commit

Permalink
Updated dev dependencies + added lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Jarrand committed Aug 27, 2020
1 parent 5436ee1 commit acbe2c7
Show file tree
Hide file tree
Showing 11 changed files with 9,796 additions and 55 deletions.
35 changes: 35 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"env": {
"browser": true,
"es6": true,
"node": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module"
},
"rules": {
"indent": [
"error",
2,
{ "SwitchCase": 1 }
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"always"
],
"no-console": [
"error",
{ "allow": ["info", "error"] }
]
}
}
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
/node_modules
yarn.lock
package-lock.json
node_modules/*
container.js
26 changes: 26 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
.SILENT:
.PHONY: test

# Install dependencies
install:
npm install

# Launch watch
watch:
npm run watch

# Build lib
build:
npm run build

# Lint and code style fix
lint:
npm run lint

# Test
test: build
npm run test

# Publish package
publish: build
npm publish . --access public
6 changes: 0 additions & 6 deletions dist/container.js

This file was deleted.

Loading

0 comments on commit acbe2c7

Please sign in to comment.