Skip to content

Instantly share code, notes, and snippets.

@bymathias
Created December 29, 2019 12:59
Show Gist options
  • Select an option

  • Save bymathias/85678e8f7036cc6f03ace1e99b16b046 to your computer and use it in GitHub Desktop.

Select an option

Save bymathias/85678e8f7036cc6f03ace1e99b16b046 to your computer and use it in GitHub Desktop.
module.exports = {
root: true,
parserOptions: {
parser: 'babel-eslint',
sourceType: 'module',
ecmaVersion: 2018,
allowImportExportEverywhere: true
},
extends: [
'standard',
'plugin:node/recommended'
],
plugins: [
'eslint-plugin-node',
'eslint-plugin-import',
'eslint-plugin-promise'
],
env: {
node: true,
es6: true
},
rules: {
'node/no-unsupported-features/es-syntax': 'off',
'node/no-unsupported-features/es-builtins': 'off',
'node/no-unpublished-require': 'off',
'node/no-unpublished-import': 'off',
'node/no-missing-import': 'off'
},
overrides: [
{
files: ['./client/src/**/*.js', './client/src/**/*.vue'],
extends: [
'plugin:node/recommended',
'plugin:vue/recommended',
'plugin:vue-i18n/recommended'
],
plugins: [
'eslint-plugin-node',
'eslint-plugin-vue',
'eslint-plugin-vue-i18n'
],
env: {
browser: true,
commonjs: true
},
rules: {
'node/no-unsupported-features/es-syntax': 'off',
'node/no-unsupported-features/es-builtins': 'off',
'node/no-unpublished-require': 'off',
'node/no-unpublished-import': 'off',
'node/no-missing-import': 'off'
},
settings: {
'vue-i18n': {
localeDir: './client/src/locales/*.json'
}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment