Skip to content

Commit

Permalink
Fixing linting in all packages
Browse files Browse the repository at this point in the history
  • Loading branch information
kriswest committed Oct 15, 2024
1 parent 34bb063 commit c9cf52b
Show file tree
Hide file tree
Showing 20 changed files with 2,441 additions and 1,183 deletions.
3,189 changes: 2,168 additions & 1,021 deletions package-lock.json

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions packages/fdc3-agent-proxy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,27 +28,27 @@
"@cucumber/cucumber": "10.3.1",
"@cucumber/html-formatter": "11.0.4",
"@cucumber/pretty-formatter": "1.0.1",
"@kite9/testing": "2.2.0-beta.25",
"@types/expect": "24.3.0",
"@types/lodash": "4.14.167",
"@types/node": "^20.14.11",
"@types/node": "^20.16.11",
"@types/uuid": "^10.0.0",
"@typescript-eslint/eslint-plugin": "7.1.1",
"@typescript-eslint/parser": "7.1.0",
"cucumber-console-formatter": "1.0.0",
"eslint": "8.57.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-import": "^2.23.4",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-prettier": "3.3.1",
"expect": "^29.7.0",
"is-ci": "2.0.0",
"jsonpath-plus": "^9.0.0",
"nyc": "15.1.0",
"@kite9/testing": "2.2.0-beta.25",
"prettier": "3.2.5",
"rimraf": "^6.0.1",
"ts-node": "^10.9.2",
"tsx": "^4.7.1",
"typescript": "^5.3.2",
"tsx": "^4.19.1",
"typescript": "^5.6.3",
"uuid": "^9.0.1"
}
}
34 changes: 0 additions & 34 deletions packages/fdc3-context/.eslintrc.json

This file was deleted.

56 changes: 56 additions & 0 deletions packages/fdc3-context/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
import typescriptEslint from "@typescript-eslint/eslint-plugin";
import jsxA11Y from "eslint-plugin-jsx-a11y";
import globals from "globals";
import tsParser from "@typescript-eslint/parser";
import path from "node:path";
import { fileURLToPath } from "node:url";
import js from "@eslint/js";
import { FlatCompat } from "@eslint/eslintrc";

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
});

export default [...compat.extends(
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier",
), {
files: ["**/*.ts", "**/*.tsx"],

plugins: {
"@typescript-eslint": typescriptEslint,
"jsx-a11y": jsxA11Y,
},

languageOptions: {
globals: {
...globals.browser,
...globals.jest,
},

parser: tsParser,
ecmaVersion: 5,
sourceType: "script",

parserOptions: {
project: ["./tsconfig.json"],
},
},

rules: {
"@typescript-eslint/adjacent-overload-signatures": "warn",
"@typescript-eslint/no-empty-interface": "warn",
"@typescript-eslint/no-empty-function": "warn",
"@typescript-eslint/no-explicit-any": "off",

"@typescript-eslint/no-unused-vars": ["error", {
argsIgnorePattern: "^_",
caughtErrorsIgnorePattern: "^_",
}],
},
}];
23 changes: 13 additions & 10 deletions packages/fdc3-context/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,24 @@
"generate": "npm run mkdirs && npm run typegen && npm run lint",
"build": "npm run generate && tsc --module es2022",
"test": "npm run generate && tsc",
"lint": "eslint generated/ --ext .ts --fix",
"lint": "eslint generated/ --fix",
"typegen": "cd schemas && node ../s2tQuicktypeUtil.js context ../generated/context/ContextTypes.ts"
},
"devDependencies": {
"@types/jest": "29.5.12",
"@typescript-eslint/eslint-plugin": "7.1.1",
"@typescript-eslint/parser": "7.1.0",
"eslint": "8.57.0",
"@eslint/eslintrc": "^3.1.0",
"@eslint/js": "^9.12.0",
"@types/jest": "29.5.13",
"@typescript-eslint/eslint-plugin": "8.9.0",
"@typescript-eslint/parser": "8.9.0",
"eslint": "9.12.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-jest": "27.9.0",
"eslint-plugin-jsx-a11y": "^6.8.0",
"eslint-plugin-jest": "28.8.3",
"eslint-plugin-jsx-a11y": "^6.10.0",
"globals": "^15.11.0",
"quicktype": "23.0.78",
"rimraf": "^6.0.1",
"ts-jest": "29.1.2",
"tslib": "^2.0.1",
"typescript": "^5.3.2"
"ts-jest": "29.2.5",
"tslib": "^2.7.0",
"typescript": "~5.5.0"
}
}
10 changes: 5 additions & 5 deletions packages/fdc3-get-agent/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,25 @@
"clean": "rimraf dist && rimraf cucumber-report.html && rimraf coverage && rimraf .nyc_output && rimraf node_modules"
},
"dependencies": {
"@kite9/fdc3-standard": "2.2.0-beta.25",
"@kite9/fdc3-agent-proxy": "2.2.0-beta.25",
"@kite9/fdc3-schema": "2.2.0-beta.25",
"@kite9/fdc3-context": "2.2.0-beta.25",
"@kite9/fdc3-schema": "2.2.0-beta.25",
"@kite9/fdc3-standard": "2.2.0-beta.25",
"@types/uuid": "^10.0.0",
"uuid": "^9.0.1"
},
"devDependencies": {
"@cucumber/cucumber": "10.3.1",
"@kite9/fdc3-web-impl": "2.2.0-beta.25",
"@kite9/testing": "2.2.0-beta.25",
"@types/node": "^20.14.11",
"@types/node": "^20.16.11",
"@types/wtfnode": "^0.7.3",
"expect": "^29.7.0",
"jsonpath-plus": "^9.0.0",
"nyc": "15.1.0",
"rimraf": "^6.0.1",
"tsx": "^4.7.1",
"typescript": "^5.3.2",
"tsx": "^4.19.1",
"typescript": "^5.6.3",
"wtfnode": "^0.9.3"
}
}
34 changes: 0 additions & 34 deletions packages/fdc3-schema/.eslintrc.json

This file was deleted.

58 changes: 58 additions & 0 deletions packages/fdc3-schema/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
import typescriptEslint from "@typescript-eslint/eslint-plugin";
import jsxA11Y from "eslint-plugin-jsx-a11y";
import globals from "globals";
import tsParser from "@typescript-eslint/parser";
import path from "node:path";
import { fileURLToPath } from "node:url";
import js from "@eslint/js";
import { FlatCompat } from "@eslint/eslintrc";

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
});

export default [...compat.extends(
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier",
), {
files: ["**/*.ts", "**/*.tsx"],

plugins: {
"@typescript-eslint": typescriptEslint,
"jsx-a11y": jsxA11Y,
},

languageOptions: {
globals: {
...globals.browser,
...globals.jest,
},

parser: tsParser,
ecmaVersion: 5,
sourceType: "script",

parserOptions: {
project: ["./tsconfig.json"],
},
},

rules: {
"@typescript-eslint/adjacent-overload-signatures": "warn",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-empty-function": "warn",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-empty-object-type": ["error", {
allowInterfaces: 'always'
}],
"@typescript-eslint/no-unused-vars": ["error", {
argsIgnorePattern: "^_",
caughtErrorsIgnorePattern: "^_",
}],
},
}];
23 changes: 13 additions & 10 deletions packages/fdc3-schema/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,25 @@
"generate": "npm run mkdirs && npm run typegen-browser && npm run typegen-bridging && npm run lint",
"build": "npm run generate && tsc --module es2022",
"test": "npm run generate && tsc",
"lint": "eslint generated/ --ext .ts --fix",
"lint": "eslint generated/ --fix",
"typegen-browser": "cd schemas && node ../s2tQuicktypeUtil.js api/api.schema.json api/common.schema.json ../../fdc3-context/schemas/context/context.schema.json api ../generated/api/BrowserTypes.ts",
"typegen-bridging": "cd schemas && node ../s2tQuicktypeUtil.js api/api.schema.json api/common.schema.json api/broadcastRequest.schema.json api/findInstancesRequest.schema.json api/findInstancesResponse.schema.json api/findIntentRequest.schema.json api/findIntentResponse.schema.json api/findIntentsByContextRequest.schema.json api/findIntentsByContextResponse.schema.json api/getAppMetadataRequest.schema.json api/getAppMetadataResponse.schema.json api/openRequest.schema.json api/openResponse.schema.json api/raiseIntentRequest.schema.json api/raiseIntentResponse.schema.json api/raiseIntentResultResponse.schema.json ../../fdc3-context/schemas/context/context.schema.json bridging ../generated/bridging/BridgingTypes.ts"
},
"devDependencies": {
"@types/jest": "29.5.12",
"@typescript-eslint/eslint-plugin": "7.1.1",
"@typescript-eslint/parser": "7.1.0",
"eslint": "8.57.0",
"@eslint/eslintrc": "^3.1.0",
"@eslint/js": "^9.12.0",
"@types/jest": "29.5.13",
"@typescript-eslint/eslint-plugin": "8.9.0",
"@typescript-eslint/parser": "8.9.0",
"eslint": "9.12.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-jest": "27.9.0",
"eslint-plugin-jsx-a11y": "^6.8.0",
"eslint-plugin-jest": "28.8.3",
"eslint-plugin-jsx-a11y": "^6.10.0",
"globals": "^15.11.0",
"quicktype": "23.0.78",
"rimraf": "^6.0.1",
"ts-jest": "29.1.2",
"tslib": "^2.0.1",
"typescript": "^5.3.2"
"ts-jest": "29.2.5",
"tslib": "^2.7.0",
"typescript": "~5.5.0"
}
}
55 changes: 55 additions & 0 deletions packages/fdc3-standard/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
import typescriptEslint from "@typescript-eslint/eslint-plugin";
import jsxA11Y from "eslint-plugin-jsx-a11y";
import globals from "globals";
import tsParser from "@typescript-eslint/parser";
import path from "node:path";
import { fileURLToPath } from "node:url";
import js from "@eslint/js";
import { FlatCompat } from "@eslint/eslintrc";

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
});

export default [...compat.extends(
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier",
), {
files: ["**/*.ts", "**/*.tsx"],

plugins: {
"@typescript-eslint": typescriptEslint,
"jsx-a11y": jsxA11Y,
},

languageOptions: {
globals: {
...globals.browser,
...globals.jest,
},

parser: tsParser,
ecmaVersion: 5,
sourceType: "script",

parserOptions: {
project: ["./tsconfig.json"],
},
},

rules: {
"@typescript-eslint/adjacent-overload-signatures": "warn",
"@typescript-eslint/no-empty-interface": "warn",
"@typescript-eslint/no-empty-function": "warn",
"@typescript-eslint/no-explicit-any": "off",

"@typescript-eslint/no-unused-vars": ["error", {
argsIgnorePattern: "^_",
}],
},
}];
Loading

0 comments on commit c9cf52b

Please sign in to comment.