@oncehub/eslint-config 3.0.0 → 3.0.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 (3) hide show
  1. package/README.md +5 -4
  2. package/index.js +2 -1
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -20,12 +20,13 @@ Note that it requires ESlint v9 and above.
20
20
 
21
21
  ## Usage
22
22
 
23
- In your `.eslintrc` file, put `@oncehub/eslint-config` under `extends` array as shown below.
23
+ Import the package inside of an eslint.config.js file and add it into the exported array, like this:
24
24
 
25
25
  ```js
26
- module.exports = {
27
- extends: ["@oncehub/eslint-config"],
28
- };
26
+ // eslint.config.js
27
+ import oncehub from "@oncehub/eslint-config";
28
+
29
+ export default [...oncehub];
29
30
  ```
30
31
 
31
32
  ## Development
package/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import js from "@eslint/js";
2
2
  import prettierConfig from "eslint-config-prettier";
3
3
  import * as typescriptEslintPlugin from "@typescript-eslint/eslint-plugin";
4
+ import tsParser from "@typescript-eslint/parser";
4
5
  import sonarjs from "eslint-plugin-sonarjs";
5
6
 
6
7
  export default [
@@ -16,7 +17,7 @@ export default [
16
17
  es6: true,
17
18
  node: true,
18
19
  },
19
- parser: typescriptEslintPlugin.parser,
20
+ parser: tsParser,
20
21
  parserOptions: {
21
22
  ecmaVersion: 2018,
22
23
  sourceType: "module",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oncehub/eslint-config",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "ESLint configuration for micro-services built using Node.js and TypeScript",
5
5
  "main": "index.js",
6
6
  "scripts": {