@davincihealthcare/eslint-plugin-davinci
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "@davincihealthcare/eslint-plugin-davinci", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "custom enforcing of rules only applicable to davinci codebase", | ||
@@ -72,12 +72,5 @@ "author": "Davinci", | ||
"cz-git": "^1.9.1", | ||
"eslint-config-prettier": "^9.1.0", | ||
"eslint-plugin-prefer-arrow": "^1.2.3", | ||
"eslint-plugin-prettier": "^5.1.3", | ||
"eslint-plugin-sort-imports-es6-autofix": "^0.6.0", | ||
"eslint-plugin-unused-imports": "^3.2.0", | ||
"eslint-plugin-vue": "^9.26.0", | ||
"husky": "^9.0.11", | ||
"inquirer": "^9.2.22", | ||
"jest": "^29.7.0", | ||
"prettier": "^3.2.5", | ||
"rimraf": "^5.0.7", | ||
@@ -89,5 +82,12 @@ "semantic-release": "^23.1.1", | ||
"peerDependencies": { | ||
"eslint": "^8.56.0" | ||
"eslint-config-prettier": "^9.1.0", | ||
"eslint-plugin-prefer-arrow": "^1.2.3", | ||
"eslint-plugin-prettier": "^5.1.3", | ||
"eslint-plugin-sort-imports-es6-autofix": "^0.6.0", | ||
"eslint-plugin-unused-imports": "^3.2.0", | ||
"eslint-plugin-vue": "^9.26.0", | ||
"eslint": "^8.56.0", | ||
"prettier": "^3.2.5" | ||
}, | ||
"packageManager": "pnpm@9.1.2+sha512.127dc83b9ea10c32be65d22a8efb4a65fb952e8fefbdfded39bdc3c97efc32d31b48b00420df2c1187ace28c921c902f0cb5a134a4d032b8b5295cbfa2c681e2" | ||
} |
{ | ||
"name": "@davincihealthcare/eslint-plugin-davinci", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "custom enforcing of rules only applicable to davinci codebase", | ||
@@ -72,12 +72,5 @@ "author": "Davinci", | ||
"cz-git": "^1.9.1", | ||
"eslint-config-prettier": "^9.1.0", | ||
"eslint-plugin-prefer-arrow": "^1.2.3", | ||
"eslint-plugin-prettier": "^5.1.3", | ||
"eslint-plugin-sort-imports-es6-autofix": "^0.6.0", | ||
"eslint-plugin-unused-imports": "^3.2.0", | ||
"eslint-plugin-vue": "^9.26.0", | ||
"husky": "^9.0.11", | ||
"inquirer": "^9.2.22", | ||
"jest": "^29.7.0", | ||
"prettier": "^3.2.5", | ||
"rimraf": "^5.0.7", | ||
@@ -89,5 +82,12 @@ "semantic-release": "^23.1.1", | ||
"peerDependencies": { | ||
"eslint": "^8.56.0" | ||
"eslint-config-prettier": "^9.1.0", | ||
"eslint-plugin-prefer-arrow": "^1.2.3", | ||
"eslint-plugin-prettier": "^5.1.3", | ||
"eslint-plugin-sort-imports-es6-autofix": "^0.6.0", | ||
"eslint-plugin-unused-imports": "^3.2.0", | ||
"eslint-plugin-vue": "^9.26.0", | ||
"eslint": "^8.56.0", | ||
"prettier": "^3.2.5" | ||
}, | ||
"packageManager": "pnpm@9.1.2+sha512.127dc83b9ea10c32be65d22a8efb4a65fb952e8fefbdfded39bdc3c97efc32d31b48b00420df2c1187ace28c921c902f0cb5a134a4d032b8b5295cbfa2c681e2" | ||
} |
@@ -1,20 +0,37 @@ | ||
# Install the eslint-plugin-davinci package as a devDependency by running `pnpm add -D @davincihealthcare/eslint-plugin-davinci` | ||
1. Install the `@davincihealthcare/eslint-plugin-davinci` package as a devDependency | ||
2. Extend the plugin in the eslint configuration file | ||
**.eslintrc.js** | ||
# In the eslint configuration file (e.g: `.eslintrc.js`) paste the following: | ||
``` | ||
module.exports = { | ||
extends: [ | ||
'plugin:@davincihealthcare/davinci/recommended', | ||
], | ||
} | ||
``` | ||
``` | ||
/** @type {import("eslint").Linter.Config} */ | ||
( | ||
module.exports = { | ||
root: true, | ||
extends: [ | ||
'plugin:@davincihealthcare/davinci/recommended', | ||
], | ||
} | ||
); | ||
eslint `9.x.x` flat config: | ||
**eslint.config.js** | ||
``` | ||
``` | ||
// | ||
``` | ||
## If you're using Turbo monorepo, add the following string to the `extends` array: `'eslint-config-turbo'` | ||
# In the `scripts` section of the `package.json` add a `lint` script containing the following: `"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix"` | ||
3. If you're using Turbo monorepo: | ||
1. Install `eslint-config-turbo` as a devDependency | ||
2. Add `eslint-config-turbo` to the `extends` section of the configuration: | ||
**.eslintrc.js** | ||
``` | ||
( | ||
module.exports = { | ||
extends: [ | ||
'plugin:@davincihealthcare/davinci/recommended', | ||
'eslint-config-turbo' | ||
], | ||
} | ||
); | ||
``` | ||
**eslint.config.js** | ||
``` | ||
// | ||
``` |
34260
20
38
12