@sequencemedia/eslint-config-standard 0.2.5 → 0.2.6
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/package.json +1 -2
- package/common/index.mjs +0 -10
- package/test/common/index.spec.mjs +0 -34
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sequencemedia/eslint-config-standard",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.6",
|
|
4
4
|
"description": "Standard configuration for ESLint 9",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"JavaScript Standard Style",
|
|
@@ -69,7 +69,6 @@
|
|
|
69
69
|
},
|
|
70
70
|
"imports": {
|
|
71
71
|
"#eslint-config-standard": "./index.mjs",
|
|
72
|
-
"#eslint-config-standard/common": "./common/index.mjs",
|
|
73
72
|
"#eslint-config-standard/configs": "./configs/index.mjs",
|
|
74
73
|
"#eslint-config-standard/configs/*": "./configs/*.mjs",
|
|
75
74
|
"#eslint-config-standard/merge": "./merge.mjs"
|
package/common/index.mjs
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
expect
|
|
3
|
-
} from 'chai'
|
|
4
|
-
|
|
5
|
-
import {
|
|
6
|
-
isString,
|
|
7
|
-
isObject
|
|
8
|
-
} from '#eslint-config-standard/common'
|
|
9
|
-
|
|
10
|
-
describe('#eslint-config-standard/common', () => {
|
|
11
|
-
describe('`isString`', () => it('is a function', () => expect(isString).to.be.a('function')))
|
|
12
|
-
|
|
13
|
-
describe('`isObject`', () => it('is a function', () => expect(isObject).to.be.a('function')))
|
|
14
|
-
|
|
15
|
-
describe('`isString()`', () => {
|
|
16
|
-
describe('argument is a string', () => it('returns true', () => expect(isString('')).to.true))
|
|
17
|
-
describe('argument is a number', () => it('returns false', () => expect(isString(1)).to.be.false))
|
|
18
|
-
describe('argument is null', () => it('returns false', () => expect(isString(null)).to.be.false))
|
|
19
|
-
describe('argument is undefined', () => it('returns false', () => expect(isString()).to.be.false))
|
|
20
|
-
describe('argument is a boolean', () => it('returns false', () => expect(isString(true)).to.be.false))
|
|
21
|
-
describe('argument is an object', () => it('returns false', () => expect(isString({})).to.be.false))
|
|
22
|
-
describe('argument is an array', () => it('returns false', () => expect(isString([])).to.be.false))
|
|
23
|
-
})
|
|
24
|
-
|
|
25
|
-
describe('`isObject()`', () => {
|
|
26
|
-
describe('argument is a string', () => it('returns false', () => expect(isObject('')).to.false))
|
|
27
|
-
describe('argument is a number', () => it('returns false', () => expect(isObject(1)).to.be.false))
|
|
28
|
-
describe('argument is null', () => it('returns false', () => expect(isObject(null)).to.be.false))
|
|
29
|
-
describe('argument is undefined', () => it('returns false', () => expect(isObject()).to.be.false))
|
|
30
|
-
describe('argument is a boolean', () => it('returns false', () => expect(isObject(true)).to.be.false))
|
|
31
|
-
describe('argument is an object', () => it('returns true', () => expect(isObject({})).to.be.true))
|
|
32
|
-
describe('argument is an array', () => it('returns false', () => expect(isObject([])).to.be.false))
|
|
33
|
-
})
|
|
34
|
-
})
|