|
19 | 19 | "custom-elements"
|
20 | 20 | ],
|
21 | 21 | "scripts": {
|
22 |
| - "lint:eslint": "eslint --ext .ts,.html . --ignore-path .gitignore", |
23 |
| - "format:eslint": "eslint --ext .ts,.html . --fix --ignore-path .gitignore", |
24 |
| - "lint:prettier": "prettier \"**/*.js\" \"**/*.ts\" --check --ignore-path .gitignore", |
25 |
| - "format:prettier": "prettier \"**/*.js\" \"**/*.ts\" --write --ignore-path .gitignore", |
| 22 | + "lint:eslint": "eslint --ext .ts,.html,.mjs,.cjs . --ignore-path .gitignore", |
| 23 | + "format:eslint": "eslint --ext .ts,.html,.mjs,.cjs . --fix --ignore-path .gitignore", |
| 24 | + "lint:prettier": "prettier \"**/*.js\" \"**/*.ts\" \"**/*.mjs\" --check --ignore-path .gitignore", |
| 25 | + "format:prettier": "prettier \"**/*.js\" \"**/*.ts\" \"**/*.mjs\" --write --ignore-path .gitignore", |
26 | 26 | "lint": "npm run lint:eslint && npm run lint:prettier",
|
27 | 27 | "format": "npm run format:eslint && npm run format:prettier",
|
28 | 28 | "storybook": "npm run bootstrap && npm run storybook:analyze && start-storybook -p 6006 -s ./.storybook/images",
|
|
113 | 113 | "./packages/*"
|
114 | 114 | ],
|
115 | 115 | "lint-staged": {
|
116 |
| - "**/*.ts": "tsc-files --project tsconfig-lint-staged.json", |
117 |
| - "**/*.{mjs}": "eslint --cache --fix -c .eslintrc.js", |
| 116 | + "*.ts": "tsc-files --project tsconfig-lint-staged.json", |
| 117 | + "*.{js,ts,mjs,cjs,html}": "eslint --cache --fix -c .eslintrc.js", |
118 | 118 | "*": "prettier --ignore-unknown --write"
|
119 | 119 | }
|
120 | 120 | }
|
0 commit comments