You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: packages/eslint-config/README.md
+6-6
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ The goal is to reduce noise in code version control and promote use of the lates
34
34
- Includes many useful ESLint plugins, like [unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn), [import](https://github.com/benmosher/eslint-plugin-import) and [more](#plugins).
35
35
- Automatically enables rules based on the [engines](https://docs.npmjs.com/files/package.json#engines) field in your package.json.
36
36
- Specify indent and semicolon preferences easily without messing with the rule config.
37
-
- Disables rules that conflict with Prettier.
37
+
- Disables rules that conflict with [Prettier](#let-prettier-handle-style-related-rules).
38
38
39
39
## Install
40
40
@@ -215,13 +215,13 @@ Default: `undefined`
215
215
216
216
Prettier is a code formatting tool that offers fewer options but is more professional than the style-related rules in ESLint.
217
217
218
-
Now that Prettier has become a necessary tool in front end projects, `@anolilab/eslint-config` does not need to maintain the style-related rules in ESLint anymore, so we completely removed all Prettier related rules in the v3 version, and use ESLint to check logical errors which it’s good at.
218
+
Now that Prettier has become a necessary tool in front end projects, `@anolilab/eslint-config` does not need to maintain the style-related rules in ESLint anymore,
219
+
so we completely removed all Prettier related rules, if `prettier` is found in your `package.json` and use ESLint to check logical errors which it’s good at.
219
220
220
-
As for whether two spaces or four spaces are used for indentation and whether there is a semicolon at the end, you can configure it in the project’s .prettierrc.cjs. Of course, we also provide a recommended Prettier configuration for your reference.
221
+
As for whether two spaces or four spaces are used for indentation and whether there is a semicolon at the end, you can configure it in the project’s `.prettierrc.js`.
222
+
Of course, we also provide a recommended Prettier [configuration](../prettier-config/README.md) for your reference.
221
223
222
-
`@anolilab/eslint-config` does not include all style-related rules, so there is no need to install `eslint-config-prettier`. Install `prettier` and if you use `VSCode` the related plugins.
223
-
224
-
This the used [.prettierrc.cjs](../prettier-config/index.cjs) configuration by Anolilab Team only for reference.
224
+
`@anolilab/eslint-config` does disable all included style-related rules, so there is no need to install [`eslint-config-prettier`](https://github.com/prettier/eslint-config-prettier).
"\nFound prettier as dependency, disabling the '@typescript-eslint/indent' rule to fix wrong behavior of the rule; @see https://github.com/typescript-eslint/typescript-eslint/issues/1824",
32
-
);
36
+
consoleLog("\nFound prettier as dependency, disabling some rules to fix wrong behavior of the rule with eslint and prettier");
0 commit comments