Skip to content

Commit d949c81

Browse files
committed
feat: update eslintrc
1 parent 722c764 commit d949c81

3 files changed

Lines changed: 5 additions & 8 deletions

File tree

.eslintrc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
{
22
"parser": "@typescript-eslint/parser",
3-
"parserOptions": {
4-
"project": "./tsconfig.json"
5-
},
63
"env": {
74
"jest": true,
85
"browser": true

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pri",
3-
"version": "3.3.28-beta.19",
3+
"version": "3.3.28-beta.20",
44
"types": "src/node/index.ts",
55
"main": "built/node/index.js",
66
"scripts": {

src/built-in-plugins/project-analyse-pages/plugin/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@ pri.project.onAnalyseProject(files => {
9393
const componentFile = files.find(file => {
9494
const relativePath = path.relative(pri.projectRootPath, path.join(file.dir, file.name));
9595
return (
96-
(route.component === relativePath && !file.isDir && ['.tsx', '.md', '.mdx'].indexOf(file.ext) > -1)
97-
|| (path.join(route.component, 'index') === relativePath
98-
&& !file.isDir
99-
&& ['.tsx', '.md', '.mdx'].indexOf(file.ext) > -1)
96+
(route.component === relativePath && !file.isDir && ['.tsx', '.md', '.mdx'].indexOf(file.ext) > -1) ||
97+
(path.join(route.component, 'index') === relativePath &&
98+
!file.isDir &&
99+
['.tsx', '.md', '.mdx'].indexOf(file.ext) > -1)
100100
);
101101
});
102102

0 commit comments

Comments
 (0)