Skip to content

Commit 1d30d17

Browse files
committed
Use defineConfig, single entrypoint, consistent config import
1 parent d54f552 commit 1d30d17

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+465
-651
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ Export `@ni/eslint-config-javascript` configurations in your [ESLint flat config
7575
import { javascriptConfig } from '@ni/eslint-config-javascript';
7676
7777
export default [
78-
...javascriptConfig,
78+
javascriptConfig,
7979
];
8080
```
8181
@@ -87,7 +87,7 @@ Export `@ni/eslint-config-typescript` configurations in the [ESLint flat configu
8787
import { typescriptConfig } from '@ni/eslint-config-typescript';
8888
8989
export default [
90-
...typescriptConfig,
90+
typescriptConfig,
9191
{
9292
files: ['**/*.ts'],
9393
languageOptions: {
@@ -121,7 +121,7 @@ ESLint support for Angular is provided by [`angular-eslint`](https://github.com/
121121
{
122122
files: ['**/*.ts'],
123123
extends: [
124-
...angularConfig
124+
angularConfig
125125
],
126126
languageOptions: {
127127
parserOptions: {
@@ -131,7 +131,7 @@ ESLint support for Angular is provided by [`angular-eslint`](https://github.com/
131131
},
132132
{
133133
files: ['*.html'],
134-
extends: [...angularTemplateConfig]
134+
extends: angularTemplateConfig]
135135
}
136136
];
137137
```
@@ -149,7 +149,7 @@ Export `@ni/eslint-config-playwright` in the [ESLint flat configuration](https:/
149149
import playwrightConfig from '@ni/eslint-config-playwright';
150150
151151
export default [
152-
...playwrightConfig,
152+
playwrightConfig,
153153
{
154154
files: ['**/*.ts'],
155155
languageOptions: {
@@ -308,8 +308,8 @@ Instead of using the `extends` property, import the configuration packages you n
308308
import { angularConfig, angularTemplateConfig } from '@ni/eslint-config-angular';
309309
310310
export default [
311-
...angularConfig,
312-
...angularTemplateConfig,
311+
angularConfig,
312+
angularTemplateConfig,
313313
// Add any project-specific overrides here
314314
];
315315
```

package-lock.json

Lines changed: 81 additions & 78 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)