Skip to content

Commit b54b149

Browse files
committed
Add eslint/tsc to postcss custom plugins
1 parent b9fbc69 commit b54b149

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.eslintrc.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ module.exports = {
6060
},
6161
},
6262
{
63-
files: ['.eslintrc.js', '*.config.{js,ts}'],
63+
files: ['.eslintrc.js', '*.config.{js,ts}', 'postcss/*.js'],
6464
parserOptions: {
6565
sourceType: 'script',
6666
ecmaVersion: 2015,
@@ -69,6 +69,9 @@ module.exports = {
6969
browser: false,
7070
node: true,
7171
},
72+
rules: {
73+
'@typescript-eslint/no-var-requires': 'off',
74+
},
7275
},
7376
],
7477
};

tsconfig.node.json

+8-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,14 @@
33
"composite": true,
44
"module": "esnext",
55
"moduleResolution": "node",
6+
"allowJs": true,
7+
"checkJs": true,
68
"allowSyntheticDefaultImports": true
79
},
8-
"include": ["vite.config.ts", "rollup/imageMetadataPlugin.ts"]
10+
"include": [
11+
"vite.config.ts",
12+
"rollup/imageMetadataPlugin.ts",
13+
"postcss/resolveLocalCustomProperties.js",
14+
"postcss/validateThemeVariables.js"
15+
]
916
}

0 commit comments

Comments
 (0)