@sequencemedia/eslint-config-standard 0.2.5 → 0.2.7
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 +2 -3
- package/common/index.mjs +0 -10
- package/test/common/index.spec.mjs +0 -34
- package/test/configs/index.spec.mjs +0 -17
- package/test/configs/recommended/merge.spec.mjs +0 -88
- package/test/configs/recommended.spec.mjs +0 -9
- package/test/configs/standard/merge.spec.mjs +0 -88
- package/test/configs/standard.spec.mjs +0 -9
- package/test/configs/stylistic/merge.spec.mjs +0 -88
- package/test/configs/stylistic.spec.mjs +0 -9
- package/test/merge.spec.mjs +0 -130
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.7",
|
|
4
4
|
"description": "Standard configuration for ESLint 9",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"JavaScript Standard Style",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"@sequencemedia/eslint-merge": "^0.0.4",
|
|
55
|
-
"@stylistic/eslint-plugin": "^2.12.
|
|
55
|
+
"@stylistic/eslint-plugin": "^2.12.1",
|
|
56
56
|
"eslint-plugin-import": "^2.31.0",
|
|
57
57
|
"eslint-plugin-n": "^17.15.0",
|
|
58
58
|
"eslint-plugin-promise": "^7.2.1",
|
|
@@ -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
|
-
})
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
expect
|
|
3
|
-
} from 'chai'
|
|
4
|
-
|
|
5
|
-
import {
|
|
6
|
-
recommended,
|
|
7
|
-
standard,
|
|
8
|
-
stylistic
|
|
9
|
-
} from '@sequencemedia/eslint-config-standard/configs'
|
|
10
|
-
|
|
11
|
-
describe('@sequencemedia/eslint-config-standard/configs', () => {
|
|
12
|
-
describe('`recommended`', () => it('is an object', () => expect(recommended).to.be.an('object')))
|
|
13
|
-
|
|
14
|
-
describe('`standard`', () => it('is an object', () => expect(standard).to.be.an('object')))
|
|
15
|
-
|
|
16
|
-
describe('`stylistic`', () => it('is an object', () => expect(stylistic).to.be.an('object')))
|
|
17
|
-
})
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
expect
|
|
3
|
-
} from 'chai'
|
|
4
|
-
|
|
5
|
-
import RECOMMENDED from '@sequencemedia/eslint-config-standard/configs/recommended'
|
|
6
|
-
|
|
7
|
-
import merge from '@sequencemedia/eslint-config-standard/configs/recommended/merge'
|
|
8
|
-
|
|
9
|
-
describe('@sequencemedia/eslint-config-standard/configs/recommended/merge', () => {
|
|
10
|
-
describe('`merge`', () => it('is a function', () => expect(merge).to.be.a('function')))
|
|
11
|
-
|
|
12
|
-
describe('`merge()`', () => {
|
|
13
|
-
describe('Always', () => it('returns an object', () => expect(merge()).to.be.an('object')))
|
|
14
|
-
|
|
15
|
-
describe('Merges', () => {
|
|
16
|
-
it('returns an object', () => {
|
|
17
|
-
const MOCK_FILES = [
|
|
18
|
-
'MOCK FILES'
|
|
19
|
-
]
|
|
20
|
-
const MOCK_IGNORES = [
|
|
21
|
-
'MOCK IGNORES'
|
|
22
|
-
]
|
|
23
|
-
const MOCK_LANGUAGE_OPTIONS = {
|
|
24
|
-
mockOption: 'MOCK LANGUAGE OPTIONS'
|
|
25
|
-
}
|
|
26
|
-
const MOCK_LINTER_OPTIONS = {
|
|
27
|
-
mockOption: 'MOCK LINTER OPTIONS'
|
|
28
|
-
}
|
|
29
|
-
const MOCK_PLUGINS = {
|
|
30
|
-
mockOption: 'MOCK PLUGINS'
|
|
31
|
-
}
|
|
32
|
-
const MOCK_RULES = {
|
|
33
|
-
mockOption: 'MOCK RULES'
|
|
34
|
-
}
|
|
35
|
-
const MOCK_SETTINGS = {
|
|
36
|
-
mockOption: 'MOCK SETTINGS'
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
const {
|
|
40
|
-
languageOptions: RECOMMENDED_LANGUAGE_OPTIONS,
|
|
41
|
-
linterOptions: RECOMMENDED_LINTER_OPTIONS,
|
|
42
|
-
plugins: RECOMMENDED_PLUGINS,
|
|
43
|
-
rules: RECOMMENDED_RULES,
|
|
44
|
-
settings: RECOMMENDED_SETTINGS
|
|
45
|
-
} = RECOMMENDED
|
|
46
|
-
|
|
47
|
-
return (
|
|
48
|
-
expect(
|
|
49
|
-
merge({
|
|
50
|
-
files: MOCK_FILES,
|
|
51
|
-
ignores: MOCK_IGNORES,
|
|
52
|
-
languageOptions: MOCK_LANGUAGE_OPTIONS,
|
|
53
|
-
linterOptions: MOCK_LINTER_OPTIONS,
|
|
54
|
-
plugins: MOCK_PLUGINS,
|
|
55
|
-
rules: MOCK_RULES,
|
|
56
|
-
settings: MOCK_SETTINGS
|
|
57
|
-
})
|
|
58
|
-
)
|
|
59
|
-
.to.eql({
|
|
60
|
-
...RECOMMENDED,
|
|
61
|
-
files: MOCK_FILES,
|
|
62
|
-
ignores: MOCK_IGNORES,
|
|
63
|
-
languageOptions: {
|
|
64
|
-
...RECOMMENDED_LANGUAGE_OPTIONS,
|
|
65
|
-
...MOCK_LANGUAGE_OPTIONS
|
|
66
|
-
},
|
|
67
|
-
linterOptions: {
|
|
68
|
-
...RECOMMENDED_LINTER_OPTIONS,
|
|
69
|
-
...MOCK_LINTER_OPTIONS
|
|
70
|
-
},
|
|
71
|
-
plugins: {
|
|
72
|
-
...RECOMMENDED_PLUGINS,
|
|
73
|
-
...MOCK_PLUGINS
|
|
74
|
-
},
|
|
75
|
-
rules: {
|
|
76
|
-
...RECOMMENDED_RULES,
|
|
77
|
-
...MOCK_RULES
|
|
78
|
-
},
|
|
79
|
-
settings: {
|
|
80
|
-
...RECOMMENDED_SETTINGS,
|
|
81
|
-
...MOCK_SETTINGS
|
|
82
|
-
}
|
|
83
|
-
})
|
|
84
|
-
)
|
|
85
|
-
})
|
|
86
|
-
})
|
|
87
|
-
})
|
|
88
|
-
})
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
expect
|
|
3
|
-
} from 'chai'
|
|
4
|
-
|
|
5
|
-
import recommended from '@sequencemedia/eslint-config-standard/configs/recommended'
|
|
6
|
-
|
|
7
|
-
describe('@sequencemedia/eslint-config-standard/configs/recommended', () => {
|
|
8
|
-
describe('`recommended`', () => it('is an object', () => expect(recommended).to.be.an('object')))
|
|
9
|
-
})
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
expect
|
|
3
|
-
} from 'chai'
|
|
4
|
-
|
|
5
|
-
import STANDARD from '@sequencemedia/eslint-config-standard/configs/standard'
|
|
6
|
-
|
|
7
|
-
import merge from '@sequencemedia/eslint-config-standard/configs/standard/merge'
|
|
8
|
-
|
|
9
|
-
describe('@sequencemedia/eslint-config-standard/configs/standard/merge', () => {
|
|
10
|
-
describe('`merge`', () => it('is a function', () => expect(merge).to.be.a('function')))
|
|
11
|
-
|
|
12
|
-
describe('`merge()`', () => {
|
|
13
|
-
describe('Always', () => it('returns an object', () => expect(merge()).to.be.an('object')))
|
|
14
|
-
|
|
15
|
-
describe('Merges', () => {
|
|
16
|
-
it('returns an object', () => {
|
|
17
|
-
const MOCK_FILES = [
|
|
18
|
-
'MOCK FILES'
|
|
19
|
-
]
|
|
20
|
-
const MOCK_IGNORES = [
|
|
21
|
-
'MOCK IGNORES'
|
|
22
|
-
]
|
|
23
|
-
const MOCK_LANGUAGE_OPTIONS = {
|
|
24
|
-
mockOption: 'MOCK LANGUAGE OPTIONS'
|
|
25
|
-
}
|
|
26
|
-
const MOCK_LINTER_OPTIONS = {
|
|
27
|
-
mockOption: 'MOCK LINTER OPTIONS'
|
|
28
|
-
}
|
|
29
|
-
const MOCK_PLUGINS = {
|
|
30
|
-
mockOption: 'MOCK PLUGINS'
|
|
31
|
-
}
|
|
32
|
-
const MOCK_RULES = {
|
|
33
|
-
mockOption: 'MOCK RULES'
|
|
34
|
-
}
|
|
35
|
-
const MOCK_SETTINGS = {
|
|
36
|
-
mockOption: 'MOCK SETTINGS'
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
const {
|
|
40
|
-
languageOptions: STANDARD_LANGUAGE_OPTIONS,
|
|
41
|
-
linterOptions: STANDARD_LINTER_OPTIONS,
|
|
42
|
-
plugins: STANDARD_PLUGINS,
|
|
43
|
-
rules: STANDARD_RULES,
|
|
44
|
-
settings: STANDARD_SETTINGS
|
|
45
|
-
} = STANDARD
|
|
46
|
-
|
|
47
|
-
return (
|
|
48
|
-
expect(
|
|
49
|
-
merge({
|
|
50
|
-
files: MOCK_FILES,
|
|
51
|
-
ignores: MOCK_IGNORES,
|
|
52
|
-
languageOptions: MOCK_LANGUAGE_OPTIONS,
|
|
53
|
-
linterOptions: MOCK_LINTER_OPTIONS,
|
|
54
|
-
plugins: MOCK_PLUGINS,
|
|
55
|
-
rules: MOCK_RULES,
|
|
56
|
-
settings: MOCK_SETTINGS
|
|
57
|
-
})
|
|
58
|
-
)
|
|
59
|
-
.to.eql({
|
|
60
|
-
...STANDARD,
|
|
61
|
-
files: MOCK_FILES,
|
|
62
|
-
ignores: MOCK_IGNORES,
|
|
63
|
-
languageOptions: {
|
|
64
|
-
...STANDARD_LANGUAGE_OPTIONS,
|
|
65
|
-
...MOCK_LANGUAGE_OPTIONS
|
|
66
|
-
},
|
|
67
|
-
linterOptions: {
|
|
68
|
-
...STANDARD_LINTER_OPTIONS,
|
|
69
|
-
...MOCK_LINTER_OPTIONS
|
|
70
|
-
},
|
|
71
|
-
plugins: {
|
|
72
|
-
...STANDARD_PLUGINS,
|
|
73
|
-
...MOCK_PLUGINS
|
|
74
|
-
},
|
|
75
|
-
rules: {
|
|
76
|
-
...STANDARD_RULES,
|
|
77
|
-
...MOCK_RULES
|
|
78
|
-
},
|
|
79
|
-
settings: {
|
|
80
|
-
...STANDARD_SETTINGS,
|
|
81
|
-
...MOCK_SETTINGS
|
|
82
|
-
}
|
|
83
|
-
})
|
|
84
|
-
)
|
|
85
|
-
})
|
|
86
|
-
})
|
|
87
|
-
})
|
|
88
|
-
})
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
expect
|
|
3
|
-
} from 'chai'
|
|
4
|
-
|
|
5
|
-
import standard from '@sequencemedia/eslint-config-standard/configs/standard'
|
|
6
|
-
|
|
7
|
-
describe('@sequencemedia/eslint-config-standard/configs/standard', () => {
|
|
8
|
-
describe('`standard`', () => it('is an object', () => expect(standard).to.be.an('object')))
|
|
9
|
-
})
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
expect
|
|
3
|
-
} from 'chai'
|
|
4
|
-
|
|
5
|
-
import STYLISTIC from '@sequencemedia/eslint-config-standard/configs/stylistic'
|
|
6
|
-
|
|
7
|
-
import merge from '@sequencemedia/eslint-config-standard/configs/stylistic/merge'
|
|
8
|
-
|
|
9
|
-
describe('@sequencemedia/eslint-config-standard/configs/stylistic/merge', () => {
|
|
10
|
-
describe('`merge`', () => it('is a function', () => expect(merge).to.be.a('function')))
|
|
11
|
-
|
|
12
|
-
describe('`merge()`', () => {
|
|
13
|
-
describe('Always', () => it('returns an object', () => expect(merge()).to.be.an('object')))
|
|
14
|
-
|
|
15
|
-
describe('Merges', () => {
|
|
16
|
-
it('returns an object', () => {
|
|
17
|
-
const MOCK_FILES = [
|
|
18
|
-
'MOCK FILES'
|
|
19
|
-
]
|
|
20
|
-
const MOCK_IGNORES = [
|
|
21
|
-
'MOCK IGNORES'
|
|
22
|
-
]
|
|
23
|
-
const MOCK_LANGUAGE_OPTIONS = {
|
|
24
|
-
mockOption: 'MOCK LANGUAGE OPTIONS'
|
|
25
|
-
}
|
|
26
|
-
const MOCK_LINTER_OPTIONS = {
|
|
27
|
-
mockOption: 'MOCK LINTER OPTIONS'
|
|
28
|
-
}
|
|
29
|
-
const MOCK_PLUGINS = {
|
|
30
|
-
mockOption: 'MOCK PLUGINS'
|
|
31
|
-
}
|
|
32
|
-
const MOCK_RULES = {
|
|
33
|
-
mockOption: 'MOCK RULES'
|
|
34
|
-
}
|
|
35
|
-
const MOCK_SETTINGS = {
|
|
36
|
-
mockOption: 'MOCK SETTINGS'
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
const {
|
|
40
|
-
languageOptions: STYLISTIC_LANGUAGE_OPTIONS,
|
|
41
|
-
linterOptions: STYLISTIC_LINTER_OPTIONS,
|
|
42
|
-
plugins: STYLISTIC_PLUGINS,
|
|
43
|
-
rules: STYLISTIC_RULES,
|
|
44
|
-
settings: STYLISTIC_SETTINGS
|
|
45
|
-
} = STYLISTIC
|
|
46
|
-
|
|
47
|
-
return (
|
|
48
|
-
expect(
|
|
49
|
-
merge({
|
|
50
|
-
files: MOCK_FILES,
|
|
51
|
-
ignores: MOCK_IGNORES,
|
|
52
|
-
languageOptions: MOCK_LANGUAGE_OPTIONS,
|
|
53
|
-
linterOptions: MOCK_LINTER_OPTIONS,
|
|
54
|
-
plugins: MOCK_PLUGINS,
|
|
55
|
-
rules: MOCK_RULES,
|
|
56
|
-
settings: MOCK_SETTINGS
|
|
57
|
-
})
|
|
58
|
-
)
|
|
59
|
-
.to.eql({
|
|
60
|
-
...STYLISTIC,
|
|
61
|
-
files: MOCK_FILES,
|
|
62
|
-
ignores: MOCK_IGNORES,
|
|
63
|
-
languageOptions: {
|
|
64
|
-
...STYLISTIC_LANGUAGE_OPTIONS,
|
|
65
|
-
...MOCK_LANGUAGE_OPTIONS
|
|
66
|
-
},
|
|
67
|
-
linterOptions: {
|
|
68
|
-
...STYLISTIC_LINTER_OPTIONS,
|
|
69
|
-
...MOCK_LINTER_OPTIONS
|
|
70
|
-
},
|
|
71
|
-
plugins: {
|
|
72
|
-
...STYLISTIC_PLUGINS,
|
|
73
|
-
...MOCK_PLUGINS
|
|
74
|
-
},
|
|
75
|
-
rules: {
|
|
76
|
-
...STYLISTIC_RULES,
|
|
77
|
-
...MOCK_RULES
|
|
78
|
-
},
|
|
79
|
-
settings: {
|
|
80
|
-
...STYLISTIC_SETTINGS,
|
|
81
|
-
...MOCK_SETTINGS
|
|
82
|
-
}
|
|
83
|
-
})
|
|
84
|
-
)
|
|
85
|
-
})
|
|
86
|
-
})
|
|
87
|
-
})
|
|
88
|
-
})
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
expect
|
|
3
|
-
} from 'chai'
|
|
4
|
-
|
|
5
|
-
import stylistic from '@sequencemedia/eslint-config-standard/configs/stylistic'
|
|
6
|
-
|
|
7
|
-
describe('@sequencemedia/eslint-config-standard/configs/stylistic', () => {
|
|
8
|
-
describe('`stylistic`', () => it('is an object', () => expect(stylistic).to.be.an('object')))
|
|
9
|
-
})
|
package/test/merge.spec.mjs
DELETED
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
expect
|
|
3
|
-
} from 'chai'
|
|
4
|
-
|
|
5
|
-
import eslintConfig from '@sequencemedia/eslint-config-standard'
|
|
6
|
-
|
|
7
|
-
import merge from '@sequencemedia/eslint-config-standard/merge'
|
|
8
|
-
|
|
9
|
-
describe('@sequencemedia/eslint-config-standard/merge', () => {
|
|
10
|
-
describe('`merge`', () => it('is a function', () => expect(merge).to.be.a('function')))
|
|
11
|
-
|
|
12
|
-
describe('`merge()`', () => {
|
|
13
|
-
describe('Always', () => it('returns an array', () => expect(merge()).to.be.an('array')))
|
|
14
|
-
|
|
15
|
-
describe('Merges', () => {
|
|
16
|
-
const [
|
|
17
|
-
DEFAULT,
|
|
18
|
-
STANDARD,
|
|
19
|
-
STYLISTIC
|
|
20
|
-
] = eslintConfig
|
|
21
|
-
|
|
22
|
-
it('returns an array', () => {
|
|
23
|
-
const MOCK_FILES = [
|
|
24
|
-
'MOCK FILES'
|
|
25
|
-
]
|
|
26
|
-
const MOCK_IGNORES = [
|
|
27
|
-
'MOCK IGNORES'
|
|
28
|
-
]
|
|
29
|
-
const MOCK_LANGUAGE_OPTIONS = {
|
|
30
|
-
mockOption: 'MOCK LANGUAGE OPTIONS'
|
|
31
|
-
}
|
|
32
|
-
const MOCK_LINTER_OPTIONS = {
|
|
33
|
-
mockOption: 'MOCK LINTER OPTIONS'
|
|
34
|
-
}
|
|
35
|
-
const MOCK_PLUGINS = {
|
|
36
|
-
mockOption: 'MOCK PLUGINS'
|
|
37
|
-
}
|
|
38
|
-
const MOCK_RULES = {
|
|
39
|
-
mockOption: 'MOCK RULES'
|
|
40
|
-
}
|
|
41
|
-
const MOCK_SETTINGS = {
|
|
42
|
-
mockOption: 'MOCK SETTINGS'
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
const {
|
|
46
|
-
languageOptions: STANDARD_LANGUAGE_OPTIONS,
|
|
47
|
-
linterOptions: STANDARD_LINTER_OPTIONS,
|
|
48
|
-
plugins: STANDARD_PLUGINS,
|
|
49
|
-
rules: STANDARD_RULES,
|
|
50
|
-
settings: STANDARD_SETTINGS
|
|
51
|
-
} = STANDARD
|
|
52
|
-
|
|
53
|
-
const {
|
|
54
|
-
languageOptions: STYLISTIC_LANGUAGE_OPTIONS,
|
|
55
|
-
linterOptions: STYLISTIC_LINTER_OPTIONS,
|
|
56
|
-
plugins: STYLISTIC_PLUGINS,
|
|
57
|
-
rules: STYLISTIC_RULES,
|
|
58
|
-
settings: STYLISTIC_SETTINGS
|
|
59
|
-
} = STYLISTIC
|
|
60
|
-
|
|
61
|
-
return (
|
|
62
|
-
expect(
|
|
63
|
-
merge({
|
|
64
|
-
files: MOCK_FILES,
|
|
65
|
-
ignores: MOCK_IGNORES,
|
|
66
|
-
languageOptions: MOCK_LANGUAGE_OPTIONS,
|
|
67
|
-
linterOptions: MOCK_LINTER_OPTIONS,
|
|
68
|
-
plugins: MOCK_PLUGINS,
|
|
69
|
-
rules: MOCK_RULES,
|
|
70
|
-
settings: MOCK_SETTINGS
|
|
71
|
-
})
|
|
72
|
-
)
|
|
73
|
-
.to.eql([
|
|
74
|
-
DEFAULT,
|
|
75
|
-
{
|
|
76
|
-
...STANDARD,
|
|
77
|
-
files: MOCK_FILES,
|
|
78
|
-
ignores: MOCK_IGNORES,
|
|
79
|
-
languageOptions: {
|
|
80
|
-
...STANDARD_LANGUAGE_OPTIONS,
|
|
81
|
-
...MOCK_LANGUAGE_OPTIONS
|
|
82
|
-
},
|
|
83
|
-
linterOptions: {
|
|
84
|
-
...STANDARD_LINTER_OPTIONS,
|
|
85
|
-
...MOCK_LINTER_OPTIONS
|
|
86
|
-
},
|
|
87
|
-
plugins: {
|
|
88
|
-
...STANDARD_PLUGINS,
|
|
89
|
-
...MOCK_PLUGINS
|
|
90
|
-
},
|
|
91
|
-
rules: {
|
|
92
|
-
...STANDARD_RULES,
|
|
93
|
-
...MOCK_RULES
|
|
94
|
-
},
|
|
95
|
-
settings: {
|
|
96
|
-
...STANDARD_SETTINGS,
|
|
97
|
-
...MOCK_SETTINGS
|
|
98
|
-
}
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
...STYLISTIC,
|
|
102
|
-
files: MOCK_FILES,
|
|
103
|
-
ignores: MOCK_IGNORES,
|
|
104
|
-
languageOptions: {
|
|
105
|
-
...STYLISTIC_LANGUAGE_OPTIONS,
|
|
106
|
-
...MOCK_LANGUAGE_OPTIONS
|
|
107
|
-
},
|
|
108
|
-
linterOptions: {
|
|
109
|
-
...STYLISTIC_LINTER_OPTIONS,
|
|
110
|
-
...MOCK_LINTER_OPTIONS
|
|
111
|
-
},
|
|
112
|
-
plugins: {
|
|
113
|
-
...STYLISTIC_PLUGINS,
|
|
114
|
-
...MOCK_PLUGINS
|
|
115
|
-
},
|
|
116
|
-
rules: {
|
|
117
|
-
...STYLISTIC_RULES,
|
|
118
|
-
...MOCK_RULES
|
|
119
|
-
},
|
|
120
|
-
settings: {
|
|
121
|
-
...STYLISTIC_SETTINGS,
|
|
122
|
-
...MOCK_SETTINGS
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
])
|
|
126
|
-
)
|
|
127
|
-
})
|
|
128
|
-
})
|
|
129
|
-
})
|
|
130
|
-
})
|