@checkdigit/spectral-config 0.0.1-PR.2-9dbc → 0.0.1-PR.2-046f

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Check Digit Spectral Config
2
2
 
3
- The Check Digit Spectral Config is the standard package to install and configure [Spectral](https://stoplight.io/open-source/spectral/) for use in Check Digit projects.
3
+ Check Digit Spectral Config is the standard package to install and configure [Spectral](https://stoplight.io/open-source/spectral/) for use in Check Digit projects.
4
4
 
5
5
  ### Installing
6
6
 
@@ -9,7 +9,7 @@ Spectral Config should be installed as a dev dependency:
9
9
 
10
10
  ### Additional Setup
11
11
 
12
- Once installed, add a file named `.spectral.json` to the root of your project. This file should extend the Check Digit Spectral Config:
12
+ Once installed, add a file named `.spectral.json` to the root of your project. This file should extend Spectral Config:
13
13
 
14
14
  ```jsonc
15
15
  {
@@ -34,3 +34,9 @@ To include Spectral in your project's CI/CD pipeline, add the following to your
34
34
  "ci:lint": "npm run lint && npm run lint:spec",
35
35
  }
36
36
  ```
37
+
38
+ ### Rules for Certain Warnings and Errors
39
+
40
+ `operation-operationId Operation must have "operationId"`
41
+
42
+ Add an operationId to the operation. Check Digit uses a `noun-noun-verb` naming convention. For example, the correct operationId for a `PUT` to path `/resource/{id}/item/{itemId}/key` is `resource-item-key-put`
package/dist/index.d.ts CHANGED
@@ -1,5 +1 @@
1
- declare const _default: {
2
- extends: string[];
3
- };
4
- export default _default;
5
1
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAEA,wBAEE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}
package/dist/index.js CHANGED
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  // index.ts
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.default = {
5
- extends: ['spectral:oas'],
6
- };
3
+ // This file is intentionally empty. As custom linting rules are needed, they will be added to this src directory.
4
+ // eslint-disable-next-line eslint-comments/disable-enable-pair
5
+ /* eslint-disable unicorn/no-empty-file */
7
6
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,WAAW;;AAEX,kBAAe;IACb,OAAO,EAAE,CAAC,cAAc,CAAC;CAC1B,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,WAAW;AAEX,kHAAkH;AAElH,+DAA+D;AAC/D,0CAA0C"}
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@checkdigit/spectral-config","version":"0.0.1-PR.2-9dbc","description":"Check Digit Spectral Config","main":"./spectral.json","prettier":"@checkdigit/prettier-config","engines":{"node":">=12.18","npm":">=6.14"},"files":["spectral.json","dist","/src/"],"repository":{"type":"git","url":"git+https://github.com/checkdigit/spectral-config.git"},"author":"Check Digit, LLC","license":"UNLICENSED","bugs":{"url":"https://github.com/checkdigit/spectral-config/issues"},"homepage":"https://github.com/checkdigit/spectral-config#readme","devDependencies":{"@checkdigit/eslint-config":"7.5.0","@checkdigit/prettier-config":"^3.2.0","@checkdigit/typescript-config":"^3.2.0"},"peerDependencies":{"@stoplight/spectral-cli":"6.6.0"},"scripts":{"postversion":"git push && git push --tags","prettier":"prettier --ignore-path .gitignore --list-different .","prettier:fix":"prettier --ignore-path .gitignore --write .","lint":"eslint -f unix --ext .js,.ts 'src/**/*.ts'","lint:fix":"eslint -f unix --ext .js,.ts 'src/**/*.ts' --fix","test":"npm run ci:test","ci:test":"npm run ci:compile && npm run ci:lint && npm run ci:style","ci:compile":"tsc --noEmit","ci:lint":"npm run lint","ci:style":"npm run prettier"},"eslintConfig":{"extends":["@checkdigit/eslint-config"]},"jest":{"preset":"@checkdigit/jest-config","testTimeout":100000}}
1
+ {"name":"@checkdigit/spectral-config","version":"0.0.1-PR.2-046f","description":"Check Digit Spectral Config","main":"ruleset.json","prettier":"@checkdigit/prettier-config","engines":{"node":">=12.18","npm":">=6.14"},"files":["ruleset.json","dist","/src/"],"repository":{"type":"git","url":"git+https://github.com/checkdigit/spectral-config.git"},"author":"Check Digit, LLC","license":"UNLICENSED","bugs":{"url":"https://github.com/checkdigit/spectral-config/issues"},"homepage":"https://github.com/checkdigit/spectral-config#readme","devDependencies":{"@checkdigit/eslint-config":"7.5.0","@checkdigit/prettier-config":"^3.2.0","@checkdigit/typescript-config":"^3.2.0"},"peerDependencies":{"@stoplight/spectral-cli":"6.6.0"},"scripts":{"postversion":"git push && git push --tags","prettier":"prettier --ignore-path .gitignore --list-different .","prettier:fix":"prettier --ignore-path .gitignore --write .","lint":"eslint -f unix --ext .js,.ts 'src/**/*.ts'","lint:fix":"eslint -f unix --ext .js,.ts 'src/**/*.ts' --fix","cover:browser":"jest --coverage=true && open coverage/lcov-report/index.html","clean":"npm cache verify && rimraf coverage node_modules","test":"npm run ci:compile && npm run ci:test && npm run ci:style && npm run ci:lint","ci:compile":"tsc --noEmit","ci:test":"spectral lint test/openapi.yml --ruleset test/.spectral.json","ci:coverage":"jest --coverage=true","ci:lint":"npm run lint","ci:style":"npm run prettier"},"eslintConfig":{"extends":["@checkdigit/eslint-config"]},"jest":{"preset":"@checkdigit/jest-config","testTimeout":100000}}
package/src/index.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  // index.ts
2
2
 
3
- export default {
4
- extends: ['spectral:oas'],
5
- };
3
+ // This file is intentionally empty. As custom linting rules are needed, they will be added to this src directory.
4
+
5
+ // eslint-disable-next-line eslint-comments/disable-enable-pair
6
+ /* eslint-disable unicorn/no-empty-file */
File without changes