Skip to content

Commit

Permalink
Merge pull request #33 from MailOnline/chore/enfore_node_protocol_on_…
Browse files Browse the repository at this point in the history
…imports

Chore/enforce node protocol on imports & requires
  • Loading branch information
carpasse committed Nov 20, 2023
2 parents 0b2bb61 + 1f03bf8 commit 5fe3d87
Show file tree
Hide file tree
Showing 3 changed files with 257 additions and 27 deletions.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ const rules = {
natural: true
}
],
'unicorn/prefer-node-protocol': 'error',
'use-isnan': 'error'
};

Expand All @@ -176,7 +177,7 @@ module.exports = {
project: './tsconfig.json',
sourceType: 'module'
},
plugins: ['no-only-tests', 'import', 'prefer-arrow', '@typescript-eslint'],
plugins: ['no-only-tests', 'import', 'prefer-arrow', '@typescript-eslint', 'unicorn'],
rules,
settings: {
'import/resolver': {
Expand Down
9 changes: 8 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"devDependencies": {
"eslint": "^8.0.1",
"husky": "^7.0.2",
"mol-conventional-changelog": "^1.4.3",
"prettier": "^2.4.1",
"pretty-quick": "^3.1.1",
"semantic-release": "^18.0.0",
Expand All @@ -45,6 +46,12 @@
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-no-only-tests": "^3.1.0",
"eslint-plugin-prefer-arrow": "^1.2.3",
"eslint-plugin-react": "^7.33.2"
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-unicorn": "^49.0.0"
},
"config": {
"commitizen": {
"path": "./node_modules/mol-conventional-changelog"
}
}
}
Loading

0 comments on commit 5fe3d87

Please sign in to comment.