@ethang/eslint-config 18.4.3 → 18.4.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/config.astro.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import astro from "eslint-plugin-astro";
2
2
  import tseslint from "typescript-eslint";
3
3
 
4
- import {ignores, languageOptions} from "./eslint.config.js";
4
+ import { ignores, languageOptions } from "./eslint.config.js";
5
5
 
6
6
  export default tseslint.config({
7
7
  "files": ["**/*.{astro}"],
8
8
  ignores,
9
9
  languageOptions,
10
- "plugins": {astro},
10
+ "plugins": { astro },
11
11
  "rules": {
12
12
  "astro/jsx-a11y/alt-text": "error",
13
13
  "astro/jsx-a11y/anchor-ambiguous-text": "error",
package/config.react.js CHANGED
@@ -2,7 +2,7 @@ import react from "@eslint-react/eslint-plugin";
2
2
  import reactHooks from "eslint-plugin-react-hooks";
3
3
  import tseslint from "typescript-eslint";
4
4
 
5
- import {ignores, languageOptions} from "./eslint.config.js";
5
+ import { ignores, languageOptions } from "./eslint.config.js";
6
6
 
7
7
  export default tseslint.config({
8
8
  "files": ["**/*.{jsx,tsx}"],
@@ -37,7 +37,7 @@ export default tseslint.config({
37
37
  "react/naming-convention/component-name": "error",
38
38
  "react/naming-convention/filename": [
39
39
  "error",
40
- {"rule": "kebab-case"},
40
+ { "rule": "kebab-case" },
41
41
  ],
42
42
  "react/naming-convention/filename-extension": "error",
43
43
  "react/naming-convention/use-state": "error",
package/config.solid.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import solid from "eslint-plugin-solid";
2
2
  import tseslint from "typescript-eslint";
3
3
 
4
- import {ignores, languageOptions} from "./eslint.config.js";
4
+ import { ignores, languageOptions } from "./eslint.config.js";
5
5
 
6
6
  export default tseslint.config({
7
7
  "files": ["**/*.{jsx,tsx}"],
8
8
  ignores,
9
9
  languageOptions,
10
- "plugins": {solid},
10
+ "plugins": { solid },
11
11
  "rules": {
12
12
  "solid/components-return-once": "error",
13
13
  "solid/event-handlers": "error",
package/eslint.config.js CHANGED
@@ -555,7 +555,7 @@ export default tseslint.config({
555
555
  "stylistic/func-call-spacing": "error",
556
556
  "stylistic/function-call-argument-newline": "error",
557
557
  "stylistic/function-call-spacing": "error",
558
- "stylistic/function-paren-newline": "error",
558
+ "stylistic/function-paren-newline": ["error", "consistent"],
559
559
  "stylistic/generator-star-spacing": "error",
560
560
  "stylistic/implicit-arrow-linebreak": "error",
561
561
  "stylistic/indent": ["error", 2],
@@ -591,7 +591,7 @@ export default tseslint.config({
591
591
  "stylistic/no-whitespace-before-property": "error",
592
592
  "stylistic/nonblock-statement-body-position": "error",
593
593
  "stylistic/object-curly-newline": "error",
594
- "stylistic/object-curly-spacing": "error",
594
+ "stylistic/object-curly-spacing": ["error", "always"],
595
595
  "stylistic/object-property-newline": "error",
596
596
  "stylistic/one-var-declaration-per-line": "error",
597
597
  "stylistic/operator-linebreak": "error",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethang/eslint-config",
3
- "version": "18.4.3",
3
+ "version": "18.4.5",
4
4
  "repository": {
5
5
  "url": "git+https://github.com/eglove/eslint-config-ethang.git"
6
6
  },