open-vault/ui/.eslintrc.js

45 lines
914 B
JavaScript
Raw Normal View History

2018-04-03 14:16:57 +00:00
module.exports = {
root: true,
parserOptions: {
ecmaVersion: 2018,
2018-04-03 14:16:57 +00:00
sourceType: 'module',
},
2018-10-30 20:53:17 +00:00
plugins: ['ember', 'prettier'],
extends: ['eslint:recommended', 'plugin:ember/recommended', 'prettier'],
2018-04-03 14:16:57 +00:00
env: {
browser: true,
es6: true,
},
rules: {
'no-unused-vars': ['error', { ignoreRestSiblings: true }],
2018-10-30 20:53:17 +00:00
'prettier/prettier': 'error',
'ember/no-jquery': 'error',
2018-04-03 14:16:57 +00:00
},
globals: {
TextEncoderLite: true,
TextDecoderLite: true,
},
overrides: [
// node files
{
files: [
'.template-lintrc.js',
'ember-cli-build.js',
'testem.js',
'blueprints/*/index.js',
'config/**/*.js',
'lib/*/index.js',
'scripts/start-vault.js',
],
parserOptions: {
sourceType: 'script',
ecmaVersion: 2018,
},
env: {
browser: false,
node: true,
},
},
],
2018-04-03 14:16:57 +00:00
};