Skip to content

Commit

Permalink
Add eslint and prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Sparticuz committed Jul 23, 2020
1 parent a641f34 commit ee57947
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"env": {
"commonjs": true,
"es2020": true,
"node": true
},
"extends": [
"eslint:recommended",
"prettier",
"plugin:prettier/recommended"
],
"parserOptions": {
"ecmaVersion": 11
},
"plugins": [
"prettier"
]
}
4 changes: 4 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"tabWidth": 4,
"endOfLine": "crlf"
}
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"description": "Take an existing PDF Form and data and PDF Filler will create a new PDF with all given fields populated.",
"main": "index.js",
"scripts": {
"test": "node_modules/.bin/mocha test/test.js"
"test": "node_modules/.bin/mocha test/test.js",
"lint": "eslint *.js"
},
"keywords": [
"nodejs",
Expand All @@ -28,7 +29,11 @@
"license": "MIT",
"readmeFilename": "README.md",
"devDependencies": {
"eslint": "^7.5.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-prettier": "^3.1.4",
"mocha": "^3.2.0",
"prettier": "^2.0.5",
"should": "^11.1.2"
}
}

0 comments on commit ee57947

Please sign in to comment.