Eslint-Prettier integration & pre commit hook (#2272)
* Eslint prettier integrations and precommit hook on fly * CHANGELOG update and package.json version patchmain
parent
a4e8a98f23
commit
678f5b9277
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,3 @@
|
||||
// Copyright (C) 2020 Intel Corporation
|
||||
//
|
||||
// SPDX-License-Identifier: MIT
|
||||
@ -0,0 +1,19 @@
|
||||
{
|
||||
"arrowParens": "always",
|
||||
"bracketSpacing": true,
|
||||
"embeddedLanguageFormatting": "auto",
|
||||
"htmlWhitespaceSensitivity": "css",
|
||||
"insertPragma": false,
|
||||
"jsxBracketSameLine": false,
|
||||
"jsxSingleQuote": true,
|
||||
"printWidth": 120,
|
||||
"proseWrap": "preserve",
|
||||
"quoteProps": "as-needed",
|
||||
"requirePragma": false,
|
||||
"semi": true,
|
||||
"singleQuote": true,
|
||||
"tabWidth": 4,
|
||||
"trailingComma": "all",
|
||||
"useTabs": false,
|
||||
"vueIndentScriptAndStyle": false
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,82 +1,99 @@
|
||||
{
|
||||
"name": "cvat-ui",
|
||||
"version": "1.9.10",
|
||||
"description": "CVAT single-page application",
|
||||
"main": "src/index.tsx",
|
||||
"scripts": {
|
||||
"build": "webpack --config ./webpack.config.js",
|
||||
"start": "REACT_APP_API_URL=http://localhost:7000 webpack-dev-server --config ./webpack.config.js --mode=development",
|
||||
"type-check": "tsc --noEmit",
|
||||
"type-check:watch": "npm run type-check -- --watch",
|
||||
"lint": "eslint './src/**/*.{ts,tsx}'",
|
||||
"lint:fix": "eslint './src/**/*.{ts,tsx}' --fix"
|
||||
},
|
||||
"author": "Intel",
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.6.0",
|
||||
"@babel/plugin-proposal-class-properties": "^7.5.5",
|
||||
"@babel/plugin-proposal-optional-chaining": "^7.11.0",
|
||||
"@babel/preset-env": "^7.6.0",
|
||||
"@babel/preset-react": "^7.0.0",
|
||||
"@babel/preset-typescript": "^7.6.0",
|
||||
"@typescript-eslint/eslint-plugin": "^2.19.2",
|
||||
"@typescript-eslint/parser": "^2.19.2",
|
||||
"babel-loader": "^8.0.6",
|
||||
"babel-plugin-import": "^1.12.2",
|
||||
"copy-webpack-plugin": "^5.1.2",
|
||||
"css-loader": "^3.2.0",
|
||||
"eslint": "^6.8.0",
|
||||
"eslint-config-airbnb-typescript": "^7.0.0",
|
||||
"eslint-import-resolver-typescript": "^2.0.0",
|
||||
"eslint-plugin-import": "^2.18.2",
|
||||
"eslint-plugin-jsx-a11y": "^6.2.3",
|
||||
"eslint-plugin-react": "^7.17.0",
|
||||
"eslint-plugin-react-hooks": "^1.7.0",
|
||||
"html-webpack-plugin": "^3.2.0",
|
||||
"node-sass": "^4.13.0",
|
||||
"postcss-loader": "^3.0.0",
|
||||
"postcss-preset-env": "^6.7.0",
|
||||
"react-svg-loader": "^3.0.3",
|
||||
"sass-loader": "^8.0.0",
|
||||
"style-loader": "^1.0.0",
|
||||
"tsconfig-paths-webpack-plugin": "^3.2.0",
|
||||
"typescript": "^3.7.3",
|
||||
"webpack": "^4.44.2",
|
||||
"webpack-cli": "^3.3.8",
|
||||
"webpack-dev-server": "^3.8.0",
|
||||
"worker-loader": "^2.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@types/platform": "^1.3.2",
|
||||
"@types/react": "^16.9.49",
|
||||
"@types/react-color": "^3.0.2",
|
||||
"@types/react-dom": "^16.9.8",
|
||||
"@types/react-redux": "^7.1.9",
|
||||
"@types/react-router": "^5.1.8",
|
||||
"@types/react-router-dom": "^5.1.5",
|
||||
"@types/react-share": "^3.0.1",
|
||||
"@types/redux-logger": "^3.0.7",
|
||||
"antd": "^3.26.17",
|
||||
"copy-to-clipboard": "^3.2.0",
|
||||
"cvat-canvas": "file:../cvat-canvas",
|
||||
"cvat-core": "file:../cvat-core",
|
||||
"dotenv-webpack": "^1.7.0",
|
||||
"error-stack-parser": "^2.0.6",
|
||||
"moment": "^2.28.0",
|
||||
"platform": "^1.3.6",
|
||||
"prop-types": "^15.7.2",
|
||||
"react": "^16.9.0",
|
||||
"react-color": "^2.18.1",
|
||||
"react-dom": "^16.9.0",
|
||||
"react-hotkeys": "^2.0.0",
|
||||
"react-redux": "^7.2.1",
|
||||
"react-router": "^5.1.0",
|
||||
"react-router-dom": "^5.1.0",
|
||||
"react-share": "^3.0.1",
|
||||
"redux": "^4.0.4",
|
||||
"redux-devtools-extension": "^2.13.8",
|
||||
"redux-logger": "^3.0.6",
|
||||
"redux-thunk": "^2.3.0"
|
||||
}
|
||||
"name": "cvat-ui",
|
||||
"version": "1.9.11",
|
||||
"description": "CVAT single-page application",
|
||||
"main": "src/index.tsx",
|
||||
"scripts": {
|
||||
"build": "webpack --config ./webpack.config.js",
|
||||
"start": "REACT_APP_API_URL=http://localhost:7000 webpack-dev-server --config ./webpack.config.js --mode=development",
|
||||
"type-check": "tsc --noEmit",
|
||||
"type-check:watch": "npm run type-check -- --watch",
|
||||
"lint": "eslint './src/**/*.{ts,tsx}'",
|
||||
"lint:fix": "eslint './src/**/*.{ts,tsx}' --fix"
|
||||
},
|
||||
"author": "Intel",
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.6.0",
|
||||
"@babel/plugin-proposal-class-properties": "^7.5.5",
|
||||
"@babel/plugin-proposal-optional-chaining": "^7.11.0",
|
||||
"@babel/preset-env": "^7.6.0",
|
||||
"@babel/preset-react": "^7.0.0",
|
||||
"@babel/preset-typescript": "^7.6.0",
|
||||
"@typescript-eslint/eslint-plugin": "^2.19.2",
|
||||
"@typescript-eslint/parser": "^2.19.2",
|
||||
"babel-loader": "^8.0.6",
|
||||
"babel-plugin-import": "^1.12.2",
|
||||
"copy-webpack-plugin": "^5.1.2",
|
||||
"css-loader": "^3.2.0",
|
||||
"eslint": "^6.8.0",
|
||||
"eslint-config-airbnb-typescript": "^7.0.0",
|
||||
"eslint-config-prettier": "^6.12.0",
|
||||
"eslint-import-resolver-typescript": "^2.0.0",
|
||||
"eslint-plugin-header": "^3.1.0",
|
||||
"eslint-plugin-import": "^2.18.2",
|
||||
"eslint-plugin-jsx-a11y": "^6.2.3",
|
||||
"eslint-plugin-react": "^7.17.0",
|
||||
"eslint-plugin-react-hooks": "^1.7.0",
|
||||
"html-webpack-plugin": "^3.2.0",
|
||||
"husky": "^4.3.0",
|
||||
"lint-staged": "^10.4.0",
|
||||
"node-sass": "^4.13.0",
|
||||
"postcss-loader": "^3.0.0",
|
||||
"postcss-preset-env": "^6.7.0",
|
||||
"prettier": "2.1.2",
|
||||
"react-svg-loader": "^3.0.3",
|
||||
"sass-loader": "^8.0.0",
|
||||
"style-loader": "^1.0.0",
|
||||
"tsconfig-paths-webpack-plugin": "^3.2.0",
|
||||
"typescript": "^3.7.3",
|
||||
"webpack": "^4.44.2",
|
||||
"webpack-cli": "^3.3.8",
|
||||
"webpack-dev-server": "^3.8.0",
|
||||
"worker-loader": "^2.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@types/platform": "^1.3.2",
|
||||
"@types/react": "^16.9.2",
|
||||
"@types/react-color": "^3.0.2",
|
||||
"@types/react-dom": "^16.9.0",
|
||||
"@types/react-redux": "^7.1.2",
|
||||
"@types/react-router": "^5.0.5",
|
||||
"@types/react-router-dom": "^5.1.0",
|
||||
"@types/react-share": "^3.0.1",
|
||||
"@types/redux-logger": "^3.0.7",
|
||||
"antd": "^3.26.17",
|
||||
"copy-to-clipboard": "^3.2.0",
|
||||
"cvat-canvas": "file:../cvat-canvas",
|
||||
"cvat-core": "file:../cvat-core",
|
||||
"dotenv-webpack": "^1.7.0",
|
||||
"error-stack-parser": "^2.0.6",
|
||||
"moment": "^2.24.0",
|
||||
"platform": "^1.3.6",
|
||||
"prop-types": "^15.7.2",
|
||||
"react": "^16.9.0",
|
||||
"react-color": "^2.18.1",
|
||||
"react-dom": "^16.9.0",
|
||||
"react-hotkeys": "^2.0.0",
|
||||
"react-redux": "^7.1.1",
|
||||
"react-router": "^5.1.0",
|
||||
"react-router-dom": "^5.1.0",
|
||||
"react-share": "^3.0.1",
|
||||
"redux": "^4.0.4",
|
||||
"redux-devtools-extension": "^2.13.8",
|
||||
"redux-logger": "^3.0.6",
|
||||
"redux-thunk": "^2.3.0"
|
||||
},
|
||||
"husky": {
|
||||
"hooks": {
|
||||
"pre-commit": "lint-staged"
|
||||
}
|
||||
},
|
||||
"lint-staged": {
|
||||
"*.{html,css,scss,json,md}": "prettier --write",
|
||||
"*.{js,ts,tsx}": [
|
||||
"eslint --fix",
|
||||
"prettier --write"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue