@metamask/eslint-config-typescript 11.0.2 → 11.1.0

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
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [11.1.0]
10
+ ### Changed
11
+ - Exclude test files from package ([#266](https://github.com/MetaMask/eslint-config/pull/266))
12
+
9
13
  ## [11.0.2]
10
14
  ### Changed
11
15
  - Allow async functions without any 'await' ([#262](https://github.com/MetaMask/eslint-config/pull/262))
@@ -89,7 +93,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
89
93
  - To continue extending this config, install this package and update your `.eslintrc.js` `extends` array to include `@metamask/eslint-config-typescript` instead of `@metamask/eslint-config/typescript`.
90
94
  - Update `eslint` and other ESLint peer dependencies ([#151](https://github.com/MetaMask/eslint-config/pull/151))
91
95
 
92
- [Unreleased]: https://github.com/MetaMask/eslint-config/compare/v11.0.2...HEAD
96
+ [Unreleased]: https://github.com/MetaMask/eslint-config/compare/v11.1.0...HEAD
97
+ [11.1.0]: https://github.com/MetaMask/eslint-config/compare/v11.0.2...v11.1.0
93
98
  [11.0.2]: https://github.com/MetaMask/eslint-config/compare/v11.0.0...v11.0.2
94
99
  [11.0.0]: https://github.com/MetaMask/eslint-config/compare/v10.0.0...v11.0.0
95
100
  [10.0.0]: https://github.com/MetaMask/eslint-config/compare/v9.0.1...v10.0.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metamask/eslint-config-typescript",
3
- "version": "11.0.2",
3
+ "version": "11.1.0",
4
4
  "description": "Shareable MetaMask ESLint config for TypeScript.",
5
5
  "homepage": "https://github.com/MetaMask/eslint-config#readme",
6
6
  "bugs": {
@@ -13,7 +13,9 @@
13
13
  "license": "MIT",
14
14
  "main": "src/index.js",
15
15
  "files": [
16
- "src/"
16
+ "src/",
17
+ "!src/**/*.test.js",
18
+ "!src/**/__test__"
17
19
  ],
18
20
  "scripts": {
19
21
  "lint:changelog": "auto-changelog validate",
@@ -1,2 +0,0 @@
1
- // This file is only used to test the config.
2
- console.log('Hello, world!');
package/src/index.test.js DELETED
@@ -1,31 +0,0 @@
1
- const { ESLint } = require('eslint');
2
- const { resolve } = require('path');
3
-
4
- const config = require('.');
5
-
6
- describe('index', () => {
7
- it('is a valid ESLint config', async () => {
8
- const api = new ESLint({
9
- baseConfig: config,
10
- useEslintrc: false,
11
- overrideConfig: {
12
- env: {
13
- node: true,
14
- },
15
- parserOptions: {
16
- tsconfigRootDir: resolve(__dirname, '..'),
17
- project: 'tsconfig.json',
18
- },
19
- },
20
- });
21
-
22
- // In order to test rules that require type information, we need to actually
23
- // compile the file with TypeScript, so rather than using `api.lintText()`,
24
- // we use `api.lintFiles()` and pass in a file that we know will pass.
25
- const result = await api.lintFiles(resolve(__dirname, '__test__/dummy.ts'));
26
-
27
- expect(result[0].messages).toStrictEqual([]);
28
- expect(result[0].warningCount).toBe(0);
29
- expect(result[0].errorCount).toBe(0);
30
- });
31
- });