Skip to content

Commit 637891a

Browse files
authored
Fail CI on ESLint warnings (#2807)
1 parent 0b3544d commit 637891a

10 files changed

Lines changed: 10 additions & 9 deletions

File tree

.prettierignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
/**/test-results/
66
/**/bin/
77
/**/build/
8+
/**/generated/
89

910
*.md
1011
*.html
@@ -19,4 +20,3 @@ package-lock.json
1920
Localize/out/
2021
Localize/packages/
2122
/**/resources/
22-
packages/arm-batch-rest/src/generated/

packages/arm-batch-rest/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"clean:esm": "bux rmrf ./lib",
4141
"clean:cjs": "bux rmrf ./lib-cjs",
4242
"generate:client": "autorest --typescript swagger/README.md",
43-
"lint": "eslint",
43+
"lint": "eslint . --max-warnings 0",
4444
"test": "jest",
4545
"test:all": "npm run test:coverage",
4646
"test:coverage": "jest --collect-coverage",

packages/bonito-core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"test:all": "npm run test:coverage",
3232
"test:debug": "node --inspect-brk ./node_modules/.bin/jest --runInBand --watch",
3333
"test:watch": "jest --watch",
34-
"lint": "eslint .",
34+
"lint": "eslint . --max-warnings 0",
3535
"watch": "run-p \"compile:* -- --watch --preserveWatchOutput\"",
3636
"workspace:build": "npm run build",
3737
"workspace:build:clean": "npm run build:clean",

packages/bonito-ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"test:watch": "jest --watch",
3434
"test:a11y": "cross-env BE_ENABLE_A11Y_TESTING=true npm run test",
3535
"test:a11y:watch": "cross-env BE_ENABLE_A11Y_TESTING=true npm run test:watch",
36-
"lint": "eslint .",
36+
"lint": "eslint . --max-warnings 0",
3737
"watch": "run-p \"compile:* -- --watch --preserveWatchOutput\"",
3838
"workspace:build": "npm run build",
3939
"workspace:build:clean": "npm run build:clean",

packages/playground/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"test:all": "cross-env BE_ENABLE_A11Y_TESTING=true npm run test:coverage",
3333
"test:debug": "node --inspect-brk ./node_modules/.bin/jest --runInBand --watch",
3434
"test:watch": "jest --watch",
35-
"lint": "eslint .",
35+
"lint": "eslint . --max-warnings 0",
3636
"watch": "run-p \"compile:* -- --watch --preserveWatchOutput\"",
3737
"workspace:watch:lib": "npm run watch",
3838
"workspace:build": "npm run build",

packages/react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"test:watch": "jest --watch",
3535
"test:a11y": "cross-env BE_ENABLE_A11Y_TESTING=true npm run test",
3636
"test:a11y:watch": "cross-env BE_ENABLE_A11Y_TESTING=true npm run test:watch",
37-
"lint": "eslint .",
37+
"lint": "eslint . --max-warnings 0",
3838
"watch": "run-p \"compile:* -- --watch --preserveWatchOutput\"",
3939
"workspace:build": "npm run build",
4040
"workspace:build:clean": "npm run build:clean",

packages/service/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"test:all": "npm run test:coverage",
3232
"test:debug": "node --inspect-brk ./node_modules/.bin/jest --runInBand --watch",
3333
"test:watch": "jest --watch",
34-
"lint": "eslint .",
34+
"lint": "eslint . --max-warnings 0",
3535
"watch": "run-p \"compile:* -- --watch --preserveWatchOutput\"",
3636
"workspace:build": "npm run build",
3737
"workspace:build:clean": "npm run build:clean",

util/bux/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"build": "tsc -b ./config/tsconfig.build.json && node ./bin/bux chmodx ./bin/bux",
2121
"bux": "npm run build && node ./bin/bux",
2222
"clean": "rimraf ./lib && rimraf ./build",
23-
"lint": "eslint .",
23+
"lint": "eslint . --max-warnings 0",
2424
"lint:fix": "npm run lint --fix",
2525
"build:clean": "run-s clean build",
2626
"prepack": "npm run build:clean",

util/common-config/.eslintrc-common.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
],
1515
"ignorePatterns": [
1616
"**/coverage/*",
17+
"**/generated/*",
1718
"**/lib/**/*",
1819
"**/lib-*/**/*",
1920
"**/node_modules/**/*"

web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"test:all": "cross-env BE_ENABLE_A11Y_TESTING=true npm run test:coverage",
3737
"test:debug": "node --inspect-brk ./node_modules/.bin/jest --runInBand --watch",
3838
"test:watch": "jest --watch",
39-
"lint": "eslint .",
39+
"lint": "eslint . --max-warnings 0",
4040
"server": "webpack-dev-server",
4141
"start": "npm run start:dev",
4242
"start:dev": "npm run clean && npm run build-translations && npm run server -- --env dev",

0 commit comments

Comments
 (0)