Skip to content

Instantly share code, notes, and snippets.

@u007
Created March 13, 2019 09:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save u007/81752acc3f32d4791bcea43dd611077b to your computer and use it in GitHub Desktop.
Save u007/81752acc3f32d4791bcea43dd611077b to your computer and use it in GitHub Desktop.
nuxt + typescript + prettier
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'
}
}
{
"semi": false,
"singleQuote": true,
"tabWidth": 2
}
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