Skip to content

Commit fbfd459

Browse files
authored
fix(572): fix webpack warnings + fix linting issues (#574)
* add postcss import and nesting rules to silence buildlog errors * fix custom eslint and add defaults * fix all linting issues * refactor map functions to fix hook rules
1 parent 3cebf75 commit fbfd459

File tree

17 files changed

+2371
-348
lines changed

17 files changed

+2371
-348
lines changed

.eslintrc.json

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,17 @@
55
"sourceType": "module",
66
"project": "./tsconfig.json"
77
},
8-
"plugins": [
9-
"eslint-plugin-custom-rules"
10-
],
8+
"extends": ["next/core-web-vitals", "plugin:react/recommended", "prettier"],
119
"rules": {
10+
"react/react-in-jsx-scope": "off",
11+
"react/prop-types": "off",
1212
"custom-rules/no-text-size-class": "warn"
1313
},
14-
"ignorePatterns": [
15-
"next.config.js",
16-
"postcss.config.js"
17-
]
18-
}
14+
"plugins": ["react", "eslint-plugin-custom-rules"],
15+
"settings": {
16+
"react": {
17+
"version": "detect"
18+
}
19+
},
20+
"ignorePatterns": ["next.config.js", "postcss.config.js"]
21+
}

0 commit comments

Comments
 (0)