File tree Expand file tree Collapse file tree 5 files changed +71
-0
lines changed
packages/eslint-config-beetech-base Expand file tree Collapse file tree 5 files changed +71
-0
lines changed Original file line number Diff line number Diff line change 1+ {
2+ "extends": "./index.js"
3+ }
Original file line number Diff line number Diff line change 1+ # BeeTech's Fullstack ESLint Config
2+
3+ Lint configs for full-stack nodejs api + react frontend
4+
5+ ## Installing
6+
7+ ``` sh
8+ npm install --save-dev eslint eslint-config-beetech eslint-plugin-react eslint-plugin-jsx-a11y eslint-plugin-import
9+ ```
10+
11+
Original file line number Diff line number Diff line change 1+ module . exports = {
2+ extends : [
3+ 'eslint-config-airbnb-base'
4+ ] . map ( require . resolve ) ,
5+ rules : {
6+ 'comma-dangle' : [ 'error' , 'only-multiline' ] ,
7+ 'padding-line-between-statements' : [ 'error' , {
8+ blankLine : 'always' ,
9+ prev : [ 'const' , 'let' ] ,
10+ next : 'return'
11+ } ]
12+ }
13+ } ;
Original file line number Diff line number Diff line change 1+ {
2+ "name" : " eslint-config-beetech" ,
3+ "version" : " 0.1.0" ,
4+ "description" : " Official lint config from Beetech.global" ,
5+ "main" : " index.js" ,
6+ "scripts" : {
7+ "test" : " eslint test/sample-file-001.js"
8+ },
9+ "repository" : {
10+ "type" : " git" ,
11+ "url" : " git+ssh://git@github.com/BeeTech-global/eslint-config-beetech.git"
12+ },
13+ "keywords" : [
14+ " eslint"
15+ ],
16+ "author" : " BeeTech <it@beetech.global>" ,
17+ "contributors" : [
18+ " Lourenzo Ferreira <lourenzo@gmail.com>"
19+ ],
20+ "license" : " MIT" ,
21+ "bugs" : {
22+ "url" : " https://github.com/BeeTech-global/eslint-config-beetech/issues"
23+ },
24+ "homepage" : " https://github.com/BeeTech-global/eslint-config-beetech#readme" ,
25+ "dependencies" : {
26+ "eslint-config-airbnb-base" : " ^12.1.0" ,
27+ "eslint-plugin-import" : " ^2.9.0" ,
28+ "eslint" : " ^4.18.2"
29+ }
30+ }
Original file line number Diff line number Diff line change 1+ function someOperation ( ) {
2+ return 1 ;
3+ }
4+
5+ const a = ( x ) => {
6+ const y = x + 1 ;
7+
8+ return y ;
9+ } ;
10+
11+ module . exports = {
12+ a,
13+ someOperation
14+ } ;
You can’t perform that action at this time.
0 commit comments