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

Commit 8ec71fa

Browse files
feat: add in no-loops eslint plugin
1 parent 14580b8 commit 8ec71fa

File tree

6 files changed

+1917
-896
lines changed

6 files changed

+1917
-896
lines changed

packages/eslint-config-atlauncher/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ const rules = [
1414
'./rules/plugin-import',
1515
'./rules/plugin-jsx-a11y',
1616
'./rules/plugin-new-with-error',
17+
'./rules/plugin-no-loops',
1718
'./rules/plugin-promise',
1819
'./rules/plugin-react',
1920
].map(require.resolve);
@@ -27,6 +28,7 @@ module.exports = {
2728
'import',
2829
'jsx-a11y',
2930
'new-with-error',
31+
'no-loops',
3032
'promise',
3133
'react',
3234
],

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

Lines changed: 8 additions & 31 deletions
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 & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
"eslint-plugin-import": "^2.3.0",
3434
"eslint-plugin-jsx-a11y": "^5.0.3",
3535
"eslint-plugin-new-with-error": "^1.1.0",
36+
"eslint-plugin-no-loops": "^0.3.0",
3637
"eslint-plugin-promise": "^3.5.0",
3738
"eslint-plugin-react": "^7.0.1"
3839
},
@@ -46,6 +47,7 @@
4647
"eslint-plugin-import": "^2.3.0",
4748
"eslint-plugin-jsx-a11y": "^5.0.3",
4849
"eslint-plugin-new-with-error": "^1.1.0",
50+
"eslint-plugin-no-loops": "^0.3.0",
4951
"eslint-plugin-promise": "^3.5.0",
5052
"eslint-plugin-react": "^7.0.1"
5153
},
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
rules: {
3+
// don't allow loops
4+
'no-loops/no-loops': 'error',
5+
},
6+
};

0 commit comments

Comments
 (0)