2018-09-25 16:28:26 +00:00
|
|
|
'use strict';
|
2022-01-12 15:20:11 +00:00
|
|
|
const recommended = require('ember-template-lint/lib/config/recommended').rules; // octane extends recommended - no additions as of 3.14
|
|
|
|
const stylistic = require('ember-template-lint/lib/config/stylistic').rules;
|
|
|
|
|
|
|
|
const testOverrides = { ...recommended, ...stylistic };
|
|
|
|
for (const key in testOverrides) {
|
|
|
|
testOverrides[key] = false;
|
|
|
|
}
|
2018-09-25 16:28:26 +00:00
|
|
|
|
|
|
|
module.exports = {
|
2021-12-17 03:44:29 +00:00
|
|
|
extends: ['octane', 'stylistic'],
|
2018-09-25 16:28:26 +00:00
|
|
|
rules: {
|
2021-12-17 03:44:29 +00:00
|
|
|
'no-bare-strings': 'off',
|
|
|
|
'no-action': 'off',
|
|
|
|
'no-duplicate-landmark-elements': 'warn',
|
|
|
|
'no-implicit-this': {
|
|
|
|
allow: ['supported-auth-backends'],
|
|
|
|
},
|
|
|
|
'require-input-label': 'off',
|
|
|
|
'no-down-event-binding': 'warn',
|
|
|
|
'self-closing-void-elements': 'off',
|
2018-09-25 16:28:26 +00:00
|
|
|
},
|
2021-12-17 03:44:29 +00:00
|
|
|
ignore: ['lib/story-md', 'tests/**'],
|
2022-01-12 15:20:11 +00:00
|
|
|
// ember language server vscode extension does not currently respect the ignore field
|
|
|
|
// override all rules manually as workround to align with cli
|
|
|
|
overrides: [
|
|
|
|
{
|
|
|
|
files: ['**/*-test.js'],
|
|
|
|
rules: testOverrides,
|
|
|
|
},
|
|
|
|
],
|
2018-09-25 16:28:26 +00:00
|
|
|
};
|