Skip to content

Commit

Permalink
feat: add unicorn config and remove jest config
Browse files Browse the repository at this point in the history
  • Loading branch information
targos committed Oct 31, 2022
1 parent 61ae7ea commit 618ec22
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 23 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion eslintrc.test.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
extends: ['./index.js', './jsdoc.js']
extends: ['./index.js', './jsdoc.js', './unicorn.js']
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use strict';

module.exports = {
extends: ['./base.js', './jest.js'],
extends: ['./base.js'],
};
14 changes: 0 additions & 14 deletions jest.js

This file was deleted.

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"files": [
"base.js",
"index.js",
"jest.js",
"jsdoc.js"
"jsdoc.js",
"unicorn.js"
],
"scripts": {
"test": "node test/test.mjs"
Expand All @@ -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"
}
}
5 changes: 5 additions & 0 deletions unicorn.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
'use strict';

module.exports = {
extends: ['cheminfo/unicorn'],
};

0 comments on commit 618ec22

Please sign in to comment.