From 2b95516333ba2516529ff36233d289cf0b7275ea Mon Sep 17 00:00:00 2001 From: Teppo Kurki Date: Wed, 27 Nov 2024 16:41:45 +0200 Subject: [PATCH] chore: use root .eslintrc.js --- .../resources-provider-plugin/.eslintrc.js | 25 ------------------- .../resources-provider-plugin/package.json | 4 +-- packages/server-api/.eslintrc.js | 25 ------------------- packages/server-api/package.json | 4 +-- 4 files changed, 4 insertions(+), 54 deletions(-) delete mode 100644 packages/resources-provider-plugin/.eslintrc.js delete mode 100644 packages/server-api/.eslintrc.js diff --git a/packages/resources-provider-plugin/.eslintrc.js b/packages/resources-provider-plugin/.eslintrc.js deleted file mode 100644 index e6c897780..000000000 --- a/packages/resources-provider-plugin/.eslintrc.js +++ /dev/null @@ -1,25 +0,0 @@ -// eslint-disable-next-line no-undef -module.exports = { - root: true, - extends: ['eslint:recommended', 'prettier'], - parserOptions: { - ecmaVersion: 2019, - sourceType: 'module' - }, - env: { - node: true, - es2019: true - }, - overrides: [ - { - files: ['**/*.ts'], - extends: [ - 'eslint:recommended', - 'plugin:@typescript-eslint/recommended', - 'prettier' - ], - parser: '@typescript-eslint/parser', - plugins: ['@typescript-eslint'] - } - ] -} diff --git a/packages/resources-provider-plugin/package.json b/packages/resources-provider-plugin/package.json index d9c1554ba..e5dff0976 100644 --- a/packages/resources-provider-plugin/package.json +++ b/packages/resources-provider-plugin/package.json @@ -26,9 +26,9 @@ "build-declaration": "tsc --declaration --allowJs false", "watch": "npm run build -- -w", "prettier": "prettier -w src/", - "lint": "eslint -c .eslintrc.js --ext .ts --ext .js --fix src/", + "lint": "eslint --ext .ts --ext .js --fix src/", "format": "npm run prettier && npm run lint", - "ci-lint": "eslint -c .eslintrc.js --ext .ts --ext .js src/ && prettier --check src/", + "ci-lint": "eslint --ext .ts --ext .js src/ && prettier --check src/", "prepublishOnly": "npm run build && npm run build-declaration", "test": "npm run build && npm run build-declaration && npm run ci-lint" }, diff --git a/packages/server-api/.eslintrc.js b/packages/server-api/.eslintrc.js deleted file mode 100644 index e6c897780..000000000 --- a/packages/server-api/.eslintrc.js +++ /dev/null @@ -1,25 +0,0 @@ -// eslint-disable-next-line no-undef -module.exports = { - root: true, - extends: ['eslint:recommended', 'prettier'], - parserOptions: { - ecmaVersion: 2019, - sourceType: 'module' - }, - env: { - node: true, - es2019: true - }, - overrides: [ - { - files: ['**/*.ts'], - extends: [ - 'eslint:recommended', - 'plugin:@typescript-eslint/recommended', - 'prettier' - ], - parser: '@typescript-eslint/parser', - plugins: ['@typescript-eslint'] - } - ] -} diff --git a/packages/server-api/package.json b/packages/server-api/package.json index 4837e0351..8dd4fe513 100644 --- a/packages/server-api/package.json +++ b/packages/server-api/package.json @@ -10,9 +10,9 @@ "prepublishOnly": "npm run build", "typedoc": "typedoc --out docs src", "prettier": "prettier -w src/", - "lint": "eslint -c .eslintrc.js --ext .ts --ext .js --fix src/", + "lint": "eslint --ext .ts --ext .js --fix src/", "format": "npm run prettier && npm run lint", - "ci-lint": "eslint -c .eslintrc.js --ext .ts --ext .js src/ && prettier --check src/", + "ci-lint": "eslint --ext .ts --ext .js src/ && prettier --check src/", "test": "mocha --require ts-node/register src/**/*.test.ts && npm run ci-lint" }, "repository": {