@bifravst/eslint-config-typescript 6.0.0 → 6.0.2
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 +9 -6
- package/eslint.config.js +6 -3
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -8,11 +8,8 @@
|
|
|
8
8
|
[](https://github.com/typescript-eslint/typescript-eslint)
|
|
9
9
|
|
|
10
10
|
ESLint configuration (with [TypeScript support](https://typescript-eslint.io/))
|
|
11
|
-
for all our projects.
|
|
12
|
-
|
|
13
|
-
See
|
|
14
|
-
[@nordicsemiconductor/asset-tracker-cloud-code-style](https://github.com/NordicSemiconductor/asset-tracker-cloud-code-style-js#readme)
|
|
15
|
-
for usage.
|
|
11
|
+
for all our projects. Uses the
|
|
12
|
+
[new ESLint config format](https://eslint.org/docs/latest/use/configure/configuration-files-new).
|
|
16
13
|
|
|
17
14
|
## Installation
|
|
18
15
|
|
|
@@ -20,4 +17,10 @@ for usage.
|
|
|
20
17
|
|
|
21
18
|
## Usage
|
|
22
19
|
|
|
23
|
-
|
|
20
|
+
Add a file `eslint.config.js` to your project, and adapt:
|
|
21
|
+
|
|
22
|
+
```js
|
|
23
|
+
import config from "@bifravst/eslint-config-typescript";
|
|
24
|
+
|
|
25
|
+
export default [...config, { ignores: ["dist/*"] }];
|
|
26
|
+
```
|
package/eslint.config.js
CHANGED
|
@@ -14,13 +14,11 @@ export default tseslint.config(
|
|
|
14
14
|
languageOptions: {
|
|
15
15
|
parserOptions: {
|
|
16
16
|
project: true,
|
|
17
|
-
tsconfigRootDir: import.meta.dirname,
|
|
18
17
|
},
|
|
19
18
|
},
|
|
20
19
|
},
|
|
21
20
|
prettier,
|
|
22
|
-
|
|
23
|
-
{ plugins: { 'prefer-arrow': preferArrow, import: importPlugin } },
|
|
21
|
+
{ plugins: { 'prefer-arrow': preferArrow, import: importPlugin, unicorn } },
|
|
24
22
|
{
|
|
25
23
|
rules: {
|
|
26
24
|
'@typescript-eslint/indent': ['off'],
|
|
@@ -73,6 +71,11 @@ export default tseslint.config(
|
|
|
73
71
|
'prefer-arrow/prefer-arrow-functions': ['error'],
|
|
74
72
|
'object-shorthand': ['error'],
|
|
75
73
|
'import/extensions': ['error', 'always', { ignorePackages: true }],
|
|
74
|
+
'@typescript-eslint/no-unsafe-enum-comparison': ['warn'],
|
|
75
|
+
'@typescript-eslint/no-unsafe-assignment': ['warn'],
|
|
76
|
+
'@typescript-eslint/no-unsafe-member-access': ['warn'],
|
|
77
|
+
'@typescript-eslint/no-unsafe-return': ['warn'],
|
|
78
|
+
'@typescript-eslint/no-unsafe-argument': ['warn'],
|
|
76
79
|
},
|
|
77
80
|
},
|
|
78
81
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bifravst/eslint-config-typescript",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.2",
|
|
4
4
|
"description": "ESLint config for all our projects.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "eslint.config.js",
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"author": "Nordic Semiconductor ASA | nordicsemi.no",
|
|
21
21
|
"license": "BSD-3-Clause",
|
|
22
22
|
"dependencies": {
|
|
23
|
+
"@eslint/js": "8.56.0",
|
|
23
24
|
"@typescript-eslint/eslint-plugin": "7.0.1",
|
|
24
25
|
"eslint": "8.56.0",
|
|
25
26
|
"eslint-config-prettier": "9.1.0",
|