Skip to content

Commit f7de5af

Browse files
authored
chore: suppress ESLint RC deprecation warnings across packages (#4953)
Adds NODE_OPTIONS='--disable-warning=ESLintRCWarning' to lint scripts across all packages to suppress deprecation warnings when using legacy ESLint configuration. This change eliminates the noisy ESLint RC deprecation warnings that appear during linting while maintaining the existing ESLint configuration setup. --- By submitting this pull request, I confirm that my contribution is made under the terms of the [Apache 2.0 license]. [Apache 2.0 license]: https://www.apache.org/licenses/LICENSE-2.0
1 parent e85e6c4 commit f7de5af

File tree

12 files changed

+12
-12
lines changed

12 files changed

+12
-12
lines changed

packages/@jsii/check-node/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"scripts": {
3030
"build": "tsc --build && yarn lint",
3131
"watch": "tsc --build -w",
32-
"lint": "ESLINT_USE_FLAT_CONFIG=false eslint . --ext .js,.ts --ignore-path=.gitignore",
32+
"lint": "ESLINT_USE_FLAT_CONFIG=false NODE_OPTIONS='--disable-warning=ESLintRCWarning' eslint . --ext .js,.ts --ignore-path=.gitignore",
3333
"lint:fix": "yarn lint --fix",
3434
"test": "jest",
3535
"test:update": "jest -u",

packages/@jsii/kernel/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"scripts": {
2525
"build": "tsc --build && yarn lint",
2626
"watch": "tsc --build -w",
27-
"lint": "ESLINT_USE_FLAT_CONFIG=false eslint . --ext .js,.ts --ignore-path=.gitignore",
27+
"lint": "ESLINT_USE_FLAT_CONFIG=false NODE_OPTIONS='--disable-warning=ESLintRCWarning' eslint . --ext .js,.ts --ignore-path=.gitignore",
2828
"lint:fix": "yarn lint --fix",
2929
"test": "jest",
3030
"test:update": "jest -u",

packages/@jsii/runtime/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"scripts": {
2828
"build": "tsc --build && chmod +x bin/jsii-runtime && npx webpack-cli && yarn lint",
2929
"watch": "tsc --build -w",
30-
"lint": "ESLINT_USE_FLAT_CONFIG=false eslint . --ext .js,.ts --ignore-path=.gitignore --ignore-pattern=webpack.config.js",
30+
"lint": "ESLINT_USE_FLAT_CONFIG=false NODE_OPTIONS='--disable-warning=ESLintRCWarning' eslint . --ext .js,.ts --ignore-path=.gitignore --ignore-pattern=webpack.config.js",
3131
"lint:fix": "yarn lint --fix",
3232
"test": "jest",
3333
"test:update": "jest -u",

packages/@jsii/spec/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"scripts": {
2525
"build": "tsc --build && bash build-tools/generate-json-schema.sh && yarn lint",
2626
"watch": "tsc --build -w",
27-
"lint": "ESLINT_USE_FLAT_CONFIG=false eslint . --ext .js,.ts --ignore-path=.gitignore",
27+
"lint": "ESLINT_USE_FLAT_CONFIG=false NODE_OPTIONS='--disable-warning=ESLintRCWarning' eslint . --ext .js,.ts --ignore-path=.gitignore",
2828
"lint:fix": "yarn lint --fix",
2929
"test": "jest",
3030
"test:update": "jest -u",

packages/codemaker/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"scripts": {
2525
"build": "tsc --build && yarn lint",
2626
"watch": "tsc --build -w",
27-
"lint": "ESLINT_USE_FLAT_CONFIG=false eslint . --ext .js,.ts --ignore-path=.gitignore",
27+
"lint": "ESLINT_USE_FLAT_CONFIG=false NODE_OPTIONS='--disable-warning=ESLintRCWarning' eslint . --ext .js,.ts --ignore-path=.gitignore",
2828
"lint:fix": "yarn lint --fix",
2929
"test": "jest",
3030
"test:update": "jest -u",

packages/jsii-calc/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"scripts": {
3636
"build": "jsii --project-references --silence-warnings reserved-word && yarn lint && jsii-rosetta --compile --verbose",
3737
"watch": "jsii --project-references -w",
38-
"lint": "ESLINT_USE_FLAT_CONFIG=false eslint . --ext .js,.ts --ignore-path=.gitignore",
38+
"lint": "ESLINT_USE_FLAT_CONFIG=false NODE_OPTIONS='--disable-warning=ESLintRCWarning' eslint . --ext .js,.ts --ignore-path=.gitignore",
3939
"lint:fix": "yarn lint --fix",
4040
"test": "(ls test/test.*.js | xargs -n1 node) && diff-test test/assembly.jsii .jsii",
4141
"test:update": "yarn build && UPDATE_DIFF=1 yarn test",

packages/jsii-config/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"build": "tsc --build && yarn lint",
1111
"build+test": "tsc --build && yarn test",
1212
"watch": "tsc --build -w",
13-
"lint": "ESLINT_USE_FLAT_CONFIG=false eslint . --ext .js,.ts --ignore-path=.gitignore --ignore-pattern=test/negatives/*",
13+
"lint": "ESLINT_USE_FLAT_CONFIG=false NODE_OPTIONS='--disable-warning=ESLintRCWarning' eslint . --ext .js,.ts --ignore-path=.gitignore --ignore-pattern=test/negatives/*",
1414
"lint:fix": "yarn lint --fix",
1515
"test": "jest",
1616
"package": "package-js",

packages/jsii-diff/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"scripts": {
2727
"build": "bash ./generate.sh && tsc --build && yarn lint",
2828
"watch": "bash ./generate.sh && tsc --build -w",
29-
"lint": "ESLINT_USE_FLAT_CONFIG=false eslint . --ext .js,.ts --ignore-path=.gitignore",
29+
"lint": "ESLINT_USE_FLAT_CONFIG=false NODE_OPTIONS='--disable-warning=ESLintRCWarning' eslint . --ext .js,.ts --ignore-path=.gitignore",
3030
"lint:fix": "yarn lint --fix",
3131
"test": "jest",
3232
"test:update": "jest -u",

packages/jsii-pacmak/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"gen": "bash generate.sh",
2929
"build": "yarn gen && tsc --build && chmod +x bin/jsii-pacmak && yarn lint",
3030
"watch": "tsc --build -w",
31-
"lint": "ESLINT_USE_FLAT_CONFIG=false eslint . --ext .js,.ts --ignore-path=.gitignore",
31+
"lint": "ESLINT_USE_FLAT_CONFIG=false NODE_OPTIONS='--disable-warning=ESLintRCWarning' eslint . --ext .js,.ts --ignore-path=.gitignore",
3232
"lint:fix": "yarn lint --fix",
3333
"test": "yarn test:unit && yarn test:build",
3434
"test:unit": "jest",

packages/jsii-reflect/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"scripts": {
2828
"build": "tsc --build && chmod +x bin/jsii-tree && yarn lint",
2929
"watch": "tsc --build -w",
30-
"lint": "ESLINT_USE_FLAT_CONFIG=false eslint . --ext .js,.ts --ignore-path=.gitignore",
30+
"lint": "ESLINT_USE_FLAT_CONFIG=false NODE_OPTIONS='--disable-warning=ESLintRCWarning' eslint . --ext .js,.ts --ignore-path=.gitignore",
3131
"lint:fix": "yarn lint --fix",
3232
"test": "jest",
3333
"test:update": "jest -u",

0 commit comments

Comments
 (0)