mirror of
https://github.com/usatiuk/writer.git
synced 2025-10-29 00:17:48 +01:00
switch to eslint
move tests to src/, because otherwise import plugin doesn't work
This commit is contained in:
@@ -26,8 +26,11 @@
|
||||
"eslint": "^7.6.0",
|
||||
"eslint-config-airbnb": "^18.2.0",
|
||||
"eslint-config-prettier": "^6.11.0",
|
||||
"eslint-import-resolver-typescript": "^2.2.0",
|
||||
"eslint-plugin-import": "^2.22.0",
|
||||
"eslint-plugin-jest": "^23.20.0",
|
||||
"eslint-plugin-jsx-a11y": "^6.3.1",
|
||||
"eslint-plugin-mocha": "^8.0.0",
|
||||
"eslint-plugin-prettier": "^3.1.4",
|
||||
"eslint-plugin-react": "^7.20.6",
|
||||
"eslint-plugin-react-hooks": "^4.0.8",
|
||||
@@ -72,7 +75,7 @@
|
||||
"build": "npm run build-backend && npm run build-frontend",
|
||||
"frontend": "cd frontend && npm start",
|
||||
"dev": "cross-env NODE_ENV=development concurrently npm:ts-node-dev npm:frontend -c 'blue,green'",
|
||||
"test": "cross-env NODE_ENV=test mocha --timeout 15000 -r ts-node/register -r tsconfig-paths/register 'tests/**/*.ts' ",
|
||||
"test": "cross-env NODE_ENV=test mocha --timeout 15000 -r ts-node/register -r tsconfig-paths/register 'src/tests/**/*.ts' ",
|
||||
"lint": "eslint ./src/** ./frontend/src/** --ext .js,.jsx,.ts,.tsx"
|
||||
},
|
||||
"husky": {
|
||||
|
||||
Reference in New Issue
Block a user