Created
March 13, 2019 09:36
-
-
Save u007/81752acc3f32d4791bcea43dd611077b to your computer and use it in GitHub Desktop.
nuxt + typescript + prettier
This file contains hidden or 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
module.exports = { | |
root: true, | |
env: { | |
browser: true, | |
node: true | |
}, | |
parser: 'vue-eslint-parser', | |
parserOptions: { | |
'parser': '@typescript-eslint/parser', | |
'ecmaVersion': 2017, | |
'sourceType': 'module' | |
}, | |
extends: [ | |
'@nuxtjs', | |
'plugin:@typescript-eslint/recommended', | |
'plugin:prettier/recommended', | |
'prettier' | |
// 'prettier/@typescript-eslint'//do not | |
], | |
plugins: [ | |
"@typescript-eslint", | |
'prettier' | |
], | |
// add your custom rules here | |
rules: { | |
"@typescript-eslint/indent": ["error", 2], | |
'@typescript-eslint/camelcase': 'off', | |
'@typescript-eslint/no-unused-vars': 'off', | |
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off', | |
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off', | |
'no-unused-vars': 'off', | |
'prefer-const': 'off', | |
'require-await': 'off', | |
'vue/max-attributes-per-line': 'off', | |
'vue/no-unused-components': 'off' | |
} | |
} |
This file contains hidden or 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
{ | |
"semi": false, | |
"singleQuote": true, | |
"tabWidth": 2 | |
} |
This file contains hidden or 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
import { | |
Stitch, | |
RemoteMongoClient, | |
AnonymousCredential, | |
UserPasswordCredential, | |
FacebookRedirectCredential | |
} from 'mongodb-stitch-browser-sdk' | |
import moment from 'moment/src/moment' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment