Skip to content

Commit

Permalink
fix prettier, remove dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamcrackers committed Sep 23, 2024
1 parent faceaec commit a21d352
Show file tree
Hide file tree
Showing 3 changed files with 243 additions and 855 deletions.
21 changes: 13 additions & 8 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,15 @@ module.exports = {
TEST_URL: true,
},
extends: [
"eslint:recommended",
// "eslint:recommended",
"plugin:preact/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"preact",
"prettier",
// "plugin:@typescript-eslint/eslint-recommended",
// "preact",
"plugin:storybook/recommended",
"plugin:prettier/recommended", // should always be last
],
plugins: ["jest", "prettier", "simple-import-sort", "@typescript-eslint"],
plugins: ["jest", "simple-import-sort", "@typescript-eslint"],
rules: {
"no-console": ["error"],
"react/prop-types": 0,
Expand Down Expand Up @@ -77,7 +78,11 @@ module.exports = {
},
},
],


ignorePatterns: ["dist/", "config/"],
ignorePatterns: [
"node_modules",
"dist",
"config",
"**/*.test.ts",
"**/*.test.tsx"
],
};
35 changes: 13 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,17 @@
},
"scripts": {
"dev": "vite",
"build": "webpack --config webpack.prod.js",
"build:dev": "webpack --config webpack.dev.js",
"build": "tsc -b && vite build",
"build:dev": "tsc -b && vite build --mode dev",
"preview": "vite preview",
"lint": "eslint . --report-unused-disable-directives --max-warnings 0",
"format": "prettier **/*.{ts,tsx,json,md} --write",
"build:webpack": "webpack --config webpack.prod.js",
"build:webpack:dev": "webpack --config webpack.dev.js",
"dev:old": "webpack-dev-server --config webpack.dev.js",
"tailwind:build": "npx tailwindcss -i ./src/styles/tokens.css -o ./src/styles/index.css",
"storybook": "npx tailwindcss -i ./src/styles/tokens.css -o ./src/styles/index.css; storybook dev -p 6006",
"lint": "eslint '*/**/*.{ts,tsx}'",
"lint:old": "eslint '*/**/*.{ts,tsx}'",
"lint:fix": "eslint '*/**/*.{ts,tsx}' --fix",
"prettier:fix": "prettier 'src/**/*.{ts,tsx,json,md}' --write",
"test": "jest --passWithNoTests --color --silent",
Expand Down Expand Up @@ -57,50 +62,36 @@
"babel-plugin-dynamic-import-node": "^2.3.3",
"babel-plugin-istanbul": "^6.1.1",
"babel-plugin-tsconfig-paths": "^1.0.3",
"clean-webpack-plugin": "^4.0.0",
"cross-env": "^7.0.3",
"css-loader": "^6.8.1",
"cssnano": "^6.0.1",
"eslint": "^8.50.0",
"eslint-config-preact": "^1.3.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-cypress": "^2.15.1",
"eslint-plugin-jest": "^27.4.2",
"eslint-plugin-preact": "^0.1.0",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-simple-import-sort": "^10.0.0",
"eslint-plugin-storybook": "^0.6.14",
"fork-ts-checker-webpack-plugin": "^8.0.0",
"identity-obj-proxy": "^3.0.0",
"jest": "^29.7.0",
"jest-preset-preact": "^4.1.0",
"jest-styled-components": "^7.1.1",
"jest-transformer-svg": "^2.0.1",
"postcss": "^8.4.47",
"postcss-import": "^16.1.0",
"postcss-loader": "^7.3.3",
"preact-render-to-string": "5.2.6",
"preact-svg-loader": "^0.2.1",
"prettier": "^3.3.3",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rimraf": "^5.0.5",
"source-map-support": "^0.5.21",
"storybook": "^7.4.5",
"style-loader": "^3.3.3",
"styled-components": "^6.0.8",
"tailwindcss": "^3.4.12",
"terser-webpack-plugin": "^5.3.9",
"ts-jest": "^29.1.1",
"ts-loader": "^9.4.4",
"tsconfig-paths": "^4.2.0",
"tsconfig-paths-webpack-plugin": "^4.1.0",
"typescript": "^5.2.2",
"typescript-plugin-styled-components": "^3.0.0",
"typescript": "^5.6.2",
"vite": "^5.4.7",
"vite-plugin-svgr": "^4.2.0",
"webpack": "^5.88.2",
"webpack-bundle-analyzer": "^4.9.1",
"webpack-cli": "^5.1.4",
"webpack-dev-middleware": "^6.1.1",
"webpack-dev-server": "^4.15.1",
"yargs": "~17.7.2"
"vite-plugin-svgr": "^4.2.0"
}
}
Loading

0 comments on commit a21d352

Please sign in to comment.