This repository has been archived by the owner on Jun 28, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: use eslint as linter * feat: prettier and rule disabling * feat: auto settings vscode * feat(lint): hooks rules * fix(lint): project path get back to json for intellisense * fix(lint): autofix and try to fix import * fix(lint): imports resolve and remove tslint remnants * feat(lint): eslintignore * feat(lint): no extraneous deps monorepo and ignore patterns https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-extraneous-dependencies.md * feat(lint): disable rules * feat(lint): accessibility * fix(test): snapshot update * feat(lint): did not disable react no array index key the rule is useful in most situations * feat(lint): add cypress plugin and recommended rules * fix(lint): make paths consistent works across cli and editor extension now * fix(ts): check for truthiness before using * feat(lint): backend * feat(lint): try to lint workspace * refactor(lint): centalize eslint now imports are broken again * fix(lint): further centralization keep extending prettier or it blows up * fix(lint): further centralization weird no-unused-vars behaviour in backend. still cannot read null errors when linting entire workspace * refactor(deps): all eslint deps to root * fix(lint): undo centralization * fix(lint): remove linting if not in package * fix(lint): lerna lint frontend and backend in parallel * fix(lint): path for import linting * feat(lint): lint staged * fix(lint): unused vars * style(lint): format eslintrc files
- Loading branch information
1 parent
e7bf946
commit acea154
Showing
32 changed files
with
802 additions
and
8,375 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/node_modules/* | ||
/src/generated/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
const path = require('path'); | ||
|
||
module.exports = { | ||
parser: '@typescript-eslint/parser', | ||
extends: [ | ||
'airbnb-base', | ||
'plugin:@typescript-eslint/recommended', | ||
'prettier', | ||
'prettier/@typescript-eslint', | ||
], | ||
plugins: ['@typescript-eslint', 'import', 'prettier'], | ||
parserOptions: { | ||
ecmaVersion: 2018, | ||
ecmaFeatures: { | ||
impliedStrict: true, | ||
}, | ||
sourceType: 'module', | ||
project: path.resolve(__dirname, './tsconfig.json'), | ||
}, | ||
env: { | ||
es6: true, | ||
jest: true, | ||
node: true, | ||
}, | ||
settings: { | ||
'import/resolver': { | ||
typescript: { | ||
directory: path.resolve(__dirname, './tsconfig.json'), | ||
}, | ||
}, | ||
}, | ||
rules: { | ||
'prettier/prettier': 'error', | ||
'import/no-extraneous-dependencies': [ | ||
'error', | ||
{ | ||
packageDir: [ | ||
path.resolve(__dirname, './'), | ||
path.resolve(__dirname, '../../'), | ||
], | ||
devDependencies: [ | ||
'**/*.test.js', | ||
'**/*.spec.js', | ||
'/testUtils/**', | ||
'/cypress/**', | ||
], | ||
}, | ||
], | ||
'prefer-destructuring': 'off', | ||
'no-underscore-dangle': 'off', | ||
'@typescript-eslint/explicit-member-accessibility': 'off', | ||
'@typescript-eslint/explicit-function-return-type': 'off', | ||
'@typescript-eslint/no-explicit-any': 'off', | ||
'@typescript-eslint/interface-name-prefix': 'off', | ||
'@typescript-eslint/no-non-null-assertion': 'off', | ||
'@typescript-eslint/prefer-interface': 'off', | ||
'@typescript-eslint/no-empty-interface': 'off', | ||
'@typescript-eslint/no-unused-vars': [ | ||
'error', | ||
{ | ||
vars: 'local', | ||
args: 'none', | ||
}, | ||
], | ||
'import/prefer-default-export': 'off', | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
require('dotenv').config(); | ||
import expressServer from './express'; | ||
import { graphqlPath } from './apolloServer'; | ||
|
||
require('dotenv').config(); | ||
|
||
const port = process.env.PORT || 4000; | ||
|
||
expressServer.listen(port, () => { | ||
/* eslint-disable no-console */ | ||
console.log(`🚀 Server started at http://localhost:${port}${graphqlPath}`); | ||
}); |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.