@ethlete/eslint-plugin 1.0.0-next.14 → 1.0.0-next.15
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.0.0-next.15
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`6f4b966`](https://github.com/ethlete-io/ethdk/commit/6f4b966c4dc0244b9dfc40978f42362fe9c89a58) Thanks [@TomTomB](https://github.com/TomTomB)! - Expose the `recommendedSpec` flat config (relaxes `no-non-null-assertion` in `*.spec.ts`) as `ethlete.configs.recommendedSpec`.
|
|
8
|
+
|
|
3
9
|
## 1.0.0-next.14
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -131,6 +131,8 @@ const configs = {
|
|
|
131
131
|
recommendedTs: recommendedTsWithPlugin,
|
|
132
132
|
/** Angular template rules (merged into a files: ['**\/*.html'] block) */
|
|
133
133
|
recommendedTemplate: recommendedTemplateWithPlugin,
|
|
134
|
+
/** Relaxed rules for spec files (files: ['**\/*.spec.ts']) */
|
|
135
|
+
recommendedSpec,
|
|
134
136
|
/**
|
|
135
137
|
* Both together as a flat array — the most common usage:
|
|
136
138
|
* export default [...baseConfig, ...ethlete.configs.recommended]
|
|
@@ -116,7 +116,6 @@ const buildObjectTextWithAppendedProperty = (sourceCode, objectExpression, entry
|
|
|
116
116
|
return existingText.length === 0 ? `{ ${entryText} }` : `{ ${existingText.join(', ')}, ${entryText} }`;
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
const openingBrace = sourceCode.getFirstToken(objectExpression);
|
|
120
119
|
const closingBrace = sourceCode.getLastToken(objectExpression);
|
|
121
120
|
const closingIndent = closingBrace ? getIndent(sourceCode, closingBrace) : '';
|
|
122
121
|
const propertyIndent = properties[0] ? getIndent(sourceCode, properties[0]) : `${closingIndent} `;
|