@newsteam/eslint-config 0.0.60 → 0.0.61

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2019 News Team
3
+ Copyright (c) 2021 News Team
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -1,10 +1,10 @@
1
1
  # @newsteam/eslint-config
2
2
 
3
- [![License](https://img.shields.io/npm/l/@newsteam/eslint-config.svg)](https://github.com/feight/packages/blob/master/LICENSE)
3
+ [![License](https://img.shields.io/npm/l/@newsteam/eslint-config.svg)](https://github.com/feight/newsteam/blob/master/LICENSE)
4
4
  [![npm package](https://img.shields.io/npm/v/@newsteam/eslint-config/latest.svg)](https://www.npmjs.com/package/@newsteam/eslint-config)
5
5
  [![npm downloads](https://img.shields.io/npm/dm/@newsteam/eslint-config.svg)](https://www.npmjs.com/package/@newsteam/eslint-config)
6
- [![Dependencies](https://img.shields.io/david/feight/packages.svg?path=eslint-config)](https://david-dm.org/feight/packages?path=eslint-config)
7
- [![DevDependencies](https://img.shields.io/david/feight/packages.svg?path=eslint-config)](https://david-dm.org/feight/packages?type=dev&path=eslint-config)
6
+ [![Dependencies](https://img.shields.io/david/feight/newsteam.svg?path=eslint-config)](https://david-dm.org/feight/newsteam?path=eslint-config)
7
+ [![DevDependencies](https://img.shields.io/david/feight/newsteam.svg?path=eslint-config)](https://david-dm.org/feight/newsteam?type=dev&path=eslint-config)
8
8
 
9
9
  This package provides a shared config for eslint and several of its plugins.
10
10
 
@@ -0,0 +1,9 @@
1
+ import "jasmine";
2
+ import config from ".";
3
+ describe("config", () => {
4
+ it("config.env.browser === true", () => {
5
+ if (config.env) {
6
+ expect(config.env.browser).toBe(true);
7
+ }
8
+ });
9
+ });
package/package.json CHANGED
@@ -1,15 +1,14 @@
1
1
  {
2
2
  "name": "@newsteam/eslint-config",
3
- "version": "0.0.60",
3
+ "version": "0.0.61",
4
4
  "description": "Shared config for eslint",
5
5
  "main": "lib",
6
6
  "types": "lib",
7
7
  "scripts": {
8
- "build": "bash ../build.sh",
9
- "find-unused-rules": "eslint-find-rules lib/index.js --unused --deprecated || true",
10
- "prepublishOnly": "bash ../publish.sh && npm run find-unused-rules",
11
- "test": "bash ../test.sh && npm run find-unused-rules",
12
- "update": "ncu -u"
8
+ "build": "make build",
9
+ "prepublishOnly": "make prepublish",
10
+ "test": "make test",
11
+ "update": "make update"
13
12
  },
14
13
  "browserslist": "node 12",
15
14
  "engines": {
@@ -17,7 +16,7 @@
17
16
  },
18
17
  "repository": {
19
18
  "type": "git",
20
- "url": "https://github.com/feight/packages"
19
+ "url": "https://github.com/feight/newsteam"
21
20
  },
22
21
  "author": "News Team (https://www.newsteam.io)",
23
22
  "contributors": [
@@ -31,7 +30,7 @@
31
30
  "access": "public"
32
31
  },
33
32
  "bugs": {
34
- "url": "https://github.com/feight/packages/issues"
33
+ "url": "https://github.com/feight/newsteam/issues"
35
34
  },
36
35
  "keywords": [
37
36
  "eslint",
@@ -40,7 +39,7 @@
40
39
  "newsteam",
41
40
  "@newsteam"
42
41
  ],
43
- "homepage": "https://github.com/feight/packages/tree/master/eslint-config#readme",
42
+ "homepage": "https://github.com/feight/newsteam/tree/main/packages/eslint-config#readme",
44
43
  "files": [
45
44
  "lib"
46
45
  ],
@@ -1,4 +0,0 @@
1
- export interface TestOptions {
2
- type: string;
3
- }
4
- export declare const testFunction: (options: TestOptions) => void;
@@ -1,12 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.testFunction = void 0;
7
-
8
- const testFunction = function (options) {
9
- console.log(options);
10
- };
11
-
12
- exports.testFunction = testFunction;
@@ -1,3 +0,0 @@
1
- export const testFunction = function (options) {
2
- console.log(options);
3
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1,7 +0,0 @@
1
- "use strict";
2
-
3
- var _testDuplicateImportFrom = require("./test-duplicate-import-from");
4
-
5
- (0, _testDuplicateImportFrom.testFunction)({
6
- type: "test"
7
- });
@@ -1,4 +0,0 @@
1
- import { testFunction } from "./test-duplicate-import-from";
2
- testFunction({
3
- type: "test"
4
- });
@@ -1,2 +0,0 @@
1
- export declare const foo: () => string;
2
- export declare const test: string;
@@ -1,14 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.test = exports.foo = void 0;
7
-
8
- const foo = function () {
9
- return "foo";
10
- };
11
-
12
- exports.foo = foo;
13
- const test = `${foo()}bar`;
14
- exports.test = test;
@@ -1,4 +0,0 @@
1
- export const foo = function () {
2
- return "foo";
3
- };
4
- export const test = `${foo()}bar`;
@@ -1,3 +0,0 @@
1
-
2
-
3
- export const test = "test";
@@ -1 +0,0 @@
1
- export const test = "test";
@@ -1,2 +0,0 @@
1
- declare const doSomething: (number: number) => number;
2
- export default doSomething;
@@ -1,15 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
-
8
- const doSomething = function (number) {
9
- return number * 2;
10
- };
11
-
12
- doSomething(1);
13
- var _default = doSomething;
14
- exports.default = _default;
15
- module.exports = exports.default;
@@ -1,6 +0,0 @@
1
- const doSomething = function (number) {
2
- return number * 2;
3
- };
4
-
5
- doSomething(1);
6
- export default doSomething;
@@ -1,14 +0,0 @@
1
-
2
-
3
- export const testFuction = async function(){
4
-
5
- const test = await import(/* webpackChunkName: "test.js" */ "./test-import");
6
-
7
- console.log(test);
8
-
9
- return test;
10
-
11
- };
12
-
13
-
14
- export const xyz = 1;
@@ -1,6 +0,0 @@
1
- export const testFuction = async function () {
2
- const test = await import("./test-import");
3
- console.log(test);
4
- return test;
5
- };
6
- export const xyz = 1;
@@ -1,3 +0,0 @@
1
- {
2
- "test": "test123"
3
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,7 +0,0 @@
1
- "use strict";
2
-
3
- var _unpublishedImportJson = _interopRequireDefault(require("./unpublished-import-json.json"));
4
-
5
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
6
-
7
- console.log(_unpublishedImportJson.default);
@@ -1,2 +0,0 @@
1
- import json from "./unpublished-import-json.json";
2
- console.log(json);