@eox/eslint-config
Advanced tools
Comparing version 3.0.0-alpha.7 to 3.0.0-alpha.8
@@ -10,2 +10,3 @@ import eslintConfigPrettier from "eslint-config-prettier"; | ||
languageOptions: { | ||
ecmaVersion: 2022, | ||
globals: { | ||
@@ -12,0 +13,0 @@ ...globals.node, |
{ | ||
"name": "@eox/eslint-config", | ||
"version": "3.0.0-alpha.7", | ||
"version": "3.0.0-alpha.8", | ||
"description": "EOX Prettier and ESLint config for Vue.js projects", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -25,8 +25,8 @@ # EOX ESLint & Prettier config vor JS | ||
To include ESLint in the project, create a file called `.eslintrc.js` in the app root: | ||
To include ESLint in the project, create a file called `eslint.config.mjs` in the app root: | ||
```js | ||
module.exports = { | ||
extends: "@eox", | ||
}; | ||
import eox from "@eox/eslint-config"; | ||
export default [...eox]; | ||
``` | ||
@@ -37,13 +37,15 @@ | ||
```bash | ||
npx eslint . --fix | ||
npx eslint --fix . | ||
``` | ||
Please refer to the [ESLint CLI docs](https://eslint.org/docs/latest/user-guide/command-line-interface) for further details. | ||
Please refer to the [ESLint configuration docs](https://eslint.org/docs/latest/use/configure/) and [ESLint CLI docs](https://eslint.org/docs/latest/user-guide/command-line-interface) for further details. | ||
## Ignoring files | ||
You can add [.eslintignore](https://eslint.org/docs/latest/user-guide/configuring/ignoring-code) and [.prettierignore](https://prettier.io/docs/en/ignore.html) files to ignore certain folders or files/patterns. | ||
not any longer -> only for prettier? | ||
Both ignore files should ideally have the same content, e.g.: | ||
You can add a [.prettierignore](https://prettier.io/docs/en/ignore.html) file to ignore certain folders or files/patterns. | ||
E.g.: | ||
``` | ||
@@ -58,2 +60,4 @@ public | ||
For ESlint, use the [`ignores` property in the config file](https://eslint.org/docs/latest/use/configure/migration-guide#ignoring-files). | ||
## Custom configuration & rules | ||
@@ -60,0 +64,0 @@ |
AI-detected possible typosquat
Supply chain riskAI has identified this package as a potential typosquat of a more popular package. This suggests that the package may be intentionally mimicking another package's name, description, or other metadata.
Found 1 instance in 1 package
3632
16
100
0