Skip to content

Commit 6a59383

Browse files
ryanslattenRick SaccoccianewmanwClinton Werth
authored
Add linting to Arcgis plugin - Service (#240)
* Convert httpClient calls to @esri/arcgis-rest-request with ArcGISIdentityManager for authentication * Fix addFields and deleteFields * Fixed outFields and returnGeometry for query generation * [service] prepend form name to all event form fields for clarity and to avoid ESRI column name conflicts * [service] Fix check to determine if an observation sync to ESRI is a create or update * [service] OAuth refresh token flow in work * [service] Add IdentityManager to ObservationSender construction * [service] Remove httpClient * [service] fix FeatureQuerier response from request * [service] Refactor ArcGISIdentityManager management * draft changes * [service] ArcGIS field names are lowercase, account for this when adding/removing fields * Undo revert of FeatureQuerier * [service] Remove HttpClient.ts, no longer used * [service] updateConfig inner async methods await before we query * [server] Attribute sync fix upon adding feature server * [web/service] API update to include feature service authentication status * [service] fix regression in token, username/password validation req parameter parsing * [service] Clean up TODO comments * [service] form field mapping need to account for form name and field name to avoid conflicts * Reduce response logging that may cause confusion * [service] include event forms in detecting config changes * Merge develop * [service] sync configured events instead of checking changes of all events. Store event ids instead of names * [server] Fix query syntax error * fix failing errors for observations * [service] fix event deletion and firstRun logic * fix issues with updates * fix deletion issue * init * add lint to services * fix required field issue * update arcgis read me --------- Co-authored-by: Rick Saccoccia <[email protected]> Co-authored-by: William Newman <[email protected]> Co-authored-by: Clinton Werth <[email protected]>
1 parent 7a859dc commit 6a59383

26 files changed

+12403
-11830
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import pluginJs from "@eslint/js";
2+
import tseslint from "typescript-eslint";
3+
import jsdoc from 'eslint-plugin-jsdoc';
4+
5+
/** @type {import('eslint').Linter.Config[]} */
6+
export default [
7+
{
8+
files: ["**/*.{js,mjs,cjs,ts}"],
9+
plugins: { jsdoc },
10+
rules: {
11+
"jsdoc/require-description": "warn",
12+
"semi": ["error", "always"]
13+
},
14+
"overrides": [
15+
{
16+
// enable the rule specifically for TypeScript files
17+
"files": ["*.ts", "*.tsx"],
18+
"rules": {
19+
"@typescript-eslint/no-explicit-any": "off"
20+
}
21+
}
22+
]
23+
},
24+
pluginJs.configs.recommended,
25+
...tseslint.configs.recommended,
26+
jsdoc.configs['flat/recommended'],
27+
];

0 commit comments

Comments
 (0)