Skip to content

Commit 7b2e84d

Browse files
authored
additional eslint plugins and configuration (#295)
1 parent b36c234 commit 7b2e84d

69 files changed

Lines changed: 611 additions & 1004 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.cspell.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"version": "0.2",
3+
"language": "en,en-us",
4+
"dictionaries": [
5+
"npm",
6+
"softwareTerms",
7+
"node",
8+
"html",
9+
"css",
10+
"bash",
11+
"en_US",
12+
"en-gb",
13+
"misc",
14+
"omm"
15+
],
16+
"dictionaryDefinitions": [
17+
{
18+
"name": "omm",
19+
"path": ".cspell/omm-dictionary.txt",
20+
"description": "Open MCT for MCWS dictionary"
21+
}
22+
],
23+
"ignorePaths": [
24+
"package.json",
25+
"dist/**",
26+
"package-lock.json",
27+
"node_modules",
28+
"*.log",
29+
"test_data/**",
30+
"target/**"
31+
]
32+
}

.cspell/omm-dictionary.txt

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# openmct
2+
openmct
3+
metadatas
4+
metadatum
5+
unlisten
6+
unlisteners
7+
persistable
8+
Persistable
9+
timesystem
10+
TIMESYSTEM
11+
frameaccountability
12+
DDDTHH
13+
DDDDTHH
14+
15+
# dependencies
16+
printj
17+
18+
# testing
19+
xdescribe
20+
21+
# ammos
22+
mcws
23+
MCWSEVR
24+
mcwsurl
25+
ampcs
26+
mpcs # root_topic was hardcoded as mpcs before name change to ampcs
27+
atlo
28+
rfsw
29+
spsc
30+
apid
31+
apids
32+
scid
33+
vcid
34+
vcids
35+
vcfc
36+
evrs
37+
scmf
38+
cltus
39+
insync
40+
datatable
41+
42+
# time
43+
scet
44+
lmst
45+
sclk
46+
mslsol
47+
48+
# names
49+
dsanto
50+
peterr
51+
smap
52+
53+
# TODO fix
54+
# remove dismissable when implementing https://github.com/NASA-AMMOS/openmct-mcws/issues/209
55+
dismissable

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Open MCT for MCWS
2-
Open Mission Control Techologies for Mission Control Web Services (Open MCT for MCWS) is a next-generation web-based mission control framework for visualization of data on desktop and mobile devices. Open MCT for MCWS is built on the [Open MCT Framework](https://github.com/nasa/openmct), and includes adapter code for using MCWS as a telemetry and persistence provider. Open MCT is developed at NASA Ames Research Center in Silicon Valley, in collaboration with NASA AMMOS and the Jet Propulsion Laboratory, California Institute of Technology (under its contract with NASA, 80NM0018D0004).
2+
Open Mission Control Technologies for Mission Control Web Services (Open MCT for MCWS) is a next-generation web-based mission control framework for visualization of data on desktop and mobile devices. Open MCT for MCWS is built on the [Open MCT Framework](https://github.com/nasa/openmct), and includes adapter code for using MCWS as a telemetry and persistence provider. Open MCT is developed at NASA Ames Research Center in Silicon Valley, in collaboration with NASA AMMOS and the Jet Propulsion Laboratory, California Institute of Technology (under its contract with NASA, 80NM0018D0004).
33

44
## Configuration
55
Various configurations and customizations are available by editing `config.js`. Descriptions of each configuration reside with the configuration in the file.

config.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,11 @@
8484
evrDefaultBackgroundColor: undefined,
8585

8686
/**
87-
* evrDefaultForegoundColor: default foreground color for EVRs.
87+
* evrDefaultForegroundColor: default foreground color for EVRs.
8888
* Set to `undefined` to use the theme default. Otherwise, specify
8989
* a hex string for an RGB color, e.g. `#ababab`.
9090
*/
91-
evrDefaultForegoundColor: undefined,
91+
evrDefaultForegroundColor: undefined,
9292

9393
/**
9494
* evrBackgroundColorByLevel: specify the background color of EVRs
@@ -206,7 +206,7 @@
206206
* * modeSettings: object, optional - presets for convenience.
207207
* * * fixed: object, optional - valid objects are bounds objects and presets array.
208208
* * * realtime: object, optional - valid objects are clockOffsets and presets array.
209-
* * * lad:object, optional - valid objects are clockoffsets.
209+
* * * lad:object, optional - valid objects are clockOffsets.
210210
* * * *
211211
* * * * Optional objects:
212212
* * * * bounds: start and end bounds for preset as numbers
@@ -360,9 +360,12 @@
360360
* This list can be quickly extracted from apid.xml with the following
361361
* python code:
362362
*
363+
* temporarily disable spellcheck, to be removed in https://github.com/NASA-AMMOS/openmct-mcws/issues/303
364+
* cspell:disable
363365
* import xml.etree.ElementTree as ET
364366
* tree = ET.parse('apid.xml')
365367
* apids = [int(a.attrib['number']) for a in tree.getroot() if a.tag == 'apid']
368+
* cspell:enable
366369
*
367370
*/
368371
realtimeProductAPIDs: [],

docs/process/lines-of-code.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!-- cspell:words cloc -->
12
# Lines of code
23

34
Per release, we report on total lines of code, plus the different in lines of

eslint.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
const globals = require('globals');
22
const js = require('@eslint/js');
3+
const vue = require('eslint-plugin-vue');
34
const vueParser = require('vue-eslint-parser');
45
const babelParser = require('@babel/eslint-parser');
56
// eslint-plugin-prettier/recommended must be last in configuration
@@ -38,6 +39,7 @@ module.exports = [
3839
}
3940
},
4041
js.configs.recommended,
42+
...vue.configs['flat/recommended'],
4143
prettierRecommended,
4244
{
4345
rules: {

karma.conf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ module.exports = function (config) {
4545
// Web server port.
4646
port: 9876,
4747

48-
// Wnable / disable colors in the output (reporters and logs).
48+
// enable / disable colors in the output (reporters and logs).
4949
colors: true,
5050

5151
logLevel: config.LOG_INFO,

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"bower": "^1.7.7",
1313
"comma-separated-values": "3.6.4",
1414
"copy-webpack-plugin": "12.0.2",
15+
"cspell": "8.17.5",
1516
"css-loader": "6.10.0",
1617
"eslint": "9.19.0",
1718
"eslint-config-prettier": "10.0.1",
@@ -61,6 +62,7 @@
6162
"start": "npx webpack serve --config ./.webpack/webpack.dev.js",
6263
"lint": "eslint \"**\"",
6364
"lint:fix": "eslint \"**\" --fix",
65+
"lint:spelling": "cspell \"**/*.{js,md,vue}\" --show-context --gitignore --quiet",
6466
"build:prod": "webpack --config ./.webpack/webpack.prod.js",
6567
"build:dev": "webpack --config ./.webpack/webpack.dev.js",
6668
"build:watch": "webpack --config ./.webpack/webpack.dev.js --watch",
@@ -73,7 +75,7 @@
7375
"url": "https://github.com/NASA-AMMOS/openmct-mcws"
7476
},
7577
"engines": {
76-
"node": ">=14.19.1"
78+
"node": ">=18.18.0"
7779
},
7880
"overrides": {
7981
"core-js": "3.21.1"

scripts/rebundle-template.txt

Lines changed: 0 additions & 13 deletions
This file was deleted.

scripts/rebundle.js

Lines changed: 0 additions & 76 deletions
This file was deleted.

0 commit comments

Comments
 (0)