en_btr_frontend/.eslintrc.js

54 lines
1.1 KiB
JavaScript
Raw Normal View History

'use strict';
module.exports = {
root: true,
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
ecmaFeatures: {
2021-04-08 14:22:27 +00:00
legacyDecorators: true,
},
},
2021-04-08 14:22:27 +00:00
plugins: ['ember'],
extends: [
'eslint:recommended',
2021-04-08 14:22:27 +00:00
'plugin:ember/recommended',
'plugin:prettier/recommended',
],
env: {
2021-04-08 14:22:27 +00:00
browser: true,
},
rules: {},
overrides: [
// node files
{
files: [
'.eslintrc.js',
2021-04-08 14:22:27 +00:00
'.prettierrc.js',
'.template-lintrc.js',
'ember-cli-build.js',
'testem.js',
'blueprints/*/index.js',
'config/**/*.js',
'lib/*/index.js',
2021-04-08 14:22:27 +00:00
'server/**/*.js',
],
parserOptions: {
2021-04-08 14:22:27 +00:00
sourceType: 'script',
},
env: {
browser: false,
2021-04-08 14:22:27 +00:00
node: true,
},
plugins: ['node'],
extends: ['plugin:node/recommended'],
rules: {
// this can be removed once the following is fixed
// https://github.com/mysticatea/eslint-plugin-node/issues/77
2021-04-08 14:22:27 +00:00
'node/no-unpublished-require': 'off',
},
},
],
};