55 lines
1.1 KiB
JavaScript
55 lines
1.1 KiB
JavaScript
'use strict';
|
|
|
|
module.exports = {
|
|
root: true,
|
|
parser: '@typescript-eslint/parser',
|
|
parserOptions: {
|
|
ecmaVersion: 'latest',
|
|
},
|
|
plugins: ['ember', '@typescript-eslint'],
|
|
extends: [
|
|
'eslint:recommended',
|
|
'plugin:ember/recommended',
|
|
'plugin:prettier/recommended',
|
|
],
|
|
env: {
|
|
browser: true,
|
|
},
|
|
rules: {},
|
|
overrides: [
|
|
// ts files
|
|
{
|
|
files: ['**/*.ts'],
|
|
extends: [
|
|
'plugin:@typescript-eslint/eslint-recommended',
|
|
'plugin:@typescript-eslint/recommended',
|
|
],
|
|
rules: {},
|
|
},
|
|
// 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',
|
|
],
|
|
env: {
|
|
browser: false,
|
|
node: true,
|
|
},
|
|
extends: ['plugin:n/recommended'],
|
|
},
|
|
{
|
|
// test files
|
|
files: ['tests/**/*-test.{js,ts}'],
|
|
extends: ['plugin:qunit/recommended'],
|
|
},
|
|
],
|
|
};
|