This repository was archived by the owner on May 16, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +27
-10
lines changed
packages/eslint-config-atlauncher Expand file tree Collapse file tree 4 files changed +27
-10
lines changed Original file line number Diff line number Diff line change 1+ /* eslint-disable filenames/no-index */
2+
13const rules = [
2- './rules/base'
4+ './rules/base' ,
5+ './rules/filenames'
36] . map ( require . resolve ) ;
47
58module . 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} ;
Original file line number Diff line number Diff line change 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" : {
Original file line number Diff line number Diff line change 11module . 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" : [
Original file line number Diff line number Diff line change 1+ module . exports = {
2+ rules : {
3+ "filenames/no-index" : "error"
4+ }
5+ } ;
You can’t perform that action at this time.
0 commit comments