@bigcommerce/eslint-config 2.8.0 → 2.9.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/configs/base.js +50 -45
- package/configs/jest.js +1 -1
- package/configs/typescript.js +6 -36
- package/package.json +12 -10
- package/CHANGELOG.md +0 -261
package/configs/base.js
CHANGED
|
@@ -5,12 +5,58 @@ module.exports = {
|
|
|
5
5
|
},
|
|
6
6
|
extends: ['eslint:recommended', 'plugin:import/errors', 'plugin:import/warnings'],
|
|
7
7
|
parserOptions: {
|
|
8
|
-
ecmaVersion:
|
|
8
|
+
ecmaVersion: 'latest',
|
|
9
9
|
sourceType: 'module',
|
|
10
10
|
},
|
|
11
|
-
plugins: ['import', 'gettext', 'switch-case'],
|
|
11
|
+
plugins: ['import', 'gettext', 'switch-case', '@stylistic'],
|
|
12
12
|
reportUnusedDisableDirectives: true,
|
|
13
13
|
rules: {
|
|
14
|
+
'@stylistic/padding-line-between-statements': [
|
|
15
|
+
'warn',
|
|
16
|
+
{
|
|
17
|
+
blankLine: 'always',
|
|
18
|
+
next: 'return',
|
|
19
|
+
prev: '*',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
blankLine: 'always',
|
|
23
|
+
next: ['block', 'block-like', 'class', 'const', 'let', 'var', 'interface'],
|
|
24
|
+
prev: '*',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
blankLine: 'always',
|
|
28
|
+
next: '*',
|
|
29
|
+
prev: ['block', 'block-like', 'class', 'const', 'let', 'var', 'interface'],
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
blankLine: 'any',
|
|
33
|
+
next: ['const', 'let', 'var'],
|
|
34
|
+
prev: ['const', 'let', 'var'],
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
blankLine: 'any',
|
|
38
|
+
next: ['case'],
|
|
39
|
+
prev: ['case'],
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
blankLine: 'always',
|
|
43
|
+
next: '*',
|
|
44
|
+
prev: 'directive',
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
blankLine: 'any',
|
|
48
|
+
next: 'directive',
|
|
49
|
+
prev: 'directive',
|
|
50
|
+
},
|
|
51
|
+
],
|
|
52
|
+
'@stylistic/spaced-comment': [
|
|
53
|
+
'warn',
|
|
54
|
+
'always',
|
|
55
|
+
{
|
|
56
|
+
block: { balanced: true, exceptions: ['-', '+'], markers: ['=', '!'] },
|
|
57
|
+
line: { exceptions: ['-', '+'], markers: ['=', '!'] },
|
|
58
|
+
},
|
|
59
|
+
],
|
|
14
60
|
'array-callback-return': 'error',
|
|
15
61
|
'arrow-body-style': ['error', 'as-needed', { requireReturnForObjectLiteral: false }],
|
|
16
62
|
'block-scoped-var': 'error',
|
|
@@ -24,7 +70,6 @@ module.exports = {
|
|
|
24
70
|
'func-names': 'error',
|
|
25
71
|
'getter-return': ['error', { allowImplicit: true }],
|
|
26
72
|
'gettext/no-variable-string': 'error',
|
|
27
|
-
'global-require': 'error',
|
|
28
73
|
'guard-for-in': 'error',
|
|
29
74
|
'import/default': 'off',
|
|
30
75
|
'import/dynamic-import-chunkname': 'error',
|
|
@@ -41,6 +86,7 @@ module.exports = {
|
|
|
41
86
|
'import/newline-after-import': 'warn',
|
|
42
87
|
'import/no-absolute-path': 'error',
|
|
43
88
|
'import/no-amd': 'error',
|
|
89
|
+
'import/no-duplicates': ['warn', { 'prefer-inline': true }],
|
|
44
90
|
'import/no-dynamic-require': 'error',
|
|
45
91
|
'import/no-extraneous-dependencies': 'error',
|
|
46
92
|
'import/no-mutable-exports': 'error',
|
|
@@ -55,7 +101,6 @@ module.exports = {
|
|
|
55
101
|
'newlines-between': 'always',
|
|
56
102
|
},
|
|
57
103
|
],
|
|
58
|
-
'lines-around-directive': ['error', { after: 'always', before: 'always' }],
|
|
59
104
|
'max-classes-per-file': ['error', 1],
|
|
60
105
|
'new-cap': [
|
|
61
106
|
'error',
|
|
@@ -70,7 +115,6 @@ module.exports = {
|
|
|
70
115
|
'no-array-constructor': 'error',
|
|
71
116
|
'no-await-in-loop': 'error',
|
|
72
117
|
'no-bitwise': 'error',
|
|
73
|
-
'no-buffer-constructor': 'error',
|
|
74
118
|
'no-caller': 'error',
|
|
75
119
|
'no-cond-assign': ['error', 'always'],
|
|
76
120
|
'no-console': 'warn',
|
|
@@ -95,12 +139,10 @@ module.exports = {
|
|
|
95
139
|
'no-nested-ternary': 'error',
|
|
96
140
|
'no-new': 'error',
|
|
97
141
|
'no-new-func': 'error',
|
|
98
|
-
'no-new-object': 'error',
|
|
99
|
-
'no-new-require': 'error',
|
|
100
142
|
'no-new-wrappers': 'error',
|
|
143
|
+
'no-object-constructor': 'error',
|
|
101
144
|
'no-octal-escape': 'error',
|
|
102
145
|
'no-param-reassign': ['error', { props: false }],
|
|
103
|
-
'no-path-concat': 'error',
|
|
104
146
|
'no-plusplus': 'error',
|
|
105
147
|
'no-proto': 'error',
|
|
106
148
|
'no-prototype-builtins': 'off',
|
|
@@ -251,7 +293,6 @@ module.exports = {
|
|
|
251
293
|
},
|
|
252
294
|
],
|
|
253
295
|
'no-return-assign': ['error', 'except-parens'],
|
|
254
|
-
'no-return-await': 'error',
|
|
255
296
|
'no-script-url': 'error',
|
|
256
297
|
'no-self-compare': 'error',
|
|
257
298
|
'no-sequences': 'error',
|
|
@@ -276,34 +317,6 @@ module.exports = {
|
|
|
276
317
|
'object-shorthand': ['error', 'always', { avoidQuotes: true, ignoreConstructors: false }],
|
|
277
318
|
'one-var': ['error', 'never'],
|
|
278
319
|
'operator-assignment': ['error', 'always'],
|
|
279
|
-
'padding-line-between-statements': [
|
|
280
|
-
'warn',
|
|
281
|
-
{
|
|
282
|
-
blankLine: 'always',
|
|
283
|
-
next: 'return',
|
|
284
|
-
prev: '*',
|
|
285
|
-
},
|
|
286
|
-
{
|
|
287
|
-
blankLine: 'always',
|
|
288
|
-
next: ['block', 'block-like', 'class', 'const', 'let', 'var'],
|
|
289
|
-
prev: '*',
|
|
290
|
-
},
|
|
291
|
-
{
|
|
292
|
-
blankLine: 'always',
|
|
293
|
-
next: '*',
|
|
294
|
-
prev: ['block', 'block-like', 'class', 'const', 'let', 'var'],
|
|
295
|
-
},
|
|
296
|
-
{
|
|
297
|
-
blankLine: 'any',
|
|
298
|
-
next: ['const', 'let', 'var'],
|
|
299
|
-
prev: ['const', 'let', 'var'],
|
|
300
|
-
},
|
|
301
|
-
{
|
|
302
|
-
blankLine: 'any',
|
|
303
|
-
next: ['case'],
|
|
304
|
-
prev: ['case'],
|
|
305
|
-
},
|
|
306
|
-
],
|
|
307
320
|
'prefer-arrow-callback': ['error', { allowNamedFunctions: false, allowUnboundThis: true }],
|
|
308
321
|
'prefer-const': ['error', { destructuring: 'any', ignoreReadBeforeAssign: true }],
|
|
309
322
|
'prefer-numeric-literals': 'error',
|
|
@@ -311,14 +324,6 @@ module.exports = {
|
|
|
311
324
|
'prefer-template': 'error',
|
|
312
325
|
radix: 'error',
|
|
313
326
|
'sort-imports': ['error', { ignoreCase: true, ignoreDeclarationSort: true }],
|
|
314
|
-
'spaced-comment': [
|
|
315
|
-
'warn',
|
|
316
|
-
'always',
|
|
317
|
-
{
|
|
318
|
-
block: { balanced: true, exceptions: ['-', '+'], markers: ['=', '!'] },
|
|
319
|
-
line: { exceptions: ['-', '+'], markers: ['=', '!'] },
|
|
320
|
-
},
|
|
321
|
-
],
|
|
322
327
|
strict: 'error',
|
|
323
328
|
'switch-case/newline-between-switch-case': ['warn', 'always', { fallthrough: 'never' }],
|
|
324
329
|
'symbol-description': 'error',
|
package/configs/jest.js
CHANGED
|
@@ -13,9 +13,9 @@ module.exports = {
|
|
|
13
13
|
},
|
|
14
14
|
],
|
|
15
15
|
'jest-formatting/padding-around-all': 'warn',
|
|
16
|
+
'jest/no-conditional-in-test': 'error',
|
|
16
17
|
'jest/no-done-callback': 'off',
|
|
17
18
|
'jest/no-duplicate-hooks': 'off',
|
|
18
|
-
'jest/no-if': 'error',
|
|
19
19
|
'jest/no-restricted-matchers': [
|
|
20
20
|
'error',
|
|
21
21
|
{
|
package/configs/typescript.js
CHANGED
|
@@ -2,10 +2,9 @@ const { join } = require('path');
|
|
|
2
2
|
|
|
3
3
|
module.exports = {
|
|
4
4
|
extends: [
|
|
5
|
-
'plugin:@typescript-eslint/eslint-recommended',
|
|
6
|
-
'plugin:@typescript-eslint/recommended',
|
|
7
|
-
'plugin:@typescript-eslint/recommended-requiring-type-checking',
|
|
8
5
|
'plugin:import/typescript',
|
|
6
|
+
'plugin:@typescript-eslint/stylistic-type-checked',
|
|
7
|
+
'plugin:@typescript-eslint/strict-type-checked',
|
|
9
8
|
'plugin:@bigcommerce/recommended',
|
|
10
9
|
],
|
|
11
10
|
parser: '@typescript-eslint/parser',
|
|
@@ -95,7 +94,7 @@ module.exports = {
|
|
|
95
94
|
selector: ['objectLiteralProperty', 'typeProperty'],
|
|
96
95
|
},
|
|
97
96
|
],
|
|
98
|
-
'@typescript-eslint/no-
|
|
97
|
+
'@typescript-eslint/no-confusing-void-expression': ['error', { ignoreArrowShorthand: true }],
|
|
99
98
|
'@typescript-eslint/no-explicit-any': 'error',
|
|
100
99
|
'@typescript-eslint/no-misused-promises': [
|
|
101
100
|
'error',
|
|
@@ -112,7 +111,6 @@ module.exports = {
|
|
|
112
111
|
},
|
|
113
112
|
],
|
|
114
113
|
'@typescript-eslint/no-shadow': ['error', { hoist: 'all' }],
|
|
115
|
-
'@typescript-eslint/no-throw-literal': ['error'],
|
|
116
114
|
'@typescript-eslint/no-unnecessary-condition': 'error',
|
|
117
115
|
'@typescript-eslint/no-unnecessary-type-assertion': 'error',
|
|
118
116
|
'@typescript-eslint/no-unused-expressions': 'error',
|
|
@@ -126,37 +124,10 @@ module.exports = {
|
|
|
126
124
|
],
|
|
127
125
|
'@typescript-eslint/no-use-before-define': ['error', 'nofunc'],
|
|
128
126
|
'@typescript-eslint/no-useless-constructor': 'error',
|
|
129
|
-
'@typescript-eslint/padding-line-between-statements': [
|
|
130
|
-
'warn',
|
|
131
|
-
{
|
|
132
|
-
blankLine: 'always',
|
|
133
|
-
next: 'return',
|
|
134
|
-
prev: '*',
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
blankLine: 'always',
|
|
138
|
-
next: ['block', 'block-like', 'class', 'const', 'let', 'var', 'interface'],
|
|
139
|
-
prev: '*',
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
blankLine: 'always',
|
|
143
|
-
next: '*',
|
|
144
|
-
prev: ['block', 'block-like', 'class', 'const', 'let', 'var', 'interface'],
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
blankLine: 'any',
|
|
148
|
-
next: ['const', 'let', 'var'],
|
|
149
|
-
prev: ['const', 'let', 'var'],
|
|
150
|
-
},
|
|
151
|
-
{
|
|
152
|
-
blankLine: 'any',
|
|
153
|
-
next: ['case'],
|
|
154
|
-
prev: ['case'],
|
|
155
|
-
},
|
|
156
|
-
],
|
|
157
127
|
'@typescript-eslint/prefer-for-of': 'error',
|
|
158
128
|
'@typescript-eslint/prefer-function-type': 'error',
|
|
159
129
|
'@typescript-eslint/require-await': 'error',
|
|
130
|
+
'@typescript-eslint/restrict-template-expressions': ['error', { allowNumber: true }],
|
|
160
131
|
'@typescript-eslint/return-await': 'error',
|
|
161
132
|
'@typescript-eslint/unbound-method': 'off',
|
|
162
133
|
'@typescript-eslint/unified-signatures': 'error',
|
|
@@ -169,12 +140,11 @@ module.exports = {
|
|
|
169
140
|
'import/named': 'off',
|
|
170
141
|
'no-duplicate-imports': 'off',
|
|
171
142
|
'no-shadow': 'off',
|
|
172
|
-
'no-throw-literal': '
|
|
143
|
+
'no-throw-literal': 'off',
|
|
173
144
|
'no-unused-expressions': 'off',
|
|
174
145
|
'no-unused-vars': 'off',
|
|
175
146
|
'no-use-before-define': 'off',
|
|
176
147
|
'no-useless-constructor': 'off',
|
|
177
|
-
'padding-line-between-statements': 'off',
|
|
178
148
|
'sort-keys': 'off',
|
|
179
149
|
},
|
|
180
150
|
settings: {
|
|
@@ -191,7 +161,7 @@ module.exports = {
|
|
|
191
161
|
{
|
|
192
162
|
files: ['**/*.d.ts'],
|
|
193
163
|
rules: {
|
|
194
|
-
'spaced-comment': [
|
|
164
|
+
'@stylistic/spaced-comment': [
|
|
195
165
|
'warn',
|
|
196
166
|
'always',
|
|
197
167
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigcommerce/eslint-config",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.9.0",
|
|
4
4
|
"description": "Default ESLint configuration used at BigCommerce",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"files": [
|
|
@@ -20,26 +20,27 @@
|
|
|
20
20
|
"directory": "packages/eslint-config"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@bigcommerce/eslint-plugin": "^1.
|
|
23
|
+
"@bigcommerce/eslint-plugin": "^1.3.0",
|
|
24
24
|
"@rushstack/eslint-patch": "^1.1.3",
|
|
25
|
-
"@
|
|
26
|
-
"@typescript-eslint/
|
|
27
|
-
"eslint
|
|
25
|
+
"@stylistic/eslint-plugin": "^2.1.0",
|
|
26
|
+
"@typescript-eslint/eslint-plugin": "^7.8.0",
|
|
27
|
+
"@typescript-eslint/parser": "^7.8.0",
|
|
28
|
+
"eslint-config-prettier": "^9.1.0",
|
|
28
29
|
"eslint-import-resolver-typescript": "^3.5.2",
|
|
29
30
|
"eslint-plugin-gettext": "^1.2.0",
|
|
30
31
|
"eslint-plugin-import": "^2.26.0",
|
|
31
|
-
"eslint-plugin-jest": "^
|
|
32
|
+
"eslint-plugin-jest": "^28.4.0",
|
|
32
33
|
"eslint-plugin-jest-formatting": "^3.1.0",
|
|
33
34
|
"eslint-plugin-jsdoc": "^48.0.2",
|
|
34
35
|
"eslint-plugin-jsx-a11y": "^6.5.1",
|
|
35
|
-
"eslint-plugin-prettier": "^4.
|
|
36
|
+
"eslint-plugin-prettier": "^4.2.1",
|
|
36
37
|
"eslint-plugin-react": "^7.29.4",
|
|
37
38
|
"eslint-plugin-react-hooks": "^4.5.0",
|
|
38
39
|
"eslint-plugin-switch-case": "^1.1.2",
|
|
39
|
-
"prettier": "^2.
|
|
40
|
+
"prettier": "^2.8.8"
|
|
40
41
|
},
|
|
41
42
|
"devDependencies": {
|
|
42
|
-
"react": "^
|
|
43
|
+
"react": "^18.3.1"
|
|
43
44
|
},
|
|
44
45
|
"peerDependencies": {
|
|
45
46
|
"eslint": "^8.0.0",
|
|
@@ -49,5 +50,6 @@
|
|
|
49
50
|
"typescript": {
|
|
50
51
|
"optional": true
|
|
51
52
|
}
|
|
52
|
-
}
|
|
53
|
+
},
|
|
54
|
+
"gitHead": "1550befd2d38dc65c4872b2cb45c4d22126f1e2d"
|
|
53
55
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,261 +0,0 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
-
|
|
6
|
-
# [2.7.0](https://github.com/bigcommerce/eslint-config/compare/@bigcommerce/eslint-config@2.6.2...@bigcommerce/eslint-config@2.7.0) (2023-03-27)
|
|
7
|
-
|
|
8
|
-
**Note:** Version bump only for package @bigcommerce/eslint-config
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
## [2.6.2](https://github.com/bigcommerce/eslint-config/compare/@bigcommerce/eslint-config@2.6.1...@bigcommerce/eslint-config@2.6.2) (2022-11-16)
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
### Bug Fixes
|
|
18
|
-
|
|
19
|
-
* **config:** FE-00 Mark `func-names` rule as error ([d34937c](https://github.com/bigcommerce/eslint-config/commit/d34937c8b10446883e9fafe4deaa0a5212c215bc))
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
## [2.6.1](https://github.com/bigcommerce/eslint-config/compare/@bigcommerce/eslint-config@2.6.0...@bigcommerce/eslint-config@2.6.1) (2022-05-18)
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
### Bug Fixes
|
|
29
|
-
|
|
30
|
-
* **config:** FE-00 don't add jest rules if jest is not installed ([09e97c8](https://github.com/bigcommerce/eslint-config/commit/09e97c8b4eb96f3f0c30c35b1ae533e98a8336da))
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
# [2.6.0](https://github.com/bigcommerce/eslint-config/compare/@bigcommerce/eslint-config@2.5.0...@bigcommerce/eslint-config@2.6.0) (2022-05-05)
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
### Bug Fixes
|
|
40
|
-
|
|
41
|
-
* **config:** FE-00 Allow functions returning promises to be passed into jsx attributes that expect void return ([e5b1da8](https://github.com/bigcommerce/eslint-config/commit/e5b1da8857ebe274040576b0ceb0f07c01e81033))
|
|
42
|
-
* **config:** FE-00 Ignore naming convention for objectLiteralProperty and typeProperty ([29fa538](https://github.com/bigcommerce/eslint-config/commit/29fa5387b75e8010de39d31bcb1743650c00608a))
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
### Features
|
|
46
|
-
|
|
47
|
-
* **config:** FE-00 add eslint rule for curly braces presence ([d2ba14a](https://github.com/bigcommerce/eslint-config/commit/d2ba14a147e9086159a09bedd79dfd9b78456cd3))
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
# [2.5.0](https://github.com/bigcommerce/eslint-config/compare/@bigcommerce/eslint-config@2.4.0...@bigcommerce/eslint-config@2.5.0) (2022-04-25)
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
### Features
|
|
57
|
-
|
|
58
|
-
* **config:** FE-00 add curly rule ([c88b375](https://github.com/bigcommerce/eslint-config/commit/c88b3755fb70586241e794f27fe06b8752c4b9e9))
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
# [2.4.0](https://github.com/bigcommerce/eslint-config/compare/@bigcommerce/eslint-config@2.3.1...@bigcommerce/eslint-config@2.4.0) (2022-03-10)
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
### Features
|
|
68
|
-
|
|
69
|
-
* **config:** FE-00 disable default-case for ts files ([e8eeea9](https://github.com/bigcommerce/eslint-config/commit/e8eeea910730a492fd7ce28ca72c5758372bd510))
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
## [2.3.1](https://github.com/bigcommerce/eslint-config/compare/@bigcommerce/eslint-config@2.3.0...@bigcommerce/eslint-config@2.3.1) (2021-12-15)
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
### Bug Fixes
|
|
79
|
-
|
|
80
|
-
* **config:** FE-00 incorrect entrypoint ([fa6f798](https://github.com/bigcommerce/eslint-config/commit/fa6f798bd44842d7b5791136e28c1ec5409301e0))
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
# [2.3.0](https://github.com/bigcommerce/eslint-config/compare/@bigcommerce/eslint-config@2.2.0...@bigcommerce/eslint-config@2.3.0) (2021-12-13)
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
### Features
|
|
90
|
-
|
|
91
|
-
* **config:** FE-00 unescaped entities denylist ([e82c9d4](https://github.com/bigcommerce/eslint-config/commit/e82c9d41b3bf29ba88596fc1fe96fbd312c791e3))
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
# [2.2.0](https://github.com/bigcommerce/eslint-config/compare/@bigcommerce/eslint-config@2.1.0...@bigcommerce/eslint-config@2.2.0) (2021-11-10)
|
|
98
|
-
|
|
99
|
-
**Note:** Version bump only for package @bigcommerce/eslint-config
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
# [2.1.0](https://github.com/bigcommerce/eslint-config/compare/@bigcommerce/eslint-config@2.0.0...@bigcommerce/eslint-config@2.1.0) (2021-10-27)
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
### Features
|
|
109
|
-
|
|
110
|
-
* **config:** add interface to padding-line-between-statements ([2474f93](https://github.com/bigcommerce/eslint-config/commit/2474f931b458f14adf7b4c32d5fe3ece64fbd351))
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
# [2.0.0](https://github.com/bigcommerce/eslint-config/compare/@bigcommerce/eslint-config@2.0.0-alpha.8...@bigcommerce/eslint-config@2.0.0) (2021-10-06)
|
|
117
|
-
|
|
118
|
-
**Note:** Version bump only for package @bigcommerce/eslint-config
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
# [2.0.0-alpha.8](https://github.com/bigcommerce/eslint-config/compare/@bigcommerce/eslint-config@2.0.0-alpha.7...@bigcommerce/eslint-config@2.0.0-alpha.8) (2021-09-02)
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
### Features
|
|
128
|
-
|
|
129
|
-
* **config:** remove nextjs rules ([f3bdf23](https://github.com/bigcommerce/eslint-config/commit/f3bdf237c83c3e4e5c1f4c278c31895696bacf01))
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
# [2.0.0-alpha.7](https://github.com/bigcommerce/eslint-config/compare/@bigcommerce/eslint-config@2.0.0-alpha.6...@bigcommerce/eslint-config@2.0.0-alpha.7) (2021-07-12)
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
### Features
|
|
139
|
-
|
|
140
|
-
* **config:** allow arrow functions react/jsx-no-bind ([87e9df5](https://github.com/bigcommerce/eslint-config/commit/87e9df54122ede694567163e470d420522a6dc11))
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
# [2.0.0-alpha.6](https://github.com/bigcommerce/eslint-config/compare/@bigcommerce/eslint-config@2.0.0-alpha.5...@bigcommerce/eslint-config@2.0.0-alpha.6) (2021-07-07)
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
### Bug Fixes
|
|
150
|
-
|
|
151
|
-
* **config:** disable jsx-a11y/no-onchange ([0d3533a](https://github.com/bigcommerce/eslint-config/commit/0d3533a43e5ccedac8be71380c493cf52618bc82))
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
### Features
|
|
155
|
-
|
|
156
|
-
* **config:** add nextjs rules ([d0670f9](https://github.com/bigcommerce/eslint-config/commit/d0670f911eb166aa0ba93ba69a3aa690fc0d7891))
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
# [2.0.0-alpha.5](https://github.com/bigcommerce/eslint-config/compare/@bigcommerce/eslint-config@2.0.0-alpha.4...@bigcommerce/eslint-config@2.0.0-alpha.5) (2021-06-21)
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
### Bug Fixes
|
|
166
|
-
|
|
167
|
-
* **config:** move jsx-file-extension rule to react config ([c38e49c](https://github.com/bigcommerce/eslint-config/commit/c38e49c2947eefe6b8326b49c7ca16bcda843f70))
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
# [2.0.0-alpha.4](https://github.com/bigcommerce/eslint-config/compare/@bigcommerce/eslint-config@2.0.0-alpha.3...@bigcommerce/eslint-config@2.0.0-alpha.4) (2021-06-15)
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
### Bug Fixes
|
|
177
|
-
|
|
178
|
-
* **config:** remove rules conflicting with prettier ([bd917e9](https://github.com/bigcommerce/eslint-config/commit/bd917e93cea8ad11dd46044024d5bf54d88682be))
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
### Features
|
|
182
|
-
|
|
183
|
-
* **config:** stylistic rules are now warnings ([0dae5ac](https://github.com/bigcommerce/eslint-config/commit/0dae5ac18809d800e0813c3a134223103d8da744))
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
# [2.0.0-alpha.3](https://github.com/bigcommerce/eslint-config/compare/@bigcommerce/eslint-config@2.0.0-alpha.2...@bigcommerce/eslint-config@2.0.0-alpha.3) (2021-06-11)
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
### Bug Fixes
|
|
193
|
-
|
|
194
|
-
* **config:** switch case fallthrough no longer requires a linebreak ([69c78dd](https://github.com/bigcommerce/eslint-config/commit/69c78ddc7236e3486e9011f63c4d81ba0f3ec420))
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
### Features
|
|
198
|
-
|
|
199
|
-
* **config:** disallow getters and setters ([9023e20](https://github.com/bigcommerce/eslint-config/commit/9023e20d806f1b8b888e9d0e1fadc5b334cd2dbb))
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
# [2.0.0-alpha.2](https://github.com/bigcommerce/eslint-config/compare/@bigcommerce/eslint-config@2.0.0-alpha.1...@bigcommerce/eslint-config@2.0.0-alpha.2) (2021-06-03)
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
### Bug Fixes
|
|
209
|
-
|
|
210
|
-
* **config:** allow triple-slash directives on .d.ts files ([eda4efb](https://github.com/bigcommerce/eslint-config/commit/eda4efb9c643754de66d32efa9e85532492ca19c))
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
# [2.0.0-alpha.1](https://github.com/bigcommerce/eslint-config/compare/@bigcommerce/eslint-config@2.0.0-alpha.0...@bigcommerce/eslint-config@2.0.0-alpha.1) (2021-06-01)
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
### Features
|
|
220
|
-
|
|
221
|
-
* **config:** enable anchor-is-valid and remove jsx-ident-props ([ab1b6c3](https://github.com/bigcommerce/eslint-config/commit/ab1b6c3746df6701db06020d414321834c3a5afc))
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
# 2.0.0-alpha.0 (2021-05-27)
|
|
228
|
-
|
|
229
|
-
### Features
|
|
230
|
-
|
|
231
|
-
* **core:** modern resolution patch + prettier ([ca54583](https://github.com/bigcommerce/eslint-config/commit/ca5458390d5cac4eaf731669e1e0690861455851))
|
|
232
|
-
* **core:** add missing ts rules ([e750786](https://github.com/bigcommerce/eslint-config/commit/e750786c2754a2d12b06dfc36df9379997e77823))
|
|
233
|
-
* **core:** add import and strict boolean rules ([c1e23af](https://github.com/bigcommerce/eslint-config/commit/c1e23af30ffad0b53bbfb399e1120f3423f9a8c5))
|
|
234
|
-
* **core:** tweak conflicting rules ([369c42a](https://github.com/bigcommerce/eslint-config/commit/369c42ab85e563d813ae71b0d24cbd0cb85438a2))
|
|
235
|
-
|
|
236
|
-
### Bug Fixes
|
|
237
|
-
|
|
238
|
-
* **config:** no longer turn off all ts eslint rules ([7efcafd](https://github.com/bigcommerce/eslint-config/commit/7efcafd7cfa23087612a89b4f5ffd99bc4017e50))
|
|
239
|
-
|
|
240
|
-
<a name="1.0.1"></a>
|
|
241
|
-
# [1.0.1](https://github.com/bigcommerce/eslint-config/compare/v1.0.0...v1.0.1) (2020-03-10)
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
### Bug Fixes
|
|
245
|
-
|
|
246
|
-
* **common:** add missing plugin import ([#3](https://github.com/bigcommerce/eslint-config/issues/3)) ([98f296a](https://github.com/bigcommerce/eslint-config/commit/98f296a))
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
<a name="1.0.0"></a>
|
|
251
|
-
# [1.0.0](https://github.com/bigcommerce/eslint-config/compare/v0.1.0...v1.0.0) (2019-09-23)
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
<a name="0.1.0"></a>
|
|
256
|
-
# 0.1.0 (2019-09-23)
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
### Features
|
|
260
|
-
|
|
261
|
-
* **common:** CHECKOUT-4422 Extract React rules from checkout-js ([4280816](https://github.com/bigcommerce/eslint-config/commit/4280816))
|