@jabworks/eslint-plugin 1.0.3 → 1.0.5
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/CHANGELOG.md +12 -0
- package/README.md +6 -6
- package/package.json +1 -1
- package/src/rules/stylistic.js +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -29,15 +29,15 @@ Add the plugin to your ESLint configuration. Example using the flat config forma
|
|
|
29
29
|
|
|
30
30
|
```js
|
|
31
31
|
// eslint.config.js or eslint.config.mjs
|
|
32
|
-
import { plugin as
|
|
32
|
+
import { plugin as jabworksPlugin } from '@jabworks/eslint-plugin';
|
|
33
33
|
|
|
34
34
|
export default [
|
|
35
|
-
...
|
|
35
|
+
...jabworksPlugin.configs.base,
|
|
36
36
|
// or for React/Next.js/TypeScript/Vitest:
|
|
37
|
-
// ...
|
|
38
|
-
// ...
|
|
39
|
-
// ...
|
|
40
|
-
// ...
|
|
37
|
+
// ...jabworksPlugin.configs.react,
|
|
38
|
+
// ...jabworksPlugin.configs.next,
|
|
39
|
+
// ...jabworksPlugin.configs.typescript,
|
|
40
|
+
// ...jabworksPlugin.configs.vitest,
|
|
41
41
|
];
|
|
42
42
|
```
|
|
43
43
|
|
package/package.json
CHANGED
package/src/rules/stylistic.js
CHANGED
|
@@ -114,7 +114,7 @@ const rules = {
|
|
|
114
114
|
* 🔧 Fixable - https://eslint.org/docs/latest/rules/prefer-arrow-callback
|
|
115
115
|
*/
|
|
116
116
|
'prefer-arrow-callback': 'warn',
|
|
117
|
-
'@
|
|
117
|
+
'@stylistic/spaced-comment': 'error',
|
|
118
118
|
};
|
|
119
119
|
|
|
120
120
|
export default rules;
|