@metamask/eslint-config-browser 11.0.0 → 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 +6 -1
- package/README.md +1 -1
- package/package.json +4 -3
- package/src/index.test.js +0 -18
package/CHANGELOG.md
CHANGED
|
@@ -6,9 +6,14 @@ 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.0]
|
|
10
14
|
### Added
|
|
11
15
|
- Initial release of this package.
|
|
12
16
|
|
|
13
|
-
[Unreleased]: https://github.com/MetaMask/eslint-config/compare/v11.
|
|
17
|
+
[Unreleased]: https://github.com/MetaMask/eslint-config/compare/v11.1.0...HEAD
|
|
18
|
+
[11.1.0]: https://github.com/MetaMask/eslint-config/compare/v11.0.0...v11.1.0
|
|
14
19
|
[11.0.0]: https://github.com/MetaMask/eslint-config/releases/tag/v11.0.0
|
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ Our default export contains a base set of ESLint rules for ES6+:
|
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
10
|
yarn add --dev \
|
|
11
|
-
@metamask/eslint-config@^11.0.
|
|
11
|
+
@metamask/eslint-config@^11.0.1 \
|
|
12
12
|
@metamask/eslint-config-browser@^11.0.0 \
|
|
13
13
|
eslint@^8.27.0 \
|
|
14
14
|
eslint-config-prettier@^8.5.0 \
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metamask/eslint-config-browser",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.1.0",
|
|
4
4
|
"description": "Shareable MetaMask ESLint plugin for browser environments.",
|
|
5
5
|
"homepage": "https://github.com/MetaMask/eslint-config#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"main": "src/index.js",
|
|
15
15
|
"files": [
|
|
16
|
-
"src/"
|
|
16
|
+
"src/",
|
|
17
|
+
"!src/**/*.test.js"
|
|
17
18
|
],
|
|
18
19
|
"scripts": {
|
|
19
20
|
"lint:changelog": "auto-changelog validate",
|
|
@@ -40,4 +41,4 @@
|
|
|
40
41
|
"access": "public",
|
|
41
42
|
"registry": "https://registry.npmjs.org/"
|
|
42
43
|
}
|
|
43
|
-
}
|
|
44
|
+
}
|
package/src/index.test.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
const { ESLint } = require('eslint');
|
|
2
|
-
|
|
3
|
-
const config = require('.');
|
|
4
|
-
|
|
5
|
-
describe('index', () => {
|
|
6
|
-
it('is a valid ESLint config', async () => {
|
|
7
|
-
const api = new ESLint({
|
|
8
|
-
baseConfig: config,
|
|
9
|
-
useEslintrc: false,
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
const result = await api.lintText(`console.log('Hello, world!');\n`);
|
|
13
|
-
|
|
14
|
-
expect(result[0].messages).toStrictEqual([]);
|
|
15
|
-
expect(result[0].warningCount).toBe(0);
|
|
16
|
-
expect(result[0].errorCount).toBe(0);
|
|
17
|
-
});
|
|
18
|
-
});
|