* feat: configure eslint rules by replicating those in the twenty-front package and introduce scripts for linting, formatting code and removing build output * fix: ensure each file of the extension package satisfies linting rules and disable some rules where necessary * fix: update relative imports to absolute imports throughout extension code with the defined tilde and at symbols * fix: import the updated ui module from the front package to the chrome extension package to prevent eslint rules from breaking subject to the recent merged changes into main * fix: commit the case change for files that were missed by Git in the earlier commits due to default configuration
23 lines
707 B
JSON
23 lines
707 B
JSON
{
|
|
"name": "twenty-chrome-extension",
|
|
"description": "",
|
|
"private": true,
|
|
"version": "0.0.1",
|
|
"type": "module",
|
|
"scripts": {
|
|
"nx": "NX_DEFAULT_PROJECT=twenty-chrome-extension node ../../node_modules/nx/bin/nx.js",
|
|
"clean": "rimraf ./dist",
|
|
"start": "yarn clean && vite",
|
|
"build": "yarn clean && tsc && vite build",
|
|
"lint": "eslint . --report-unused-disable-directives --max-warnings 0 --config .eslintrc.cjs",
|
|
"fmt": "prettier --check \"src/**/*.ts\" \"src/**/*.tsx\"",
|
|
"fmt:fix": "prettier --cache --write \"src/**/*.ts\" \"src/**/*.tsx\""
|
|
},
|
|
"dependencies": {
|
|
"@types/chrome": "^0.0.256"
|
|
},
|
|
"devDependencies": {
|
|
"@crxjs/vite-plugin": "^1.0.14"
|
|
}
|
|
}
|