From ead5e519661ab24e9fb78e7bdd573da9cb537e89 Mon Sep 17 00:00:00 2001 From: Tiago Loureiro Date: Fri, 19 Jan 2024 17:01:46 +0000 Subject: [PATCH 1/7] fix to typescript-eslint plugin not being declared as dependency --- .github/workflows/ci.yml | 4 +++- .github/workflows/deploy.yml | 4 +++- package-lock.json | 13 +++++++------ package.json | 5 +++-- src/config.js | 25 ++++++++++++++++++++++--- 5 files changed, 38 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 67f9711..61787f9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,6 +33,8 @@ jobs: node-version: ${{ matrix.node-version }} cache: 'npm' - name: Install dependencies - run: npm ci + run: | + npm pkg delete scripts.prepare + npm ci --omit=dev - name: Run tests run: npm run lint diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index ec3841f..06fbe84 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -20,7 +20,9 @@ jobs: node-version: 'lts/*' cache: 'npm' registry-url: 'https://registry.npmjs.org' - - run: npm ci + - run: | + npm pkg delete scripts.prepare + npm ci --omit=dev - run: npm publish --access public env: NODE_AUTH_TOKEN: ${{ secrets.NPM_REGISTRY_TOKEN }} diff --git a/package-lock.json b/package-lock.json index de08003..e293730 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,8 +9,8 @@ "version": "0.1.2", "license": "MIT", "dependencies": { - "@typescript-eslint/eslint-plugin": "^6.18.1", - "@typescript-eslint/parser": "^6.18.1", + "@typescript-eslint/eslint-plugin": "^6.19.0", + "@typescript-eslint/parser": "^6.19.0", "eslint-config-prettier": "^9.1.0", "eslint-config-standard-with-typescript": "^43.0.0", "eslint-import-resolver-typescript": "^3.6.1", @@ -25,7 +25,8 @@ }, "peerDependencies": { "eslint": "^8.0.0", - "prettier": "^3.0.0" + "prettier": "^3.0.0", + "typescript": "^5.0.0" } }, "node_modules/@aashutoshrathi/word-wrap": { @@ -3072,9 +3073,9 @@ } }, "node_modules/rfdc": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/rfdc/-/rfdc-1.3.0.tgz", - "integrity": "sha512-V2hovdzFbOi77/WajaSMXk2OLm+xNIeQdMMuB7icj7bk6zi2F8GGAxigcnDFpJHbNyNcgyJDiP+8nOrY5cZGrA==", + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/rfdc/-/rfdc-1.3.1.tgz", + "integrity": "sha512-r5a3l5HzYlIC68TpmYKlxWjmOP6wiPJ1vWv2HeLhNsRZMrCkxeqxiHlQ21oXmQ4F3SiryXBHhAD7JZqvOJjFmg==", "dev": true }, "node_modules/rimraf": { diff --git a/package.json b/package.json index 56c7603..4b1d193 100644 --- a/package.json +++ b/package.json @@ -35,11 +35,12 @@ }, "peerDependencies": { "eslint": "^8.0.0", + "typescript": "^5.0.0", "prettier": "^3.0.0" }, "dependencies": { - "@typescript-eslint/eslint-plugin": "^6.18.1", - "@typescript-eslint/parser": "^6.18.1", + "@typescript-eslint/eslint-plugin": "^6.19.0", + "@typescript-eslint/parser": "^6.19.0", "eslint-config-prettier": "^9.1.0", "eslint-config-standard-with-typescript": "^43.0.0", "eslint-import-resolver-typescript": "^3.6.1", diff --git a/src/config.js b/src/config.js index 154b8ef..97b4d3c 100644 --- a/src/config.js +++ b/src/config.js @@ -3,7 +3,7 @@ module.exports = { env: { browser: true, - es2021: true, + es2022: true, }, extends: [ 'eslint:recommended', @@ -24,12 +24,31 @@ module.exports = { 'simple-import-sort/exports': 'error', 'no-console': ['error', { allow: ['warn', 'error'] }], '@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_' }], + 'import/extensions': [ + 2, + 'always', + { + ignorePackages: true, + pattern: { + js: 'never', + ts: 'never', + tsx: 'never', + }, + }, + ], }, ignorePatterns: ['node_modules'], settings: { + 'import/parsers': { + '@typescript-eslint/parser': ['.ts', '.tsx', '.d.ts'], + }, 'import/resolver': { - typescript: true, - node: true, + node: { + extensions: ['.js', '.json', '.ts', '.tsx', '.d.ts'], + }, }, + 'import/extensions': ['.js', '.mjs', '.ts', '.tsx', '.d.ts'], + 'import/external-module-folders': ['node_modules', 'node_modules/@types'], }, + overrides: [{ files: ['*.ts', '*.tsx'], rules: { 'import/named': 'off', 'import/no-unresolved': 'off' } }], }; From d93f7a17141ee65f8605314468579dcfb538fb56 Mon Sep 17 00:00:00 2001 From: Tiago Loureiro Date: Fri, 19 Jan 2024 17:03:14 +0000 Subject: [PATCH 2/7] bump version to 0.1.3 --- CHANGELOG.md | 4 +++- package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 184e673..8b87971 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,11 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). -## [Unreleased] +## [v0.1.3] - 2024-01-19 ### Fixed - changelog version links +- `typescript-eslint` plugin not being declared as dependency ### Added @@ -32,6 +33,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - First release +[v0.1.3]: https://www.npmjs.com/package/@dipcode/eslint-config/v/0.1.3 [v0.1.2]: https://www.npmjs.com/package/@dipcode/eslint-config/v/0.1.2 [v0.1.1]: https://www.npmjs.com/package/@dipcode/eslint-config/v/0.1.1 [v0.1.0]: https://www.npmjs.com/package/@dipcode/eslint-config/v/0.1.0 diff --git a/package-lock.json b/package-lock.json index e293730..2fcae90 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@dipcode/eslint-config", - "version": "0.1.2", + "version": "0.1.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@dipcode/eslint-config", - "version": "0.1.2", + "version": "0.1.3", "license": "MIT", "dependencies": { "@typescript-eslint/eslint-plugin": "^6.19.0", diff --git a/package.json b/package.json index 4b1d193..7ac1e25 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@dipcode/eslint-config", - "version": "0.1.2", + "version": "0.1.3", "description": "Shareable ESLint config for Dipcode.", "main": "./src/config.js", "scripts": { From 5b00697b5bc9dab3a754a2cd6aef9068f09eee4c Mon Sep 17 00:00:00 2001 From: Tiago Loureiro Date: Fri, 19 Jan 2024 17:05:45 +0000 Subject: [PATCH 3/7] fix to typescript-eslint plugin not being declared as dependency --- package-lock.json | 3 +-- package.json | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 2fcae90..7407a67 100644 --- a/package-lock.json +++ b/package-lock.json @@ -25,8 +25,7 @@ }, "peerDependencies": { "eslint": "^8.0.0", - "prettier": "^3.0.0", - "typescript": "^5.0.0" + "prettier": "^3.0.0" } }, "node_modules/@aashutoshrathi/word-wrap": { diff --git a/package.json b/package.json index 7ac1e25..d048c3e 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,6 @@ }, "peerDependencies": { "eslint": "^8.0.0", - "typescript": "^5.0.0", "prettier": "^3.0.0" }, "dependencies": { From adf473b6bff8c193cdaaa8703ea73597ab81020b Mon Sep 17 00:00:00 2001 From: Tiago Loureiro Date: Fri, 19 Jan 2024 18:13:19 +0000 Subject: [PATCH 4/7] added separated configs for JavaScript and TypeScript --- .eslintrc.json | 1 + CHANGELOG.md | 10 ++++++++++ README.md | 31 +++++++++++++++++++++++++++++-- package.json | 11 +++++++++-- src/config.js | 39 +++++---------------------------------- src/typescript.js | 35 +++++++++++++++++++++++++++++++++++ 6 files changed, 89 insertions(+), 38 deletions(-) create mode 100644 src/typescript.js diff --git a/.eslintrc.json b/.eslintrc.json index e2eb7f2..a074a54 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -4,5 +4,6 @@ "rules": { "no-console": ["error", { "allow": ["warn", "error"] }] }, + "parserOptions": { "ecmaVersion": 2020 }, "ignorePatterns": ["node_modules"] } diff --git a/CHANGELOG.md b/CHANGELOG.md index 8b87971..a8fd82a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## [v0.2.0] - 2024-01-22 + +### Changed + +- Default export is now JavaScript eslint config. + +### Added + +- Different configuration files to JavaScript and TypeScript. + ## [v0.1.3] - 2024-01-19 ### Fixed diff --git a/README.md b/README.md index 821cf48..a929820 100644 --- a/README.md +++ b/README.md @@ -9,8 +9,35 @@ The package provides Dipcode's `.eslintrc` as an extensible shared config. -1. Run `npm install --save-dev @dipcode/eslint-config` -2. Add `"extends": "@dipcode/eslint-config"` to your `.eslintrc.json` +Install the config + +```sh +npm install --save-dev @dipcode/eslint-config +``` + +Then configure eslint to use the configuration. + +### For JavaScript projects + +`.eslintrc.json` + +```json +{ + "root": true, + "extends": "@dipcode/eslint-config" +} +``` + +### For TypeScript projects + +`.eslintrc.json` + +```json +{ + "root": true, + "extends": "@dipcode/eslint-config/typescript" +} +``` ## Links diff --git a/package.json b/package.json index d048c3e..d20ad4f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@dipcode/eslint-config", - "version": "0.1.3", + "version": "0.2.0", "description": "Shareable ESLint config for Dipcode.", "main": "./src/config.js", "scripts": { @@ -28,7 +28,14 @@ "url": "https://github.com/dipcode-software/eslint-config-dipcode/issues" }, "homepage": "https://github.com/dipcode-software/eslint-config-dipcode#readme", - "exports": "./src/config.js", + "exports": { + ".": "./src/config.js", + "./typescript": "./src/typescript.js" + }, + "files": [ + "src/config.js", + "src/typescript.js" + ], "devDependencies": { "husky": "8.0.3", "lint-staged": "15.2.0" diff --git a/src/config.js b/src/config.js index 97b4d3c..9fe06b5 100644 --- a/src/config.js +++ b/src/config.js @@ -1,54 +1,25 @@ 'use strict'; module.exports = { - env: { - browser: true, - es2022: true, - }, + env: { browser: true, es2022: true, commonjs: true }, extends: [ 'eslint:recommended', - 'plugin:@typescript-eslint/recommended', - 'plugin:jsdoc/recommended-typescript-error', 'plugin:import/recommended', - 'plugin:import/typescript', 'plugin:promise/recommended', // This must be the last 'plugin:prettier/recommended', ], - plugins: ['@typescript-eslint', 'simple-import-sort', 'jsdoc'], - parser: '@typescript-eslint/parser', - parserOptions: { project: 'tsconfig.json', sourceType: 'module' }, + plugins: ['simple-import-sort', 'jsdoc'], rules: { - '@typescript-eslint/ban-ts-comment': ['error', { 'ts-expect-error': 'allow-with-description' }], 'simple-import-sort/imports': 'error', 'simple-import-sort/exports': 'error', 'no-console': ['error', { allow: ['warn', 'error'] }], - '@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_' }], - 'import/extensions': [ - 2, - 'always', - { - ignorePackages: true, - pattern: { - js: 'never', - ts: 'never', - tsx: 'never', - }, - }, - ], + 'import/extensions': [2, 'always', { ignorePackages: true, pattern: { js: 'never' } }], }, ignorePatterns: ['node_modules'], settings: { - 'import/parsers': { - '@typescript-eslint/parser': ['.ts', '.tsx', '.d.ts'], - }, - 'import/resolver': { - node: { - extensions: ['.js', '.json', '.ts', '.tsx', '.d.ts'], - }, - }, - 'import/extensions': ['.js', '.mjs', '.ts', '.tsx', '.d.ts'], + 'import/resolver': { node: { extensions: ['.js', '.json'] } }, + 'import/extensions': ['.js', '.mjs'], 'import/external-module-folders': ['node_modules', 'node_modules/@types'], }, - overrides: [{ files: ['*.ts', '*.tsx'], rules: { 'import/named': 'off', 'import/no-unresolved': 'off' } }], }; diff --git a/src/typescript.js b/src/typescript.js new file mode 100644 index 0000000..812dfb1 --- /dev/null +++ b/src/typescript.js @@ -0,0 +1,35 @@ +'use strict'; + +const base = require('./config'); + +module.exports = { + env: { ...base.env }, + extends: [ + 'eslint:recommended', + 'plugin:@typescript-eslint/recommended', + 'plugin:jsdoc/recommended-typescript-error', + 'plugin:import/recommended', + 'plugin:import/typescript', + 'plugin:promise/recommended', + // This must be the last + 'plugin:prettier/recommended', + ], + plugins: ['@typescript-eslint', ...base.plugins], + parser: '@typescript-eslint/parser', + parserOptions: { project: './tsconfig.json', sourceType: 'module' }, + rules: { + ...base.rules, + '@typescript-eslint/ban-ts-comment': ['error', { 'ts-expect-error': 'allow-with-description' }], + '@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_' }], + 'import/extensions': [2, 'always', { ignorePackages: true, pattern: { js: 'never', ts: 'never', tsx: 'never' } }], + }, + settings: { + ...base.settings, + 'import/parsers': { '@typescript-eslint/parser': ['.ts', '.tsx', '.d.ts'] }, + 'import/resolver': { + node: { extensions: [...base.settings['import/resolver'].node.extensions, '.ts', '.tsx', '.d.ts'] }, + }, + 'import/extensions': [...base.settings['import/extensions'], '.ts', '.tsx', '.d.ts'], + }, + overrides: [{ files: ['*.ts', '*.tsx'], rules: { 'import/named': 'off', 'import/no-unresolved': 'off' } }], +}; From 73300b01ce63fe866c45af83e76983db5d43a5b4 Mon Sep 17 00:00:00 2001 From: Tiago Loureiro Date: Tue, 23 Jan 2024 12:14:31 +0000 Subject: [PATCH 5/7] use base config in the project --- .eslintrc.js | 5 +++++ .eslintrc.json | 9 --------- src/config.js | 1 + src/typescript.js | 2 +- 4 files changed, 7 insertions(+), 10 deletions(-) create mode 100644 .eslintrc.js delete mode 100644 .eslintrc.json diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 0000000..7cdcb23 --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,5 @@ +const config = require('./src/config'); + +module.exports = { + ...config, +}; diff --git a/.eslintrc.json b/.eslintrc.json deleted file mode 100644 index a074a54..0000000 --- a/.eslintrc.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": ["eslint:recommended", "plugin:prettier/recommended"], - "env": { "es6": true, "node": true }, - "rules": { - "no-console": ["error", { "allow": ["warn", "error"] }] - }, - "parserOptions": { "ecmaVersion": 2020 }, - "ignorePatterns": ["node_modules"] -} diff --git a/src/config.js b/src/config.js index 9fe06b5..0d8b8d9 100644 --- a/src/config.js +++ b/src/config.js @@ -11,6 +11,7 @@ module.exports = { ], plugins: ['simple-import-sort', 'jsdoc'], rules: { + 'camelcase': 'error', 'simple-import-sort/imports': 'error', 'simple-import-sort/exports': 'error', 'no-console': ['error', { allow: ['warn', 'error'] }], diff --git a/src/typescript.js b/src/typescript.js index 812dfb1..2b5ab9a 100644 --- a/src/typescript.js +++ b/src/typescript.js @@ -11,7 +11,7 @@ module.exports = { 'plugin:import/recommended', 'plugin:import/typescript', 'plugin:promise/recommended', - // This must be the last + // This must be the last line 'plugin:prettier/recommended', ], plugins: ['@typescript-eslint', ...base.plugins], From 8c5ecfcf9bf67eb71309843a84aeb48b636a98cf Mon Sep 17 00:00:00 2001 From: Tiago Loureiro Date: Tue, 23 Jan 2024 14:46:04 +0000 Subject: [PATCH 6/7] added @dipcode/prettier-config as prettierrc base --- .github/workflows/ci.yml | 4 +- .github/workflows/deploy.yml | 4 +- .prettierrc | 9 --- package-lock.json | 108 +++++++++++++++++++---------------- package.json | 4 +- 5 files changed, 64 insertions(+), 65 deletions(-) delete mode 100644 .prettierrc diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 61787f9..ccfeb70 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,8 +33,6 @@ jobs: node-version: ${{ matrix.node-version }} cache: 'npm' - name: Install dependencies - run: | - npm pkg delete scripts.prepare - npm ci --omit=dev + run: HUSKY=0 npm ci - name: Run tests run: npm run lint diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 06fbe84..375693f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -20,9 +20,7 @@ jobs: node-version: 'lts/*' cache: 'npm' registry-url: 'https://registry.npmjs.org' - - run: | - npm pkg delete scripts.prepare - npm ci --omit=dev + - run: HUSKY=0 npm ci - run: npm publish --access public env: NODE_AUTH_TOKEN: ${{ secrets.NPM_REGISTRY_TOKEN }} diff --git a/.prettierrc b/.prettierrc deleted file mode 100644 index 3e422bd..0000000 --- a/.prettierrc +++ /dev/null @@ -1,9 +0,0 @@ -{ - "tabWidth": 2, - "singleQuote": true, - "printWidth": 120, - "quoteProps": "consistent", - "trailingComma": "es5", - "semi": true, - "bracketSameLine": true -} diff --git a/package-lock.json b/package-lock.json index 7407a67..0aa18ca 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20,6 +20,7 @@ "eslint-plugin-simple-import-sort": "^10.0.0" }, "devDependencies": { + "@dipcode/prettier-config": "^0.1.0", "husky": "8.0.3", "lint-staged": "15.2.0" }, @@ -37,6 +38,15 @@ "node": ">=0.10.0" } }, + "node_modules/@dipcode/prettier-config": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/@dipcode/prettier-config/-/prettier-config-0.1.0.tgz", + "integrity": "sha512-VhcGN3SjE08782CPaYzmfie29uulpgAjK9vHL0PnZGYpoN//oiqtgYDE+0o/Eg+A1Ycgj5A3GGl1ko2GMiZ/YA==", + "dev": true, + "peerDependencies": { + "prettier": "^3.0.0" + } + }, "node_modules/@es-joy/jsdoccomment": { "version": "0.41.0", "resolved": "https://registry.npmjs.org/@es-joy/jsdoccomment/-/jsdoccomment-0.41.0.tgz", @@ -240,15 +250,15 @@ "integrity": "sha512-dn1l8LaMea/IjDoHNd9J52uBbInB796CDffS6VdIxvqYCPSG0V0DzHp76GpaWnlhg88uYyPbXCDIowa86ybd5A==" }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "6.19.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.19.0.tgz", - "integrity": "sha512-DUCUkQNklCQYnrBSSikjVChdc84/vMPDQSgJTHBZ64G9bA9w0Crc0rd2diujKbTdp6w2J47qkeHQLoi0rpLCdg==", + "version": "6.19.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.19.1.tgz", + "integrity": "sha512-roQScUGFruWod9CEyoV5KlCYrubC/fvG8/1zXuT0WTcxX87GnMMmnksMwSg99lo1xiKrBzw2icsJPMAw1OtKxg==", "dependencies": { "@eslint-community/regexpp": "^4.5.1", - "@typescript-eslint/scope-manager": "6.19.0", - "@typescript-eslint/type-utils": "6.19.0", - "@typescript-eslint/utils": "6.19.0", - "@typescript-eslint/visitor-keys": "6.19.0", + "@typescript-eslint/scope-manager": "6.19.1", + "@typescript-eslint/type-utils": "6.19.1", + "@typescript-eslint/utils": "6.19.1", + "@typescript-eslint/visitor-keys": "6.19.1", "debug": "^4.3.4", "graphemer": "^1.4.0", "ignore": "^5.2.4", @@ -274,14 +284,14 @@ } }, "node_modules/@typescript-eslint/parser": { - "version": "6.19.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.19.0.tgz", - "integrity": "sha512-1DyBLG5SH7PYCd00QlroiW60YJ4rWMuUGa/JBV0iZuqi4l4IK3twKPq5ZkEebmGqRjXWVgsUzfd3+nZveewgow==", - "dependencies": { - "@typescript-eslint/scope-manager": "6.19.0", - "@typescript-eslint/types": "6.19.0", - "@typescript-eslint/typescript-estree": "6.19.0", - "@typescript-eslint/visitor-keys": "6.19.0", + "version": "6.19.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.19.1.tgz", + "integrity": "sha512-WEfX22ziAh6pRE9jnbkkLGp/4RhTpffr2ZK5bJ18M8mIfA8A+k97U9ZyaXCEJRlmMHh7R9MJZWXp/r73DzINVQ==", + "dependencies": { + "@typescript-eslint/scope-manager": "6.19.1", + "@typescript-eslint/types": "6.19.1", + "@typescript-eslint/typescript-estree": "6.19.1", + "@typescript-eslint/visitor-keys": "6.19.1", "debug": "^4.3.4" }, "engines": { @@ -301,12 +311,12 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "6.19.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.19.0.tgz", - "integrity": "sha512-dO1XMhV2ehBI6QN8Ufi7I10wmUovmLU0Oru3n5LVlM2JuzB4M+dVphCPLkVpKvGij2j/pHBWuJ9piuXx+BhzxQ==", + "version": "6.19.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.19.1.tgz", + "integrity": "sha512-4CdXYjKf6/6aKNMSly/BP4iCSOpvMmqtDzRtqFyyAae3z5kkqEjKndR5vDHL8rSuMIIWP8u4Mw4VxLyxZW6D5w==", "dependencies": { - "@typescript-eslint/types": "6.19.0", - "@typescript-eslint/visitor-keys": "6.19.0" + "@typescript-eslint/types": "6.19.1", + "@typescript-eslint/visitor-keys": "6.19.1" }, "engines": { "node": "^16.0.0 || >=18.0.0" @@ -317,12 +327,12 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "6.19.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.19.0.tgz", - "integrity": "sha512-mcvS6WSWbjiSxKCwBcXtOM5pRkPQ6kcDds/juxcy/727IQr3xMEcwr/YLHW2A2+Fp5ql6khjbKBzOyjuPqGi/w==", + "version": "6.19.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.19.1.tgz", + "integrity": "sha512-0vdyld3ecfxJuddDjACUvlAeYNrHP/pDeQk2pWBR2ESeEzQhg52DF53AbI9QCBkYE23lgkhLCZNkHn2hEXXYIg==", "dependencies": { - "@typescript-eslint/typescript-estree": "6.19.0", - "@typescript-eslint/utils": "6.19.0", + "@typescript-eslint/typescript-estree": "6.19.1", + "@typescript-eslint/utils": "6.19.1", "debug": "^4.3.4", "ts-api-utils": "^1.0.1" }, @@ -343,9 +353,9 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "6.19.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.19.0.tgz", - "integrity": "sha512-lFviGV/vYhOy3m8BJ/nAKoAyNhInTdXpftonhWle66XHAtT1ouBlkjL496b5H5hb8dWXHwtypTqgtb/DEa+j5A==", + "version": "6.19.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.19.1.tgz", + "integrity": "sha512-6+bk6FEtBhvfYvpHsDgAL3uo4BfvnTnoge5LrrCj2eJN8g3IJdLTD4B/jK3Q6vo4Ql/Hoip9I8aB6fF+6RfDqg==", "engines": { "node": "^16.0.0 || >=18.0.0" }, @@ -355,12 +365,12 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "6.19.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.19.0.tgz", - "integrity": "sha512-o/zefXIbbLBZ8YJ51NlkSAt2BamrK6XOmuxSR3hynMIzzyMY33KuJ9vuMdFSXW+H0tVvdF9qBPTHA91HDb4BIQ==", + "version": "6.19.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.19.1.tgz", + "integrity": "sha512-aFdAxuhzBFRWhy+H20nYu19+Km+gFfwNO4TEqyszkMcgBDYQjmPJ61erHxuT2ESJXhlhrO7I5EFIlZ+qGR8oVA==", "dependencies": { - "@typescript-eslint/types": "6.19.0", - "@typescript-eslint/visitor-keys": "6.19.0", + "@typescript-eslint/types": "6.19.1", + "@typescript-eslint/visitor-keys": "6.19.1", "debug": "^4.3.4", "globby": "^11.1.0", "is-glob": "^4.0.3", @@ -382,16 +392,16 @@ } }, "node_modules/@typescript-eslint/utils": { - "version": "6.19.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.19.0.tgz", - "integrity": "sha512-QR41YXySiuN++/dC9UArYOg4X86OAYP83OWTewpVx5ct1IZhjjgTLocj7QNxGhWoTqknsgpl7L+hGygCO+sdYw==", + "version": "6.19.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.19.1.tgz", + "integrity": "sha512-JvjfEZuP5WoMqwh9SPAPDSHSg9FBHHGhjPugSRxu5jMfjvBpq5/sGTD+9M9aQ5sh6iJ8AY/Kk/oUYVEMAPwi7w==", "dependencies": { "@eslint-community/eslint-utils": "^4.4.0", "@types/json-schema": "^7.0.12", "@types/semver": "^7.5.0", - "@typescript-eslint/scope-manager": "6.19.0", - "@typescript-eslint/types": "6.19.0", - "@typescript-eslint/typescript-estree": "6.19.0", + "@typescript-eslint/scope-manager": "6.19.1", + "@typescript-eslint/types": "6.19.1", + "@typescript-eslint/typescript-estree": "6.19.1", "semver": "^7.5.4" }, "engines": { @@ -406,11 +416,11 @@ } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "6.19.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.19.0.tgz", - "integrity": "sha512-hZaUCORLgubBvtGpp1JEFEazcuEdfxta9j4iUwdSAr7mEsYYAp3EAUyCZk3VEEqGj6W+AV4uWyrDGtrlawAsgQ==", + "version": "6.19.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.19.1.tgz", + "integrity": "sha512-gkdtIO+xSO/SmI0W68DBg4u1KElmIUo3vXzgHyGPs6cxgB0sa3TlptRAAE0hUY1hM6FcDKEv7aIwiTGm76cXfQ==", "dependencies": { - "@typescript-eslint/types": "6.19.0", + "@typescript-eslint/types": "6.19.1", "eslint-visitor-keys": "^3.4.1" }, "engines": { @@ -1121,9 +1131,9 @@ } }, "node_modules/eslint-config-standard-with-typescript": { - "version": "43.0.0", - "resolved": "https://registry.npmjs.org/eslint-config-standard-with-typescript/-/eslint-config-standard-with-typescript-43.0.0.tgz", - "integrity": "sha512-AT0qK01M5bmsWiE3UZvaQO5da1y1n6uQckAKqGNe6zPW5IOzgMLXZxw77nnFm+C11nxAZXsCPrbsgJhSrGfX6Q==", + "version": "43.0.1", + "resolved": "https://registry.npmjs.org/eslint-config-standard-with-typescript/-/eslint-config-standard-with-typescript-43.0.1.tgz", + "integrity": "sha512-WfZ986+qzIzX6dcr4yGUyVb/l9N3Z8wPXCc5z/70fljs3UbWhhV+WxrfgsqMToRzuuyX9MqZ974pq2UPhDTOcA==", "dependencies": { "@typescript-eslint/parser": "^6.4.0", "eslint-config-standard": "17.1.0" @@ -3298,9 +3308,9 @@ } }, "node_modules/string-width": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-7.0.0.tgz", - "integrity": "sha512-GPQHj7row82Hjo9hKZieKcHIhaAIKOJvFSIZXuCU9OASVZrMNUaZuz++SPVrBjnLsnk4k+z9f2EIypgxf2vNFw==", + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-7.1.0.tgz", + "integrity": "sha512-SEIJCWiX7Kg4c129n48aDRwLbFb2LJmXXFrWBG4NGaRtMQ3myKPKbwrD1BKqQn74oCoNMBVrfDEr5M9YxCsrkw==", "dev": true, "dependencies": { "emoji-regex": "^10.3.0", diff --git a/package.json b/package.json index d048c3e..b8c7a87 100644 --- a/package.json +++ b/package.json @@ -30,6 +30,7 @@ "homepage": "https://github.com/dipcode-software/eslint-config-dipcode#readme", "exports": "./src/config.js", "devDependencies": { + "@dipcode/prettier-config": "0.1.0", "husky": "8.0.3", "lint-staged": "15.2.0" }, @@ -47,5 +48,6 @@ "eslint-plugin-jsdoc": "^48.0.2", "eslint-plugin-prettier": "^5.1.3", "eslint-plugin-simple-import-sort": "^10.0.0" - } + }, + "prettier": "@dipcode/prettier-config" } From e4eac07cd7c81b25d2829b38ffc76f2288ef7f47 Mon Sep 17 00:00:00 2001 From: Tiago Loureiro Date: Tue, 23 Jan 2024 14:53:58 +0000 Subject: [PATCH 7/7] added version 0.2.0 to changelog --- CHANGELOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a8fd82a..850e4d6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). -## [v0.2.0] - 2024-01-22 +## [v0.2.0] - 2024-01-23 ### Changed @@ -43,6 +43,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - First release +[v0.2.0]: https://www.npmjs.com/package/@dipcode/eslint-config/v/0.2.0 [v0.1.3]: https://www.npmjs.com/package/@dipcode/eslint-config/v/0.1.3 [v0.1.2]: https://www.npmjs.com/package/@dipcode/eslint-config/v/0.1.2 [v0.1.1]: https://www.npmjs.com/package/@dipcode/eslint-config/v/0.1.1