@enke.dev/lint 0.9.1 → 0.9.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 +6 -15
- package/eslint.config.js +0 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -33,25 +33,16 @@ Your config file can then be renamed to `eslint.config.ts` and look like this at
|
|
|
33
33
|
```ts
|
|
34
34
|
import config from '@enke.dev/lint';
|
|
35
35
|
|
|
36
|
-
export default config;
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
You may want to modify the config to your needs, e.g. like this:
|
|
40
|
-
|
|
41
|
-
```ts
|
|
42
|
-
import config from '@enke.dev/lint';
|
|
43
|
-
import { defineConfig } from 'eslint/config';
|
|
44
|
-
|
|
45
36
|
export default defineConfig([
|
|
46
37
|
// extend the base config
|
|
47
38
|
...config,
|
|
48
|
-
//
|
|
49
|
-
{ ignores: ['src/generated'] },
|
|
50
|
-
// override rules for test files with mocha / chai
|
|
39
|
+
// configure typescript parser to your needs
|
|
51
40
|
{
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
41
|
+
languageOptions: {
|
|
42
|
+
parserOptions: {
|
|
43
|
+
project: true,
|
|
44
|
+
tsconfigRootDir: import.meta.dirname,
|
|
45
|
+
},
|
|
55
46
|
},
|
|
56
47
|
},
|
|
57
48
|
]);
|
package/eslint.config.js
CHANGED