Skip to content
This repository was archived by the owner on May 16, 2020. It is now read-only.

Commit 14580b8

Browse files
feat: add in new-with-error plugin
1 parent 045f201 commit 14580b8

File tree

6 files changed

+1086
-2100
lines changed

6 files changed

+1086
-2100
lines changed

packages/eslint-config-atlauncher/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ const rules = [
1313
'./rules/plugin-immutable',
1414
'./rules/plugin-import',
1515
'./rules/plugin-jsx-a11y',
16+
'./rules/plugin-new-with-error',
1617
'./rules/plugin-promise',
1718
'./rules/plugin-react',
1819
].map(require.resolve);
@@ -25,7 +26,7 @@ module.exports = {
2526
'immutable',
2627
'import',
2728
'jsx-a11y',
28-
'no-empty-blocks',
29+
'new-with-error',
2930
'promise',
3031
'react',
3132
],

packages/eslint-config-atlauncher/package-lock.json

Lines changed: 7 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/eslint-config-atlauncher/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"eslint-plugin-immutable": "^1.0.0",
3333
"eslint-plugin-import": "^2.3.0",
3434
"eslint-plugin-jsx-a11y": "^5.0.3",
35-
"eslint-plugin-no-empty-blocks": "^0.0.2",
35+
"eslint-plugin-new-with-error": "^1.1.0",
3636
"eslint-plugin-promise": "^3.5.0",
3737
"eslint-plugin-react": "^7.0.1"
3838
},
@@ -45,7 +45,7 @@
4545
"eslint-plugin-immutable": "^1.0.0",
4646
"eslint-plugin-import": "^2.3.0",
4747
"eslint-plugin-jsx-a11y": "^5.0.3",
48-
"eslint-plugin-no-empty-blocks": "^0.0.2",
48+
"eslint-plugin-new-with-error": "^1.1.0",
4949
"eslint-plugin-promise": "^3.5.0",
5050
"eslint-plugin-react": "^7.0.1"
5151
},
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
rules: {
3+
// require the use of `new` with `Error`
4+
'new-with-error/new-with-error': 'error',
5+
},
6+
};

0 commit comments

Comments
 (0)