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

Commit aaf30b6

Browse files
Add in some more ESLint plugins
1 parent 777358c commit aaf30b6

File tree

4 files changed

+27
-10
lines changed

4 files changed

+27
-10
lines changed
Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,25 @@
1+
/* eslint-disable filenames/no-index */
2+
13
const rules = [
2-
'./rules/base'
4+
'./rules/base',
5+
'./rules/filenames'
36
].map(require.resolve);
47

58
module.exports = {
9+
plugins: [
10+
'import',
11+
'jsx-a11y',
12+
'react',
13+
'promise',
14+
'no-empty-blocks',
15+
'filenames'
16+
],
617
extends: [
7-
"eslint:recommended",
8-
"plugin:import/recommended",
9-
"plugin:jsx-a11y/recommended",
10-
"plugin:react/recommended",
18+
'eslint:recommended',
19+
'plugin:import/recommended',
20+
'plugin:jsx-a11y/recommended',
21+
'plugin:react/recommended',
22+
'plugin:promise/recommended',
1123
...rules
1224
],
1325
env: {
@@ -25,10 +37,5 @@ module.exports = {
2537
jsx: true
2638
}
2739
},
28-
plugins: [
29-
'import',
30-
'jsx-a11y',
31-
'react'
32-
],
3340
rules: {}
3441
};

packages/eslint-config-atlauncher/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,11 @@
2626
"devDependencies": {
2727
"babel-eslint": "^7.2.1",
2828
"eslint": "^3.19.0",
29+
"eslint-plugin-filenames": "^1.1.0",
2930
"eslint-plugin-import": "^2.2.0",
3031
"eslint-plugin-jsx-a11y": "^4.0.0",
32+
"eslint-plugin-no-empty-blocks": "0.0.2",
33+
"eslint-plugin-promise": "^3.5.0",
3134
"eslint-plugin-react": "^6.10.3"
3235
},
3336
"peerDependencies": {

packages/eslint-config-atlauncher/rules/base.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
module.exports = {
22
rules: {
3+
"no-empty": "off", // this is covered by the 'no-empty-blocks' plugin
4+
"no-empty-blocks/no-empty-blocks": ["error", "allowCatch"],
35
"no-trailing-spaces": "error",
46
"no-multiple-empty-lines": "error",
57
"comma-dangle": [
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
rules: {
3+
"filenames/no-index": "error"
4+
}
5+
};

0 commit comments

Comments
 (0)