Skip to content

Commit ae0238e

Browse files
committed
Update docs.
1 parent ffdc840 commit ae0238e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Lombiq.NodeJs.Extensions/Docs/JavaScript.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,17 @@ The `build:scripts` script is a wrapper to execute the `lint:scripts` and `compi
6363
The rules are found in 2 files:
6464

6565
- _.eslintrc.lombiq-base.js_: This file contains Lombiq overrides for the [airbnb-base](https://www.npmjs.com/package/eslint-config-airbnb-base) rules. You can find the file [here](../config/.eslintrc.lombiq-base.js).
66-
- _.eslintrc.js_: In this file you can override the above Lombiq rules, or define your own [ESLint configuration](https://eslint.org/docs/latest/user-guide/configuring/configuration-files) altogether.
66+
- _eslint.config.cjs_: In this file you can override the above Lombiq rules, or define your own [ESLint configuration](https://eslint.org/docs/latest/user-guide/configuring/configuration-files) altogether.
6767

68-
The _.eslintrc.js_ file will automatically be created in your project during the first build. Please open it and adjust the path to _.eslintrc.lombiq-base.js_ according to your solution's directory structure.
68+
The _eslint.config.cjs_ file will automatically be created in your project during the first build. Please open it and adjust the path to _.eslintrc.lombiq-base.js_ according to your solution's directory structure.
69+
70+
In previous versions the configuration file was called _.eslintrc.js_. If you still have such a file in your project or solution directory, the newly generated _eslint.config.cjs_ will load it in, for backwards compatibility. You can also just copy the object from the old configuration file and paste it into the new one.
6971

7072
### Using a solution-wide configuration
7173

7274
> ℹ This option only works when using Node.js Extensions from a submodule, **not** from the NuGet package.
7375
74-
In order to use a global _.eslintrc.js_ file for your whole solution, you can instruct Node.js Extensions to create that file in the location specified by the MSBuild property `<NodeJsExtensionsGlobalESLintConfigurationDirectory>`. This property is easiest to add in a _Directory.Build.props_ file in your solution's root directory as follows:
76+
In order to use a global _eslint.config.cjs_ file for your whole solution, you can instruct Node.js Extensions to create that file in the location specified by the MSBuild property `<NodeJsExtensionsGlobalESLintConfigurationDirectory>`. This property is easiest to add in a _Directory.Build.props_ file in your solution's root directory as follows:
7577

7678
```xml
7779
<NodeJsExtensionsGlobalESLintConfigurationDirectory>$(MSBuildThisFileDirectory)</NodeJsExtensionsGlobalESLintConfigurationDirectory>

0 commit comments

Comments
 (0)