Skip to content

Commit 41d85cb

Browse files
committed
style: update code formatting
1 parent 5953d1b commit 41d85cb

File tree

5 files changed

+27
-82
lines changed

5 files changed

+27
-82
lines changed

.eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dist/

.eslintrc.json

-18
This file was deleted.

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2019 GitHub Actions
3+
Copyright (c) 2021 UGRC
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

package-lock.json

+13-57
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+12-6
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"lint:fix": "eslint ./ --ext .js --quiet --fix --ignore-path ./.ignore",
1212
"prepare": "husky install && ncc build index.js -o dist --source-map --license licenses.txt",
1313
"test": "jest",
14-
"all": "npm run lint && npm run prepare && npm run test"
14+
"all": "npm run fix && npm run prepare && npm run test"
1515
},
1616
"repository": {
1717
"type": "git",
@@ -38,23 +38,29 @@
3838
"devDependencies": {
3939
"@vercel/ncc": "^0.31.1",
4040
"eslint": "^8.0.1",
41-
"eslint-plugin-prettier": "^4.0.0",
41+
"eslint-config-prettier": "^8.3.0",
4242
"husky": "^7.0.2",
4343
"jest": "^27.3.0",
4444
"lint-staged": "^11.2.3",
4545
"prettier": "^2.4.1"
4646
},
4747
"eslintConfig": {
4848
"env": {
49-
"node": true
49+
"node": true,
50+
"es6": true,
51+
"jest": true
5052
},
5153
"extends": [
5254
"eslint:recommended",
53-
"plugin:prettier/recommended"
54-
]
55+
"prettier"
56+
],
57+
"parserOptions": {
58+
"ecmaVersion": 2018
59+
}
5560
},
5661
"prettier": {
57-
"singleQuote": true
62+
"singleQuote": true,
63+
"semi": true
5864
},
5965
"lint-staged": {
6066
"*.js": "eslint --cache --fix --ignore-path ./.ignore",

0 commit comments

Comments
 (0)