Skip to content

Commit e4b08ed

Browse files
committed
0.4.10 release
2 parents 981fab5 + 65f3e3f commit e4b08ed

File tree

4 files changed

+606
-653
lines changed

4 files changed

+606
-653
lines changed

.eslintrc.js

Lines changed: 28 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ module.exports = {
1515
},
1616
root: true,
1717
extends: ['eslint:recommended'],
18+
plugins: ['@stylistic/js'],
1819
rules: {
19-
'comma-dangle': 2,
2020
'no-console': 0,
2121
'no-control-regex': 0,
2222
'no-debugger': 1,
@@ -25,13 +25,11 @@ module.exports = {
2525
'no-regex-spaces': 0,
2626
'no-unexpected-multiline': 0,
2727
'block-scoped-var': 1,
28-
'dot-location': [1, 'property'],
2928
'eqeqeq': [1, 'smart'],
3029
'no-caller': 2,
3130
'no-div-regex': 1,
3231
'no-eval': 1,
3332
'no-extra-bind': 1,
34-
'no-floating-decimal': 1,
3533
'no-implied-eval': 1,
3634
'no-iterator': 2,
3735
'no-labels': 2,
@@ -51,38 +49,43 @@ module.exports = {
5149
'no-useless-return': 1,
5250
'no-with': 2,
5351
'radix': [1, 'as-needed'],
54-
'wrap-iife': [2, 'inside'],
5552
'no-catch-shadow': 2,
5653
'no-label-var': 2,
5754
'no-shadow-restricted-names': 2,
5855
'no-shadow': [2, {'builtinGlobals': true, 'hoist': 'all', 'allow': ['context']}],
5956
'no-use-before-define': [2, {'functions': false}],
60-
'array-bracket-spacing': 1,
61-
'brace-style': [1, '1tbs', {'allowSingleLine': true}],
62-
'comma-spacing': 1,
63-
'comma-style': 1,
64-
'computed-property-spacing': 1,
65-
'eol-last': 1,
66-
'indent': [1, 'tab', {'SwitchCase': 1}],
67-
'jsx-quotes': 1,
68-
'linebreak-style': 1,
6957
'new-cap': [2, {'newIsCap': true, 'capIsNew': false}],
70-
'new-parens': 1,
7158
'no-array-constructor': 2,
7259
'no-lonely-if': 1,
7360
'no-mixed-spaces-and-tabs': 1,
7461
'no-new-object': 1,
75-
'func-call-spacing': 1,
76-
'no-trailing-spaces': 1,
7762
'no-unneeded-ternary': 1,
78-
'operator-linebreak': [1, 'after'],
79-
'quotes': [1, 'single', {'avoidEscape':true}],
80-
'semi': [1, 'always'],
81-
'space-before-function-paren': [1, 'always'],
82-
'space-infix-ops': 0,
83-
'space-unary-ops': [1, {'words': true, 'nonwords': false}],
84-
'spaced-comment': [1, 'always', {'markers': ['*']}],
85-
'arrow-spacing': 1,
86-
'require-yield': 0
63+
'require-yield': 0,
64+
65+
// @stylistic/js plugin https://github.com/eslint-stylistic/eslint-stylistic
66+
'@stylistic/js/array-bracket-spacing': 1,
67+
'@stylistic/js/arrow-spacing': 1,
68+
'@stylistic/js/brace-style': [1, '1tbs', {'allowSingleLine': true}],
69+
'@stylistic/js/comma-dangle': 2,
70+
'@stylistic/js/comma-spacing': 1,
71+
'@stylistic/js/comma-style': 1,
72+
'@stylistic/js/computed-property-spacing': 1,
73+
'@stylistic/js/dot-location': [1, 'property'],
74+
'@stylistic/js/eol-last': 1,
75+
'@stylistic/js/func-call-spacing': 1,
76+
'@stylistic/js/indent': [1, 'tab', {'SwitchCase': 1}],
77+
'@stylistic/js/jsx-quotes': 1,
78+
'@stylistic/js/linebreak-style': 1,
79+
'@stylistic/js/new-parens': 1,
80+
'@stylistic/js/no-floating-decimal': 1,
81+
'@stylistic/js/no-trailing-spaces': 1,
82+
'@stylistic/js/operator-linebreak': [1, 'after'],
83+
'@stylistic/js/quotes': [1, 'single', {'avoidEscape':true}],
84+
'@stylistic/js/semi': [1, 'always'],
85+
'@stylistic/js/space-before-function-paren': [1, 'always'],
86+
'@stylistic/js/space-infix-ops': 0,
87+
'@stylistic/js/space-unary-ops': [1, {'words': true, 'nonwords': false}],
88+
'@stylistic/js/spaced-comment': [1, 'always', {'markers': ['*']}],
89+
'@stylistic/js/wrap-iife': [2, 'inside']
8790
}
8891
};

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
The following is a curated list of changes in the Enact docs-utils module, newest changes on the top.
44

5+
## [0.4.10] - 2024-07-17
6+
7+
- Replaced deprecated rules with `@stylistic/js` rules.
8+
59
## [0.4.9] - 2024-04-03
610

711
- Updated dependencies.

0 commit comments

Comments
 (0)