@whoj/eslint-config 2.0.0 → 2.2.0

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2019-PRESENT Anthony Fu<https://github.com/antfu>
3
+ Copyright (c) 2020-PRESENT Jonson B.<https://github.com/who-jonson>
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -24,9 +24,9 @@ And create `eslint.config.mjs` in your project root:
24
24
 
25
25
  ```js
26
26
  // eslint.config.mjs
27
- import whoj from '@whoj/eslint-config'
27
+ import whoj from '@whoj/eslint-config';
28
28
 
29
- export default whoj()
29
+ export default whoj();
30
30
  ```
31
31
 
32
32
  <details>
@@ -37,27 +37,27 @@ Combined with legacy config:
37
37
  If you still use some configs from the legacy eslintrc format, you can use the [`@eslint/eslintrc`](https://www.npmjs.com/package/@eslint/eslintrc) package to convert them to the flat config.
38
38
 
39
39
  ```js
40
- import { FlatCompat } from '@eslint/eslintrc'
41
40
  // eslint.config.mjs
42
- import whoj from '@whoj/eslint-config'
41
+ import whoj from '@whoj/eslint-config';
42
+ import { FlatCompat } from '@eslint/eslintrc';
43
43
 
44
- const compat = new FlatCompat()
44
+ const compat = new FlatCompat();
45
45
 
46
46
  export default whoj(
47
47
  {
48
- ignores: [],
48
+ ignores: []
49
49
  },
50
50
 
51
51
  // Legacy config
52
52
  ...compat.config({
53
53
  extends: [
54
- 'eslint:recommended',
54
+ 'eslint:recommended'
55
55
  // Other extends...
56
- ],
56
+ ]
57
57
  })
58
58
 
59
59
  // Other flat configs...
60
- )
60
+ );
61
61
  ```
62
62
 
63
63
  > Note that `.eslintignore` no longer works in Flat config, see [customization](#customization) for more details.
@@ -149,7 +149,7 @@ You can configure each integration individually, for example:
149
149
 
150
150
  ```js
151
151
  // eslint.config.js
152
- import whoj from '@whoj/eslint-config'
152
+ import whoj from '@whoj/eslint-config';
153
153
 
154
154
  export default whoj({
155
155
  // Type of the project. 'lib' for libraries, the default is 'app'
@@ -161,7 +161,7 @@ export default whoj({
161
161
  // Or customize the stylistic rules
162
162
  stylistic: {
163
163
  indent: 2, // 4, or 'tab'
164
- quotes: 'single', // or 'double'
164
+ quotes: 'single' // or 'double'
165
165
  },
166
166
 
167
167
  // TypeScript and Vue are autodetected, you can also explicitly enable them:
@@ -174,17 +174,17 @@ export default whoj({
174
174
 
175
175
  // `.eslintignore` is no longer supported in Flat config, use `ignores` instead
176
176
  ignores: [
177
- '**/fixtures',
177
+ '**/fixtures'
178
178
  // ...globs
179
179
  ]
180
- })
180
+ });
181
181
  ```
182
182
 
183
183
  The `whoj` factory function also accepts any number of arbitrary custom config overrides:
184
184
 
185
185
  ```js
186
186
  // eslint.config.js
187
- import whoj from '@whoj/eslint-config'
187
+ import whoj from '@whoj/eslint-config';
188
188
 
189
189
  export default whoj(
190
190
  {
@@ -195,16 +195,16 @@ export default whoj(
195
195
  // you can have multiple configs
196
196
  {
197
197
  files: ['**/*.ts'],
198
- rules: {},
198
+ rules: {}
199
199
  },
200
200
  {
201
- rules: {},
202
- },
203
- )
201
+ rules: {}
202
+ }
203
+ );
204
204
  ```
205
205
 
206
206
  Going more advanced, Check out [configs](https://github.com/antfu/eslint-config)
207
207
 
208
208
  ## License
209
209
 
210
- [MIT](./LICENSE) License &copy; 2025-PRESENT [B. Jonson](https://github.com/who-jonson)
210
+ [MIT](./LICENSE) License &copy; 2020-PRESENT [B. Jonson](https://github.com/who-jonson)
package/bin/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import '../dist/cli.js'
2
+ import '../dist/cli.js';