Skip to content

Commit 0d968c0

Browse files
committed
chore: simplify/align configs
1 parent 5ecbbe5 commit 0d968c0

82 files changed

Lines changed: 242 additions & 216 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.lintstagedrc.yml

Lines changed: 0 additions & 5 deletions
This file was deleted.

.prettierignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.prettierrc.yml

Lines changed: 0 additions & 5 deletions
This file was deleted.

lint-staged.config.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/**
2+
* @see https://github.com/lint-staged/lint-staged?tab=readme-ov-file#typescript
3+
* @type { import('lint-staged').Configuration }
4+
*/
5+
const config = {
6+
'package.json': ['npx sort-package-json'],
7+
'*': ['npx prettier --write --ignore-unknown'],
8+
}
9+
10+
export default config

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
"build:lint:ci": "lerna run build --scope @shiftcode/eslint-plugin-rules && lerna run build --scope @shiftcode/eslint-config-recommended",
1414
"format": "prettier --write .",
1515
"format:ci": "prettier --check .",
16-
"format:staged": "prettier --write --ignore-unknown",
1716
"lint:ci": "lerna run lint:ci",
1817
"prepare": "husky",
1918
"publish-libs": "node packages/publish-helper/dist/publish-lib",

packages/airtable-mapper/.lintstagedrc.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.
File renamed without changes.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/**
2+
* @see https://github.com/lint-staged/lint-staged?tab=readme-ov-file#typescript
3+
* @type { import('lint-staged').Configuration }
4+
*/
5+
const config = {
6+
'package.json': ['npx sort-package-json'],
7+
'*': ['eslint --fix --cache', 'npx prettier --write --ignore-unknown'],
8+
}
9+
10+
export default config

packages/airtable-mapper/package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,10 @@
1414
}
1515
},
1616
"scripts": {
17-
"prebuild": "rm -rf ./dist",
18-
"build": "tsc",
19-
"lint": "eslint --fix --cache ./src",
20-
"lint:ci": "eslint ./src",
21-
"lint:staged": "eslint --fix --cache",
17+
"build": "rm -rf ./dist && tsc",
18+
"format": "prettier --write .",
19+
"lint": "eslint --fix --cache .",
20+
"lint:ci": "eslint .",
2221
"prepublish": "node ../publish-helper/dist/prepare-dist.js",
2322
"test": "vitest --cache --run",
2423
"test:ci": "vitest --no-cache --run --passWithNoTests",

packages/airtable-mapper/tsconfig.lint.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
"types": ["node"],
66
"paths": {}
77
},
8-
"include": ["src/**/*.ts", "test/**/*.ts"],
8+
"include": ["**/*.ts"],
99
"exclude": []
1010
}

0 commit comments

Comments
 (0)