Skip to content

Commit ee57947

Browse files
committed
Add eslint and prettier
1 parent a641f34 commit ee57947

3 files changed

Lines changed: 28 additions & 1 deletion

File tree

.eslintrc

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"env": {
3+
"commonjs": true,
4+
"es2020": true,
5+
"node": true
6+
},
7+
"extends": [
8+
"eslint:recommended",
9+
"prettier",
10+
"plugin:prettier/recommended"
11+
],
12+
"parserOptions": {
13+
"ecmaVersion": 11
14+
},
15+
"plugins": [
16+
"prettier"
17+
]
18+
}

.prettierrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"tabWidth": 4,
3+
"endOfLine": "crlf"
4+
}

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"description": "Take an existing PDF Form and data and PDF Filler will create a new PDF with all given fields populated.",
1111
"main": "index.js",
1212
"scripts": {
13-
"test": "node_modules/.bin/mocha test/test.js"
13+
"test": "node_modules/.bin/mocha test/test.js",
14+
"lint": "eslint *.js"
1415
},
1516
"keywords": [
1617
"nodejs",
@@ -28,7 +29,11 @@
2829
"license": "MIT",
2930
"readmeFilename": "README.md",
3031
"devDependencies": {
32+
"eslint": "^7.5.0",
33+
"eslint-config-prettier": "^6.11.0",
34+
"eslint-plugin-prettier": "^3.1.4",
3135
"mocha": "^3.2.0",
36+
"prettier": "^2.0.5",
3237
"should": "^11.1.2"
3338
}
3439
}

0 commit comments

Comments
 (0)