e9e52e0dfe
This doesn’t include Ember Data, as we are still back on 3.12. Most changes are deprecation updates, linting fixes, and dependencies. It can be read commit-by-commit, though many of them are mechanical and skimmable. For the new linting exclusions, I’ve added them to the Tech Debt list. The decrease in test count is because linting is no longer included in ember test. There’s a new deprecation warning in the logs that can be fixed by updating Ember Power Select but when I tried that it caused it to render incorrectly, so I decided to ignore it for now and address it separately.
83 lines
1.5 KiB
JavaScript
83 lines
1.5 KiB
JavaScript
'use strict';
|
|
|
|
module.exports = {
|
|
root: true,
|
|
globals: {
|
|
server: true,
|
|
},
|
|
env: {
|
|
browser: true,
|
|
es6: true,
|
|
},
|
|
extends: [
|
|
'eslint:recommended',
|
|
'plugin:ember/recommended',
|
|
],
|
|
parser: 'babel-eslint',
|
|
parserOptions: {
|
|
ecmaVersion: 2018,
|
|
sourceType: 'module',
|
|
ecmaFeatures: {
|
|
legacyDecorators: true,
|
|
},
|
|
},
|
|
plugins: [
|
|
'ember'
|
|
],
|
|
rules: {
|
|
indent: ['error', 2, { SwitchCase: 1 }],
|
|
'linebreak-style': ['error', 'unix'],
|
|
quotes: ['error', 'single', 'avoid-escape'],
|
|
semi: ['error', 'always'],
|
|
'no-constant-condition': [
|
|
'error',
|
|
{
|
|
checkLoops: false,
|
|
},
|
|
],
|
|
'ember/classic-decorator-hooks': 'error',
|
|
'ember/classic-decorator-no-classic-methods': 'error',
|
|
'ember/no-get': 'off',
|
|
'ember/no-mixins': 'off',
|
|
},
|
|
overrides: [
|
|
// node files
|
|
{
|
|
files: [
|
|
'.eslintrc.js',
|
|
'.template-lintrc.js',
|
|
'ember-cli-build.js',
|
|
'testem.js',
|
|
'blueprints/*/index.js',
|
|
'config/**/*.js',
|
|
'server/**/*.js',
|
|
'lib/*/index.js',
|
|
],
|
|
parserOptions: {
|
|
sourceType: 'script',
|
|
},
|
|
env: {
|
|
browser: false,
|
|
node: true,
|
|
},
|
|
plugins: ['node'],
|
|
rules: {
|
|
'node/no-unpublished-require': 'off'
|
|
},
|
|
},
|
|
{
|
|
files: [
|
|
'stories/**/*.js'
|
|
],
|
|
parserOptions: {
|
|
sourceType: 'module',
|
|
},
|
|
env: {
|
|
browser: false,
|
|
node: true,
|
|
},
|
|
plugins: ['node'],
|
|
},
|
|
],
|
|
};
|