Files
threshold-ui/ui/admin/.eslintrc.js
T

69 lines
1.7 KiB
JavaScript
Raw Normal View History

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
2020-05-18 17:02:09 -04:00
'use strict';
module.exports = {
root: true,
2022-04-07 14:39:59 -07:00
parser: '@babel/eslint-parser',
2020-05-18 17:02:09 -04:00
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
2022-04-07 14:39:59 -07:00
// This is specific babel-config. If grows consider creating a babel config file
requireConfigFile: false,
babelOptions: {
plugins: [['@babel/plugin-proposal-decorators', { legacy: true }]],
},
2022-04-07 14:39:59 -07:00
// end of babel-config
2020-05-18 17:02:09 -04:00
},
plugins: ['ember'],
2022-06-27 14:35:52 -04:00
extends: ['eslint:recommended', 'plugin:ember/recommended', 'prettier'],
2020-05-18 17:02:09 -04:00
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',
2020-05-18 17:02:09 -04:00
},
overrides: [
// node files
{
files: [
'.eslintrc.js',
'.prettierrc.js',
2020-05-18 17:02:09 -04:00
'.template-lintrc.js',
2022-12-14 12:22:44 -05:00
'.stylelintrc.js',
2020-05-18 17:02:09 -04:00
'ember-cli-build.js',
'testem.js',
'blueprints/*/index.js',
'config/**/*.js',
'lib/*/index.js',
'server/**/*.js',
2020-05-18 17:02:09 -04:00
],
parserOptions: {
sourceType: 'script',
2020-05-18 17:02:09 -04:00
},
env: {
browser: false,
node: true,
2020-05-18 17:02:09 -04:00
},
plugins: ['node'],
extends: ['plugin:node/recommended'],
rules: {
2020-05-18 17:02:09 -04:00
// 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'],
},
],
2020-05-18 17:02:09 -04:00
};