Upgrade Stylelint within desktop client to be consistent with the same
version we use in Admin UI.
✅ Closes: ICU-3276
71 lines
1.7 KiB
JavaScript
71 lines
1.7 KiB
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
module.exports = {
|
|
root: true,
|
|
parser: '@babel/eslint-parser',
|
|
parserOptions: {
|
|
ecmaVersion: 2018,
|
|
sourceType: 'module',
|
|
// This is specific babel-config. If grows consider creating a babel config file
|
|
requireConfigFile: false,
|
|
babelOptions: {
|
|
plugins: [['@babel/plugin-proposal-decorators', { legacy: true }]],
|
|
},
|
|
// end of babel-config
|
|
},
|
|
plugins: ['ember'],
|
|
extends: ['eslint:recommended', 'plugin:ember/recommended', 'prettier'],
|
|
env: {
|
|
browser: true,
|
|
},
|
|
rules: {
|
|
'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',
|
|
'./.template-lintrc.js',
|
|
'.stylelintrc.js',
|
|
'./ember-cli-build.js',
|
|
'./testem.js',
|
|
'./testem-electron.js',
|
|
'./blueprints/*/index.js',
|
|
'./config/**/*.js',
|
|
'./lib/*/index.js',
|
|
'./server/**/*.js',
|
|
],
|
|
parserOptions: {
|
|
sourceType: 'script',
|
|
},
|
|
env: {
|
|
browser: false,
|
|
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
|
|
'node/no-unpublished-require': 'off',
|
|
},
|
|
},
|
|
{
|
|
// test files
|
|
files: ['tests/**/*-test.{js,ts}'],
|
|
extends: ['plugin:qunit/recommended'],
|
|
},
|
|
],
|
|
};
|