Skip to content

Commit

Permalink
Add eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddarnes committed Jul 25, 2019
1 parent cea9988 commit fea792b
Show file tree
Hide file tree
Showing 3 changed files with 531 additions and 23 deletions.
17 changes: 17 additions & 0 deletions .eslintrc.js
@@ -0,0 +1,17 @@
module.exports = {
env: {
node: true,
browser: true,
commonjs: true,
es6: true
},
extends: "eslint:recommended",
globals: {
Atomics: "readonly",
SharedArrayBuffer: "readonly"
},
parserOptions: {
ecmaVersion: 2018
},
rules: {}
};
7 changes: 6 additions & 1 deletion package.json
Expand Up @@ -7,7 +7,8 @@
"start": "yarn run dev",
"dev": "cross-env ELEVENTY_ENV=dev eleventy --serve",
"build": "cross-env ELEVENTY_ENV=prod eleventy",
"test": "yarn run build"
"test": "yarn run build",
"lint": "eslint . --ext .js --cache"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -39,5 +40,9 @@
"eleventy-plugin-lazyimages": "liamfiddler/eleventy-plugin-lazyimages",
"eleventy-plugin-local-images": "^0.2.0",
"html-minifier": "^4.0.0"
},
"devDependencies": {
"eslint": "^6.1.0",
"eslint-plugin-ghost": "^0.4.0"
}
}

0 comments on commit fea792b

Please sign in to comment.