Skip to content

Commit

Permalink
chore: a lot of things ...
Browse files Browse the repository at this point in the history
  • Loading branch information
pivanov committed Dec 12, 2024
1 parent 2376f0e commit f105806
Show file tree
Hide file tree
Showing 63 changed files with 4,323 additions and 1,564 deletions.
33 changes: 26 additions & 7 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
const { resolve } = require('node:path');

const project = resolve(__dirname, 'tsconfig.json');

module.exports = {
root: true,
extends: [
require.resolve('@vercel/style-guide/eslint/node'),
require.resolve('@vercel/style-guide/eslint/browser'),
require.resolve('@vercel/style-guide/eslint/typescript'),
'plugin:tailwindcss/recommended',
],
ignorePatterns: ['**/dist/*', '**/test/*'],
ignorePatterns: ['**/dist/**', '**/node_modules/**', '**/test/**'],
parserOptions: {
project,
project: [
resolve(__dirname, 'tsconfig.json'), // Root tsconfig
resolve(__dirname, 'packages/scan/tsconfig.json'), // Scan package tsconfig
],
ecmaVersion: 2020,
sourceType: 'module',
},
rules: {
'@typescript-eslint/explicit-function-return-type': 'off',
Expand Down Expand Up @@ -39,7 +43,6 @@ module.exports = {
'@typescript-eslint/no-unnecessary-condition': 'off',
'@typescript-eslint/no-confusing-void-expression': 'off',
'@typescript-eslint/require-await': 'off',
// '@typescript-eslint/no-floating-promises': ['error'],
'import/no-named-as-default': 'off',
'no-implicit-coercion': 'off',
'@typescript-eslint/no-redundant-type-constituents': 'off',
Expand All @@ -48,15 +51,31 @@ module.exports = {
'no-useless-return': 'off',
'func-names': 'off',
'@typescript-eslint/prefer-for-of': 'off',
// 'no-implicit-coercion': 'off',
'@typescript-eslint/restrict-template-expressions': 'off',
'@typescript-eslint/array-type': ['error', { default: 'generic' }],
},
settings: {
'import/resolver': {
typescript: {
project,
project: [
resolve(__dirname, 'tsconfig.json'), // Root tsconfig
resolve(__dirname, 'packages/scan/tsconfig.json'), // Scan package tsconfig
],
},
},
},
overrides: [
{
files: ['*.json'],
parser: 'jsonc-eslint-parser',
plugins: ['jsonc'],
rules: {
'jsonc/no-comments': 'off',
},
},
{
files: ['*.tsx', '*.ts', '*.js'],
plugins: ['tailwindcss'],
},
],
};
6 changes: 6 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"typescript.tsdk": "node_modules/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true,
"typescript.preferences.importModuleSpecifier": "non-relative",
"typescript.preferences.includePackageJsonAutoImports": "on"
}
9 changes: 8 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,16 @@
"eslint:fix": "eslint --fix packages/*"
},
"devDependencies": {
"@types/node": "^22.10.2",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"@vercel/style-guide": "^6.0.0",
"eslint": "^8.57.1",
"prettier": "^3.3.3"
"eslint-import-resolver-typescript": "^3.7.0",
"eslint-plugin-jsonc": "^2.18.2",
"eslint-plugin-tailwindcss": "^3.17.5",
"prettier": "^3.3.3",
"typescript": "5.4.5"
},
"packageManager": "[email protected]",
"dependencies": {
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
1 change: 0 additions & 1 deletion packages/extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
"@vitejs/plugin-react": "^4.2.1",
"bestzip": "^2.2.1",
"cross-env": "^7.0.3",
"typescript": "~5.6.3",
"vite": "^5.4.3",
"vite-plugin-web-extension": "^4.3.1",
"webextension-polyfill": "^0.10.0"
Expand Down
Loading

0 comments on commit f105806

Please sign in to comment.