Skip to content

Commit 8b32665

Browse files
committed
7.0.0-alpha.4 release
2 parents bef78a4 + 78ff5b7 commit 8b32665

File tree

6 files changed

+4293
-19270
lines changed

6 files changed

+4293
-19270
lines changed

.eslintrc.js

Lines changed: 0 additions & 29 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 7.0.0-alpha.4 (February 21, 2025)
2+
3+
* Updated `eslint` to v9 and adopted flat config.
4+
15
# 7.0.0-alpha.3 (January 15, 2025)
26

37
* Updated all dependencies to the latest including React 19.

eslint.config.js

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
const enactConfig = require('eslint-config-enact');
2+
const prettierConfig = require('eslint-config-prettier');
3+
const importPlugin = require('eslint-plugin-import');
4+
const prettierPlugin = require('eslint-plugin-prettier');
5+
const globals = require('globals');
6+
7+
module.exports = [
8+
...enactConfig,
9+
{
10+
languageOptions: {
11+
ecmaVersion: 'latest',
12+
sourceType: 'module',
13+
globals: {
14+
...globals.node
15+
},
16+
parserOptions: {
17+
ecmaFeatures: {
18+
jsx: true
19+
}
20+
}
21+
},
22+
plugins: {
23+
import: importPlugin,
24+
prettier: prettierPlugin
25+
},
26+
rules: {
27+
// import plugin rules
28+
'import/no-unresolved': ['error', {commonjs: true, caseSensitive: true}],
29+
'import/named': 'error',
30+
'import/first': 'warn',
31+
'import/no-duplicates': 'error',
32+
'import/extensions': ['warn', 'always', {js: 'never', json: 'always'}],
33+
'import/newline-after-import': 'warn',
34+
'import/order': [
35+
'warn',
36+
{
37+
'newlines-between': 'never',
38+
groups: ['builtin', 'external', 'internal', 'parent', 'sibling', 'index']
39+
}
40+
],
41+
42+
// prettier rules
43+
...prettierPlugin.configs.recommended.rules,
44+
...prettierConfig.rules
45+
}
46+
}
47+
];

mixins/framework.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ module.exports = {
2020
onlyFiles: true,
2121
ignore: [
2222
'**/webpack.config.js',
23-
'**/.eslintrc.js',
23+
'**/eslint.config.js',
2424
'**/karma.conf.js',
2525
'**/build/**/*.*',
2626
'**/dist/**/*.*',

0 commit comments

Comments
 (0)