From 618ec22461748b17c19644f44822fe1f57c44852 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Mon, 31 Oct 2022 11:14:11 +0100 Subject: [PATCH] feat: add unicorn config and remove jest config --- README.md | 2 +- eslintrc.test.yml | 2 +- index.js | 2 +- jest.js | 14 -------------- package.json | 12 ++++++------ unicorn.js | 5 +++++ 6 files changed, 14 insertions(+), 23 deletions(-) delete mode 100644 jest.js create mode 100644 unicorn.js diff --git a/README.md b/README.md index bca2529..e5fdbe3 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ npx i -D eslint-config-cheminfo-typescript eslint Create a `.eslintrc.yml` with the following contents: ```yml -extends: [cheminfo-typescript, cheminfo-typescript/jsdoc] +extends: [cheminfo-typescript, cheminfo-typescript/jsdoc, cheminfo-typescript/unicorn] ``` You can then customize the config for your project by changing rules in this file. diff --git a/eslintrc.test.yml b/eslintrc.test.yml index 76bd1fc..3fc5d68 100644 --- a/eslintrc.test.yml +++ b/eslintrc.test.yml @@ -1 +1 @@ -extends: ['./index.js', './jsdoc.js'] +extends: ['./index.js', './jsdoc.js', './unicorn.js'] diff --git a/index.js b/index.js index 664df8e..94f25a9 100644 --- a/index.js +++ b/index.js @@ -1,5 +1,5 @@ 'use strict'; module.exports = { - extends: ['./base.js', './jest.js'], + extends: ['./base.js'], }; diff --git a/jest.js b/jest.js deleted file mode 100644 index 563e996..0000000 --- a/jest.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -module.exports = { - extends: 'cheminfo/jest', - overrides: [ - { - files: ['**/__tests__/**/*.{ts,tsx,cts,mts}', '*.test.{ts,tsx,cts,mts}'], - rules: { - '@typescript-eslint/ban-ts-comment': 'off', - '@typescript-eslint/no-empty-function': 'off', - }, - }, - ], -}; diff --git a/package.json b/package.json index 89e37d6..51751f7 100644 --- a/package.json +++ b/package.json @@ -6,8 +6,8 @@ "files": [ "base.js", "index.js", - "jest.js", - "jsdoc.js" + "jsdoc.js", + "unicorn.js" ], "scripts": { "test": "node test/test.mjs" @@ -24,19 +24,19 @@ }, "homepage": "https://github.com/cheminfo/eslint-config-cheminfo-typescript#readme", "dependencies": { - "eslint-config-cheminfo": "^8.0.0" + "eslint-config-cheminfo": "^8.1.0" }, "peerDependencies": { "@typescript-eslint/eslint-plugin": "^5.38.0", "@typescript-eslint/parser": "^5.38.0", - "eslint": "^8.16.0", + "eslint": "^8.26.0", "typescript": "^4.7.2" }, "devDependencies": { "@typescript-eslint/eslint-plugin": "5.38.0", "@typescript-eslint/parser": "5.38.0", - "eslint": "8.16.0", - "prettier": "^2.6.2", + "eslint": "8.26.0", + "prettier": "^2.7.1", "typescript": "4.7.2" } } diff --git a/unicorn.js b/unicorn.js new file mode 100644 index 0000000..034bc2d --- /dev/null +++ b/unicorn.js @@ -0,0 +1,5 @@ +'use strict'; + +module.exports = { + extends: ['cheminfo/unicorn'], +};