setup a eslint/prettier setup with plugins, and a basic webpack setup

This commit is contained in:
Vu Nguyen
2021-01-14 22:54:40 -06:00
parent ba3182fd59
commit b9cfc9b18e
14 changed files with 10807 additions and 72 deletions

View File

@@ -1,13 +1,14 @@
{
"name": "chrome-wakatime",
"private": true,
"scripts": {
"test": "clap test",
"start": "clap build",
"gulp": "gulp",
"watch": "gulp watch",
"lint": "clap lint",
"postinstall": "clap postinstall",
"validate": "npm ls"
"lint": "clap lint",
"start": "clap build",
"test": "clap test",
"validate": "npm ls",
"watch": "gulp watch"
},
"husky": {
"hooks": {
@@ -26,28 +27,54 @@
]
},
"jest": {
"verbose": true,
"testURL": "http://localhost/",
"scriptPreprocessor": "<rootDir>/node_modules/babel-jest",
"testDirectoryName": "tests",
"testFileExtensions": [
"jest.js"
],
"scriptPreprocessor": "<rootDir>/node_modules/babel-jest",
"testDirectoryName": "tests",
"testURL": "http://localhost/",
"unmockedModulePathPatterns": [
"<rootDir>/node_modules/react"
]
],
"verbose": true
},
"dependencies": {
"bootstrap": "3.4.1",
"classnames": "^2.2.5",
"create-react-class": "^15.6.3",
"font-awesome": "4.6.3",
"jquery": "^3.0.0",
"moment": "^2.13.0",
"react": "^16.2.0",
"react-dom": "^16.2.0",
"react-transition-group": "^1.0.0",
"webextension-polyfill": "^0.4.0"
},
"private": true,
"devDependencies": {
"@types/chrome": "0.0.128",
"@types/jest": "^26.0.20",
"@types/jquery": "^3.5.5",
"@types/node": "^14.14.20",
"@types/react": "^17.0.0",
"@types/react-dom": "^17.0.0",
"@typescript-eslint/eslint-plugin": "^4.13.0",
"@typescript-eslint/parser": "^4.13.0",
"@xarc/run": "^1.0.4",
"babel-jest": "^22.1.0",
"bower": "^1.7.9",
"chai": "^4.1.2",
"del": "^3.0.0",
"eslint": "^7.17.0",
"eslint-config-kentcdodds": "^17.3.0",
"eslint-config-prettier": "^7.1.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-prettier": "^3.3.1",
"eslint-plugin-react": "^7.22.0",
"eslint-plugin-sort-keys-fix": "^1.1.1",
"eslint-plugin-typescript-sort-keys": "^1.5.0",
"gulp": "^3.9.1",
"husky": "^4.3.7",
"jest": "^26.6.3",
"jest-cli": "^22.1.4",
"jsdom": "^16.4.0",
"jshint": "^2.9.2",
@@ -61,24 +88,17 @@
"phantomjs": "^2.1.7",
"popper.js": "^1.14.6",
"prettier": "^2.2.1",
"prettier-plugin-packagejson": "^2.2.9",
"prettier-plugin-sort-json": "0.0.1",
"rimraf": "^3.0.2",
"sinon": "^4.2.2",
"sinon-chai": "^2.8.0",
"sinon-chrome": "^2.2.4",
"traceur": "^0.0.111",
"ts-loader": "^8.0.14",
"ts-node": "^9.1.1",
"typescript": "^4.1.3"
},
"dependencies": {
"bootstrap": "3.4.1",
"classnames": "^2.2.5",
"create-react-class": "^15.6.3",
"font-awesome": "4.6.3",
"jquery": "^3.0.0",
"moment": "^2.13.0",
"react": "^16.2.0",
"react-dom": "^16.2.0",
"react-transition-group": "^1.0.0",
"webextension-polyfill": "^0.4.0"
"typescript": "^4.1.3",
"webpack": "^5.14.0",
"webpack-cli": "^4.3.1"
}
}