@sap-cloud-sdk/eslint-config 4.3.0 → 4.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +10 -0
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -11,6 +11,16 @@ It also uses the `eslint-config-prettier` to avoid any formatting conflicts when
11
11
 
12
12
  ## How to use
13
13
 
14
+ Import the flat configuration in your `eslint.config.js`:
15
+
16
+ ```
17
+ import sapCloudSdkConfig from '@sap-cloud-sdk/eslint-config/flat-config';
18
+ ```
19
+
20
+ Then add it to your own configuration in `defineConfig()`: `defineConfig(sapCloudSdkConfig, /* your config */)`.
21
+
22
+ ### Legacy ESLint configuration files
23
+
14
24
  To add the configuration please adjust your ESlint configuration (usually called `.eslintrc` or `.eslintrc.js`):
15
25
 
16
26
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sap-cloud-sdk/eslint-config",
3
- "version": "4.3.0",
3
+ "version": "4.3.1",
4
4
  "description": "eslint config for the SAP Cloud SDK",
5
5
  "homepage": "https://sap.github.io/cloud-sdk/docs/js/overview",
6
6
  "license": "Apache-2.0",
@@ -42,6 +42,6 @@
42
42
  "typescript-eslint": "^8.51.0"
43
43
  },
44
44
  "peerDependencies": {
45
- "eslint": "^8.0.0"
45
+ "eslint": ">=8.0.0"
46
46
  }
47
47
  }