Skip to content

Commit

Permalink
fix(572): fix webpack warnings + fix linting issues (CodeForPhilly#574)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
paulhchoi authored Apr 22, 2024
1 parent 3cebf75 commit fbfd459
Show file tree
Hide file tree
Showing 17 changed files with 2,371 additions and 348 deletions.
19 changes: 11 additions & 8 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,17 @@
"sourceType": "module",
"project": "./tsconfig.json"
},
"plugins": [
"eslint-plugin-custom-rules"
],
"extends": ["next/core-web-vitals", "plugin:react/recommended", "prettier"],
"rules": {
"react/react-in-jsx-scope": "off",
"react/prop-types": "off",
"custom-rules/no-text-size-class": "warn"
},
"ignorePatterns": [
"next.config.js",
"postcss.config.js"
]
}
"plugins": ["react", "eslint-plugin-custom-rules"],
"settings": {
"react": {
"version": "detect"
}
},
"ignorePatterns": ["next.config.js", "postcss.config.js"]
}
Loading

0 comments on commit fbfd459

Please sign in to comment.