Skip to content

Commit 229ad53

Browse files
committed
chore(lint): ignore test files for lint-staged
1 parent eea39da commit 229ad53

File tree

9 files changed

+54
-9
lines changed

9 files changed

+54
-9
lines changed

packages/@ionic/cli-framework/package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,12 @@
1919
"precommit": "lint-staged"
2020
},
2121
"lint-staged": {
22-
"*.{ts,tsx}": "npm run lint"
22+
"linters": {
23+
"*.{ts,tsx}": "npm run lint"
24+
},
25+
"ignore": [
26+
"**/__tests__/*.{ts,tsx}"
27+
]
2328
},
2429
"license": "MIT",
2530
"dependencies": {

packages/@ionic/cli-utils/package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,12 @@
1616
"precommit": "lint-staged"
1717
},
1818
"lint-staged": {
19-
"*.{ts,tsx}": "npm run lint"
19+
"linters": {
20+
"*.{ts,tsx}": "npm run lint"
21+
},
22+
"ignore": [
23+
"**/__tests__/*.{ts,tsx}"
24+
]
2025
},
2126
"keywords": [
2227
"ionic",

packages/@ionic/discover/package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,12 @@
2929
"precommit": "lint-staged"
3030
},
3131
"lint-staged": {
32-
"*.{ts,tsx}": "npm run lint"
32+
"linters": {
33+
"*.{ts,tsx}": "npm run lint"
34+
},
35+
"ignore": [
36+
"**/__tests__/*.{ts,tsx}"
37+
]
3338
},
3439
"dependencies": {
3540
"debug": "^3.1.0",

packages/@ionic/lab/package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,12 @@
3939
"precommit": "lint-staged"
4040
},
4141
"lint-staged": {
42-
"*.{ts,tsx}": "npm run lint"
42+
"linters": {
43+
"*.{ts,tsx}": "npm run lint"
44+
},
45+
"ignore": [
46+
"**/__tests__/*.{ts,tsx}"
47+
]
4348
},
4449
"dependencies": {
4550
"@ionic/cli-framework": "1.0.1",

packages/@ionic/ng-toolkit/package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,12 @@
3434
"precommit": "lint-staged"
3535
},
3636
"lint-staged": {
37-
"*.{ts,tsx}": "npm run lint"
37+
"linters": {
38+
"*.{ts,tsx}": "npm run lint"
39+
},
40+
"ignore": [
41+
"**/__tests__/*.{ts,tsx}"
42+
]
3843
},
3944
"dependencies": {
4045
"@ionic/cli-framework": "1.0.1",

packages/@ionic/schematics-angular/package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,12 @@
1313
"precommit": "lint-staged"
1414
},
1515
"lint-staged": {
16-
"*.{ts,tsx}": "npm run lint"
16+
"linters": {
17+
"*.{ts,tsx}": "npm run lint"
18+
},
19+
"ignore": [
20+
"**/__tests__/*.{ts,tsx}"
21+
]
1722
},
1823
"keywords": [
1924
"blueprints",

packages/@ionic/v1-toolkit/package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,12 @@
3434
"precommit": "lint-staged"
3535
},
3636
"lint-staged": {
37-
"*.{ts,tsx}": "npm run lint"
37+
"linters": {
38+
"*.{ts,tsx}": "npm run lint"
39+
},
40+
"ignore": [
41+
"**/__tests__/*.{ts,tsx}"
42+
]
3843
},
3944
"dependencies": {
4045
"@ionic/cli-framework": "1.0.1",

packages/cli-scripts/package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,12 @@
1515
"precommit": "lint-staged"
1616
},
1717
"lint-staged": {
18-
"*.{ts,tsx}": "npm run lint"
18+
"linters": {
19+
"*.{ts,tsx}": "npm run lint"
20+
},
21+
"ignore": [
22+
"**/__tests__/*.{ts,tsx}"
23+
]
1924
},
2025
"main": "./dist/index.js",
2126
"types": "./dist/index.d.ts",

packages/ionic/package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,12 @@
2222
"precommit": "lint-staged"
2323
},
2424
"lint-staged": {
25-
"*.{ts,tsx}": "npm run lint"
25+
"linters": {
26+
"*.{ts,tsx}": "npm run lint"
27+
},
28+
"ignore": [
29+
"**/__tests__/*.{ts,tsx}"
30+
]
2631
},
2732
"files": [
2833
"bin/",

0 commit comments

Comments
 (0)