Skip to content

Commit

Permalink
chore(lint-staged): normalize source to live under /src
Browse files Browse the repository at this point in the history
  • Loading branch information
Hotell committed May 28, 2024
1 parent 10f44e9 commit bfe62d7
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lint-staged.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const commands = {
* - respect ignore files (which eslint doesn't do by default when passed a specific file path)
* - match the set of files that are linted by the package's normal `lint` command
*/
lint: 'node ./scripts/lint-staged/eslint',
lint: 'node ./scripts/lint-staged/src/eslint',
};

// https://www.npmjs.com/package/lint-staged
Expand Down
2 changes: 1 addition & 1 deletion scripts/lint-staged/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"format": "prettier -w --ignore-path ../../.prettierignore .",
"format:check": "yarn format -c",
"lint": "eslint --ext .ts,.js .",
"lint": "eslint --ext .ts,.js ./src",
"test": "jest --passWithNoTests",
"type-check": "just-scripts type-check"
},
Expand Down
2 changes: 1 addition & 1 deletion scripts/lint-staged/project.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@fluentui/scripts-lint-staged",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "scripts/lint-staged",
"sourceRoot": "scripts/lint-staged/src",
"projectType": "library",
"tags": ["tools"]
}
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion scripts/lint-staged/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
"types": ["node"]
},
"exclude": ["**/*.spec.ts", "**/*.test.ts"],
"include": ["./**/*.ts", "./**/*.js"]
"include": ["./src/**/*.ts", "./src/**/*.js"]
}
2 changes: 1 addition & 1 deletion scripts/monorepo/src/eslint-constants.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** Constants used by the eslint task and scripts/lint-staged/eslint-for-package.js */
/** Constants used by the eslint task and {@link file://./../../lint-staged/src/eslint-for-package.js } */
module.exports = {
/** List of file extensions to lint, in format used by eslint (comma-separated, with leading .) */
extensions: '.ts,.tsx,.js,.jsx',
Expand Down

0 comments on commit bfe62d7

Please sign in to comment.