40332963ef
This updates to Ember 3.16 but leaves Ember Data at 3.12 so we don’t need to use the model fragments beta. It can be reviewed on a commit-by-commit basis: blueprint updates, fixes for test failures, and the removal of now-deprecated partials. It’s not a true update to Octane as that would involve turning on template-only components by default, which breaks various things. We can accomplish that separately and then add the edition setting to package.json.
86 lines
1.8 KiB
JavaScript
86 lines
1.8 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-jquery': 'error',
|
|
},
|
|
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: Object.assign({}, require('eslint-plugin-node').configs.recommended.rules, {
|
|
// add your custom rules and overrides for node files here
|
|
|
|
// this can be removed once the following is fixed
|
|
// https://github.com/mysticatea/eslint-plugin-node/issues/77
|
|
'node/no-unpublished-require': 'off'
|
|
}),
|
|
},
|
|
{
|
|
files: [
|
|
'stories/**/*.js'
|
|
],
|
|
parserOptions: {
|
|
sourceType: 'module',
|
|
},
|
|
env: {
|
|
browser: false,
|
|
node: true,
|
|
},
|
|
plugins: ['node'],
|
|
},
|
|
],
|
|
};
|