Skip to content

Commit 8583333

Browse files
authored
chore: update dependencies (#255)
1 parent 80d1361 commit 8583333

File tree

9 files changed

+2103
-2128
lines changed

9 files changed

+2103
-2128
lines changed

.eslintrc

+9-5
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,18 @@
22
"extends": [
33
"eslint:recommended",
44
"prettier",
5-
"plugin:@typescript-eslint/recommended",
6-
"plugin:@typescript-eslint/recommended-requiring-type-checking",
7-
"plugin:@typescript-eslint/strict"
5+
"plugin:@typescript-eslint/recommended-type-checked",
6+
"plugin:@typescript-eslint/stylistic-type-checked",
7+
"plugin:@typescript-eslint/strict-type-checked",
88
],
99
"root": true,
1010
"parser": "@typescript-eslint/parser",
1111
"parserOptions": {
12-
"project": ["./tsconfig.json"]
12+
"project": ["./tsconfig.json"],
1313
},
14-
"ignorePatterns": ["dist", "jest.config.js", "src/helpers/__tests__/fixtures"]
14+
"ignorePatterns": [
15+
"dist",
16+
"jest.config.js",
17+
"src/helpers/__tests__/fixtures",
18+
],
1519
}

README.md

+14-14
Original file line numberDiff line numberDiff line change
@@ -97,20 +97,20 @@ const b = styles['my_other-class'];
9797

9898
Please note that no options are required. However, depending on your configuration, you may need to customise these options.
9999

100-
| Option | Default value | Description |
101-
| -------------------------- | ---------------------------------- | ------------------------------------------------------------------------------ |
102-
| `additionalData` | `undefined` | An optional string to append to the top of source files. |
103-
| `allowUnknownClassnames` | `false` | Disables TypeScript warnings on unknown classnames (for default imports only). |
104-
| `classnameTransform` | `"asIs"` | See [`classnameTransform`](#classnameTransform) below. |
105-
| `customMatcher` | `"\\.module\\.(c\|le\|sa\|sc)ss$"` | Changes the file extensions that this plugin processes. |
106-
| `customRenderer` | `false` | See [`customRenderer`](#customRenderer) below. |
107-
| `customTemplate` | `false` | See [`customTemplate`](#customTemplate) below. |
108-
| `goToDefinition` | `false` | Enables jump to definition. See [`goToDefinition`](#goToDefinition) below. |
109-
| `noUncheckedIndexedAccess` | `false` | Enable for compatibility with TypeScript's `noUncheckedIndexedAccess`. |
110-
| `namedExports` | `true` | Enables named exports for compatible classnames. |
111-
| `dotenvOptions` | `{}` | Provides options for [`dotenv`](https://github.com/motdotla/dotenv#options). |
112-
| `postcssOptions` | `{}` | See [`postcssOptions`](#postcssOptions) below. |
113-
| `rendererOptions` | `{}` | See [`rendererOptions`](#rendererOptions) below. |
100+
| Option | Default value | Description |
101+
| -------------------------- | ---------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
102+
| `additionalData` | `undefined` | An optional string to append to the top of source files. |
103+
| `allowUnknownClassnames` | `false` | Disables TypeScript warnings on unknown classnames (for default imports only). |
104+
| `classnameTransform` | `"asIs"` | See [`classnameTransform`](#classnameTransform) below. |
105+
| `customMatcher` | `"\\.module\\.(c\|le\|sa\|sc)ss$"` | Changes the file extensions that this plugin processes. |
106+
| `customRenderer` | `false` | See [`customRenderer`](#customRenderer) below. |
107+
| `customTemplate` | `false` | See [`customTemplate`](#customTemplate) below. |
108+
| `goToDefinition` | `false` | Enables jump to definition. See [`goToDefinition`](#goToDefinition) below. |
109+
| `noUncheckedIndexedAccess` | `false` | Enable for compatibility with TypeScript's `noUncheckedIndexedAccess`. |
110+
| `namedExports` | `true` | Enables named exports for compatible classnames. |
111+
| `dotenvOptions` | `{}` | Provides options for [`dotenv`](https://github.com/motdotla/dotenv#options). Note that this plugin only accepts a `string` value for `path`. |
112+
| `postcssOptions` | `{}` | See [`postcssOptions`](#postcssOptions) below. |
113+
| `rendererOptions` | `{}` | See [`rendererOptions`](#rendererOptions) below. |
114114

115115
```json
116116
{

package.json

+33-34
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"license": "MIT",
77
"description": "CSS modules support for TypeScript",
88
"homepage": "https://github.com/mrmckeb/typescript-plugin-css-modules",
9-
"packageManager": "pnpm@7.18.0",
9+
"packageManager": "pnpm@8.15.1",
1010
"repository": {
1111
"type": "git",
1212
"url": "https://github.com/mrmckeb/typescript-plugin-css-modules"
@@ -27,7 +27,7 @@
2727
],
2828
"scripts": {
2929
"build": "rm -rf ./dist && tsc --project tsconfig.build.json",
30-
"lint": "eslint --max-warnings 0 . && pnpm prettier -c .",
30+
"lint": "eslint --max-warnings 0 . && pnpm tsc && pnpm prettier -c .",
3131
"prepublishOnly": "pnpm build",
3232
"test": "jest",
3333
"prepare": "husky install"
@@ -46,49 +46,48 @@
4646
"trailingComma": "all"
4747
},
4848
"dependencies": {
49-
"@types/postcss-modules-local-by-default": "^4.0.0",
50-
"@types/postcss-modules-scope": "^3.0.1",
51-
"dotenv": "^16.0.3",
49+
"@types/postcss-modules-local-by-default": "^4.0.2",
50+
"@types/postcss-modules-scope": "^3.0.4",
51+
"dotenv": "^16.4.2",
5252
"icss-utils": "^5.1.0",
53-
"less": "^4.1.3",
53+
"less": "^4.2.0",
5454
"lodash.camelcase": "^4.3.0",
55-
"postcss": "^8.4.21",
55+
"postcss": "^8.4.35",
5656
"postcss-load-config": "^3.1.4",
5757
"postcss-modules-extract-imports": "^3.0.0",
58-
"postcss-modules-local-by-default": "^4.0.0",
59-
"postcss-modules-scope": "^3.0.0",
58+
"postcss-modules-local-by-default": "^4.0.4",
59+
"postcss-modules-scope": "^3.1.1",
6060
"reserved-words": "^0.1.2",
61-
"sass": "^1.58.3",
61+
"sass": "^1.70.0",
6262
"source-map-js": "^1.0.2",
63-
"stylus": "^0.59.0",
64-
"tsconfig-paths": "^4.1.2"
63+
"stylus": "^0.62.0",
64+
"tsconfig-paths": "^4.2.0"
6565
},
6666
"devDependencies": {
67-
"@types/icss-utils": "^5.1.0",
68-
"@types/jest": "^29.4.0",
69-
"@types/less": "^3.0.3",
70-
"@types/lodash.camelcase": "^4.3.7",
71-
"@types/node": "^18.14.0",
72-
"@types/postcss-modules-extract-imports": "^3.0.2",
73-
"@types/reserved-words": "^0.1.0",
74-
"@types/sass": "^1.43.1",
75-
"@types/stylus": "^0.48.38",
76-
"@typescript-eslint/eslint-plugin": "^5.52.0",
77-
"@typescript-eslint/parser": "^5.52.0",
78-
"bootstrap": "^5.2.3",
79-
"eslint": "^8.34.0",
80-
"eslint-config-prettier": "^8.6.0",
81-
"husky": "^8.0.3",
82-
"jest": "^29.4.3",
83-
"jest-environment-node-single-context": "^29.0.0",
84-
"lint-staged": "^13.1.2",
67+
"@types/icss-utils": "^5.1.2",
68+
"@types/jest": "^29.5.12",
69+
"@types/less": "^3.0.6",
70+
"@types/lodash.camelcase": "^4.3.9",
71+
"@types/node": "^18.19.15",
72+
"@types/postcss-modules-extract-imports": "^3.0.5",
73+
"@types/reserved-words": "^0.1.4",
74+
"@types/stylus": "^0.48.42",
75+
"@typescript-eslint/eslint-plugin": "^6.21.0",
76+
"@typescript-eslint/parser": "^6.21.0",
77+
"bootstrap": "^5.3.2",
78+
"eslint": "^8.56.0",
79+
"eslint-config-prettier": "^9.1.0",
80+
"husky": "^9.0.10",
81+
"jest": "^29.7.0",
82+
"jest-environment-node-single-context": "^29.4.0",
83+
"lint-staged": "^15.2.2",
8584
"postcss-import-sync2": "^1.2.0",
8685
"postcss-nested": "^4.2.3",
87-
"postcss-preset-env": "^8.0.1",
88-
"prettier": "^2.8.4",
86+
"postcss-preset-env": "^8.5.1",
87+
"prettier": "^3.2.5",
8988
"sass-svg": "^1.2.0",
90-
"ts-jest": "^29.0.5",
91-
"typescript": "5.0.1-rc"
89+
"ts-jest": "^29.1.2",
90+
"typescript": "^5.3.3"
9291
},
9392
"peerDependencies": {
9493
"typescript": ">=4.0.0"

0 commit comments

Comments
 (0)