* empty commit
* Add missing copyright headers
* chore: 🤖 update copywrite config file with correct year
* Add missing copyright headers
* empty commit (gh action merge checks are stuck)
70 lines
1.6 KiB
JavaScript
70 lines
1.6 KiB
JavaScript
/**
|
|
* Copyright IBM Corp. 2021, 2026
|
|
* SPDX-License-Identifier: BUSL-1.1
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
module.exports = {
|
|
root: true,
|
|
parser: '@babel/eslint-parser',
|
|
parserOptions: {
|
|
ecmaVersion: 'latest',
|
|
sourceType: 'module',
|
|
// This is specific babel-config. If grows consider creating a babel config file
|
|
requireConfigFile: false,
|
|
babelOptions: {
|
|
plugins: [
|
|
['@babel/plugin-proposal-decorators', { decoratorsBeforeExport: true }],
|
|
],
|
|
},
|
|
// end of babel-config
|
|
},
|
|
plugins: ['ember'],
|
|
extends: ['eslint:recommended', 'plugin:ember/recommended', 'prettier'],
|
|
env: {
|
|
browser: true,
|
|
},
|
|
rules: {
|
|
curly: ['error', 'multi-line', 'consistent'],
|
|
'ember/no-get': 'off',
|
|
'ember/no-get-with-default': 'off',
|
|
'ember/no-computed-properties-in-native-classes': 'off',
|
|
'ember/no-assignment-of-untracked-properties-used-in-tracking-contexts':
|
|
'off',
|
|
},
|
|
overrides: [
|
|
// node files
|
|
{
|
|
files: [
|
|
'./.eslintrc.js',
|
|
'./.prettierrc.js',
|
|
'./.stylelintrc.js',
|
|
'./.template-lintrc.js',
|
|
'./ember-cli-build.js',
|
|
'./testem.js',
|
|
'./blueprints/*/index.js',
|
|
'./config/**/*.js',
|
|
'./lib/*/index.js',
|
|
'./server/**/*.js',
|
|
],
|
|
parserOptions: {
|
|
sourceType: 'script',
|
|
},
|
|
env: {
|
|
browser: false,
|
|
node: true,
|
|
},
|
|
extends: ['plugin:n/recommended'],
|
|
},
|
|
{
|
|
// test files
|
|
files: ['tests/**/*-test.{js,ts}'],
|
|
extends: ['plugin:qunit/recommended'],
|
|
rules: {
|
|
'qunit/require-expect': [2, 'except-simple'],
|
|
},
|
|
},
|
|
],
|
|
};
|