@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.
- package/README.md +5 -4
- package/index.js +2 -1
- 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
|
-
|
|
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
|
-
|
|
27
|
-
|
|
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:
|
|
20
|
+
parser: tsParser,
|
|
20
21
|
parserOptions: {
|
|
21
22
|
ecmaVersion: 2018,
|
|
22
23
|
sourceType: "module",
|