Skip to content

Instantly share code, notes, and snippets.

@u007 u007/.eslintrc.js
Created Mar 13, 2019

Embed
What would you like to do?
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
You can’t perform that action at this time.