Skip to content

Commit

Permalink
chore: update linting commands and streamline ESLint configuration ac…
Browse files Browse the repository at this point in the history
…ross multiple packages
  • Loading branch information
Kevin Koech authored and Kevin Koech committed Dec 13, 2024
1 parent 897d7c8 commit 9ae1a66
Show file tree
Hide file tree
Showing 16 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion apps/civicsignalblog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"start": "PAYLOAD_CONFIG_PATH=${PAYLOAD_CONFIG_PATH:-dist/payload.config.js} NODE_ENV=${NODE_ENV:-production} node dist/server.js",
"dev": "NODE_OPTIONS='--inspect --conditions=dev' TS_NODE_PROJECT=tsconfig.server.json tsx server.ts",
"lint-check": "TIMING=1 eslint './'",
"lint": "TIMING=1 eslint --flag unstable_config_lookup_from_file --fix './'",
"lint": "TIMING=1 next lint --fix './'",
"jest": "jest",
"playwright": "npx playwright test",
"clean": "rm -rf .next .turbo build dist node_modules"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import CustomSelectComponent from "#civicsignalblog/payload/components/allowedAppSelect/index";
import CustomSelectComponent from "#civicsignalblog/payload/components/allowedAppSelect";

const CurrentAppSelectField = {
name: "currentApp",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import CustomSelectComponent from "#civicsignalblog/payload/components/allowedAppSelect/index";
import CustomSelectComponent from "#civicsignalblog/payload/components/allowedAppSelect";

const DefaultAppSelectField = {
name: "defaultApp",
Expand Down
2 changes: 1 addition & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = [
settings: {
"import/resolver": {
webpack: {
config: "./eslint.webpack.config.js",
config: "eslint.webpack.config.js",
},
},
next: {
Expand Down
1 change: 1 addition & 0 deletions eslint.webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ module.exports = {
alias: {
"@/charterafrica": path.resolve(__dirname, "apps/charterafrica/src/"),
"@/civicsignalblog": path.resolve(__dirname, "apps/civicsignalblog/src/"),
"#civicsignalblog": path.resolve(__dirname, "apps/civicsignalblog/src/"),
"@/codeforafrica": path.resolve(__dirname, "apps/codeforafrica/src/"),
"@/commons-ui": path.resolve(__dirname, "packages/commons-ui/src/"),
"@/hurumap/core/*": path.resolve(
Expand Down
1 change: 1 addition & 0 deletions packages/commons-ui-core/eslint.webpack.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = {};
1 change: 1 addition & 0 deletions packages/commons-ui-next/eslint.webpack.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = {};
1 change: 1 addition & 0 deletions packages/commons-ui-payload/eslint.webpack.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = {};
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = {};
1 change: 1 addition & 0 deletions packages/eslint-config-commons-ui/eslint.webpack.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = {};
1 change: 1 addition & 0 deletions packages/hurumap-core/eslint.webpack.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = {};
1 change: 1 addition & 0 deletions packages/hurumap-next/eslint.webpack.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = {};
1 change: 1 addition & 0 deletions packages/jest-config-commons-ui/eslint.webpack.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = {};
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = {};
1 change: 0 additions & 1 deletion playwright.config.js
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
/* eslint-disable import/no-extraneous-dependencies */
module.exports = require("playwright-config-commons-ui");

0 comments on commit 9ae1a66

Please sign in to comment.