@sequencemedia/eslint-config-standard 0.2.6 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sequencemedia/eslint-config-standard",
3
- "version": "0.2.6",
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.0",
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",
@@ -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
- })
@@ -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
- })