97767717aa
* remove ember-cli-eslint, add eslint, run eslint in tests * ignore story files for now * fix or ignore linting
44 lines
882 B
JavaScript
44 lines
882 B
JavaScript
module.exports = {
|
|
root: true,
|
|
parserOptions: {
|
|
ecmaVersion: 2018,
|
|
sourceType: 'module',
|
|
},
|
|
plugins: ['ember', 'prettier'],
|
|
extends: ['eslint:recommended', 'plugin:ember/recommended', 'prettier'],
|
|
env: {
|
|
browser: true,
|
|
es6: true,
|
|
},
|
|
rules: {
|
|
'no-unused-vars': ['error', { ignoreRestSiblings: true }],
|
|
'prettier/prettier': 'error',
|
|
},
|
|
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,
|
|
},
|
|
},
|
|
],
|
|
};
|