Skip to content

Commit

Permalink
5.0.0-alpha.1 release
Browse files Browse the repository at this point in the history
  • Loading branch information
enact-bot committed Jul 22, 2024
2 parents 75f2619 + 2a51832 commit 186d610
Show file tree
Hide file tree
Showing 5 changed files with 5,852 additions and 5,599 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

The following is a curated list of changes in the Enact eslint config:

## [5.0.0-alpha.1] (July 22, 2024)

* Updated the minimum version of Node to `18.18.0`.
* Replaced deprecated rules with `@stylistic/js` rules.

## [4.2.1] (February 27, 2024)

* Updated dependencies.
Expand Down
12 changes: 7 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ module.exports = {
presets: [require.resolve('babel-preset-enact')]
}
},
plugins: ['@babel', 'jsx-a11y', 'react', 'enact'],
plugins: ['@babel', '@stylistic/js', 'jsx-a11y', 'react', 'enact'],
settings: {
react: {
'pragma': 'React', // Pragma to use, default to "React"
Expand All @@ -51,7 +51,6 @@ module.exports = {
'block-scoped-var': 'warn',
'curly': ['warn', 'multi-line'],
'eqeqeq': ['warn', 'smart'],
'new-parens': 'warn',
'no-alert': 'warn',
'no-array-constructor': 'warn',
'no-caller': 'error',
Expand All @@ -68,7 +67,6 @@ module.exports = {
'no-extra-boolean-cast': 'warn',
'no-extra-semi': 'off',
'no-fallthrough': 'warn',
'no-floating-decimal': 'warn',
'no-func-assign': 'warn',
'no-implied-eval': 'warn',
'no-inner-declarations': 'off',
Expand Down Expand Up @@ -100,7 +98,6 @@ module.exports = {
]
}],
'no-throw-literal': 'error',
'no-trailing-spaces': 'warn',
'no-unexpected-multiline': 'warn',
'no-unneeded-ternary': 'warn',
'no-unreachable': 'warn',
Expand All @@ -113,7 +110,12 @@ module.exports = {
'no-var': 'warn',
'require-yield': 'off',
'use-isnan': 'warn',
'wrap-iife': ['error', 'inside'],

// @stylistic/js plugin https://github.com/eslint-stylistic/eslint-stylistic
'@stylistic/js/new-parens': 'warn',
'@stylistic/js/no-floating-decimal': 'warn',
'@stylistic/js/no-trailing-spaces': 'warn',
'@stylistic/js/wrap-iife': ['error', 'inside'],

// jsx-a11y plugin https://github.com/evcohen/eslint-plugin-jsx-a11y
'jsx-a11y/alt-text': 'warn',
Expand Down
Loading

0 comments on commit 186d610

Please sign in to comment.